Skip to content

Commit

Permalink
Add xfail to deny with test
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Smolar <[email protected]>
  • Loading branch information
jsmolar committed Nov 27, 2024
1 parent 7eebf6a commit 99b001b
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 99b001b

Please sign in to comment.