Skip to content

Commit

Permalink
Adding test for response headers
Browse files Browse the repository at this point in the history
  • Loading branch information
josemacassan committed Feb 10, 2025
1 parent 577fa38 commit 9065b95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_response_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ def client():
token=os.environ['THREESCALE_PROVIDER_TOKEN'], ssl_verify=False)

def test_x_served_by_ga(client):
response = client._rest.get(url=client.url + "/accounts.json")
response = client._rest.get(url=client.url + "/accounts")
assert response.status_code == 200
assert "X-Served-By" not in response.headers

def test_x_served_by_mas(client):
response = client._rest.get(url=client.url + "/accounts.json")
response = client._rest.get(url=client.url + "/accounts")
assert response.status_code == 200
assert "X-Served-By" in response.headers

0 comments on commit 9065b95

Please sign in to comment.