Skip to content

Commit

Permalink
Blackened fish
Browse files Browse the repository at this point in the history
  • Loading branch information
dbutenhof committed Jul 20, 2023
1 parent 381945a commit 8d96e29
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/pbench/test/functional/server/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class Tarball:
def all_tarballs() -> list[Path]:
return list(TARBALL_DIR.glob("*.tar.xz")) + list(SPECIAL_DIR.glob("*.tar.xz"))


class TestPut:
"""Test success and failure cases of PUT dataset upload"""

Expand Down Expand Up @@ -393,7 +394,9 @@ def test_details(self, server_client: PbenchServerClient, login_user):
== detail["runMetadata"]["script"]
)
else:
assert response.status_code == HTTPStatus.CONFLICT, f"Unexpected {response.json()['message']}"
assert (
response.status_code == HTTPStatus.CONFLICT
), f"Unexpected {response.json()['message']}"
print(f"\t\t... {d.name} is archiveonly")


Expand Down Expand Up @@ -584,7 +587,9 @@ def test_contents(self, server_client: PbenchServerClient, login_user):
)
archive = dataset.metadata["server.archiveonly"]
if archive:
assert response.status_code == HTTPStatus.CONFLICT, f"Unexpected {response.json()['message']}"
assert (
response.status_code == HTTPStatus.CONFLICT
), f"Unexpected {response.json()['message']}"
assert response.json()["message"] == "Dataset indexing was disabled"
without_toc = True
continue
Expand Down

0 comments on commit 8d96e29

Please sign in to comment.