Skip to content

Commit

Permalink
Disable the import_all test for non admin users.
Browse files Browse the repository at this point in the history
Closes #403
  • Loading branch information
decko committed Sep 17, 2024
1 parent 2969e64 commit 695bbdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/403.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Disable the an `import_all` test if pulpcore version is equal or higher than 3.59 given a specific fix in that version.
4 changes: 4 additions & 0 deletions pulp_ostree/tests/functional/api/test_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,13 @@ def test_import_all_as_ostree_repo_admin(
ostree_repositories_api_client,
ostree_repositories_versions_api_client,
tmp_path,
has_pulp_plugin,
):
"""Create a role for ostree admin, then import a repository with import-all."""

if has_pulp_plugin("core", min="3.59"):
pytest.skip("#402 After pulpcore 3.59 users are not allowed to upload artifacts.")

os.chdir(tmp_path)
repo_name = str(uuid.uuid4())
sample_dir = tmp_path / str(uuid.uuid4())
Expand Down

0 comments on commit 695bbdb

Please sign in to comment.