Skip to content

Commit

Permalink
Fix unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
ekouts committed Apr 25, 2024
1 parent a79b812 commit 390226b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/tests/automated_tests/integration/test_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,10 @@ def test_partitions(machine, headers):
@skipif_not_uses_gateway
@pytest.mark.parametrize("machine", [SERVER_COMPUTE])
def test_partitions_xfer(machine, headers):
url = f"{COMPUTE_URL}/partitions/xfer"
url = f"{COMPUTE_URL}/partitions"
headers.update({"X-Machine-Name": machine})
resp = requests.get(url, headers=headers, verify=False)
params = {"partitions": "xfer"}
resp = requests.get(url, headers=headers, params=params, verify=False)
print(resp.content)
assert resp.status_code == 200

Expand Down
5 changes: 3 additions & 2 deletions src/tests/automated_tests/unit/test_unit_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,10 @@ def test_partitions(machine, expected_response_code, headers):
@skipif_not_uses_gateway
@pytest.mark.parametrize("machine, expected_response_code", DATA)
def test_partition_xfer(machine, expected_response_code, headers):
url = f"{COMPUTE_URL}/partitions/xfer"
url = f"{COMPUTE_URL}/partitions"
headers.update({"X-Machine-Name": machine})
resp = requests.get(url, headers=headers, verify=False)
params = {"partition": "xfer"}
resp = requests.get(url, headers=headers, params=params, verify=False)
print(resp.content)
assert resp.status_code == expected_response_code

Expand Down

0 comments on commit 390226b

Please sign in to comment.