Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaizel committed Dec 9, 2024
1 parent d838b5f commit dc431f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/argo_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ func (s *ArgoServerSuite) TestPermission() {
// Test get wf w/ archive fallback with good token
s.bearerToken = goodToken
s.Run("GetWFsFallbackArchivedGoodToken", func() {
s.e().GET("/api/v1/workflows/"+uid).
s.e().GET("/api/v1/workflows/"+nsName).
WithQuery("listOptions.labelSelector", "workflows.argoproj.io/test").
Expect().
Status(200)
Expand All @@ -620,17 +620,17 @@ func (s *ArgoServerSuite) TestPermission() {
// Test get wf w/ archive fallback with bad token
s.bearerToken = badToken
s.Run("GetWFsFallbackArchivedBadToken", func() {
s.e().GET("/api/v1/workflows/" + uid).
s.e().GET("/api/v1/workflows/" + nsName).
Expect().
Status(403)
})

// Test get wf w/ archive fallback with fake token
s.bearerToken = fakeToken
s.Run("GetWFsFallbackArchivedFakeToken", func() {
s.e().GET("/api/v1/workflows/" + uid).
s.e().GET("/api/v1/workflows/" + nsName).
Expect().
Status(403)
Status(401)
})

// Test deleting archived wf with bad token
Expand Down

0 comments on commit dc431f0

Please sign in to comment.