Skip to content

Commit

Permalink
fix test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Apr 9, 2024
1 parent c756d8b commit 1ec612b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
name: Lint Helm
runs-on: ubuntu-latest
steps:
- uses: azure/setup-helm@https://github.com/Azure/setup-helm/commit/b7246b12e77f7134dc2d460a3d5bad15bbe29390 # v4.1.0
- uses: azure/setup-helm@b7246b12e77f7134dc2d460a3d5bad15bbe29390 # v4.1.0

- name: Helm Lint
run: helm lint charts/radix-oauth-guard
4 changes: 2 additions & 2 deletions auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func TestMissingAuthHeaderFails(t *testing.T) {
req, _ := http.NewRequest("GET", "/auth", nil)
handler.ServeHTTP(writer, req)

assert.Equal(t, http.StatusForbidden, writer.Code)
assert.Equal(t, http.StatusUnauthorized, writer.Code)
}

func TestAuthFailureFails(t *testing.T) {
Expand All @@ -57,7 +57,7 @@ func TestAuthFailureFails(t *testing.T) {
req.Header.Set("Authorization", "Bearer abcdabcd")
handler.ServeHTTP(writer, req)

assert.Equal(t, http.StatusForbidden, writer.Code)
assert.Equal(t, http.StatusUnauthorized, writer.Code)
}

func TestInvalidJWTFails(t *testing.T) {
Expand Down

0 comments on commit 1ec612b

Please sign in to comment.