Skip to content

Commit

Permalink
Merge pull request #606 from jsmolar/jsmolar3
Browse files Browse the repository at this point in the history
Add xfail to deny with test
  • Loading branch information
jsmolar authored Nov 27, 2024
2 parents 7eebf6a + 99b001b commit 8116770
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def assert_headers(response):
assert response.headers["x-dynamic-header"] == TESTING_PATH


@pytest.mark.xfail
@pytest.mark.issue("https://github.com/Kuadrant/kuadrant-operator/issues/1022")
def test_unauthenticated(client):
"""Test when no auth is passed results in custom unauthenticated response."""
response = client.get(TESTING_PATH, auth=None)
Expand All @@ -60,6 +62,8 @@ def test_unauthenticated(client):
assert response.content.decode() == "You are unauthenticated."


@pytest.mark.xfail
@pytest.mark.issue("https://github.com/Kuadrant/kuadrant-operator/issues/1022")
def test_unauthorized(client, auth):
"""Test when not allowed path is passed results in custom unauthorized response."""
response = client.get(TESTING_PATH, auth=auth)
Expand Down

0 comments on commit 8116770

Please sign in to comment.