Skip to content

Commit

Permalink
Skip Azure tests until there is support
Browse files Browse the repository at this point in the history
Issue: AAH-906
  • Loading branch information
bmclaughlin committed Oct 25, 2021
1 parent 7144a5e commit 604f72e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
from pulp_container.tests.functional.constants import DOCKERHUB_PULP_FIXTURE_1
from pulp_smash import cli

from galaxy_ng.tests.functional.utils import TestCaseUsingBindings
from galaxy_ng.tests.functional.utils import ContainerTestCaseUsingBindings


class ContainerRepositoryTagsTestCase(TestCaseUsingBindings, rbac_base.BaseRegistryTest):
class ContainerRepositoryTagsTestCase(ContainerTestCaseUsingBindings, rbac_base.BaseRegistryTest):
"""Test whether a container repository's tags can be listed.
When running functional tests in dev environment please ensure that
Expand All @@ -31,6 +31,7 @@ def setUpClass(cls):
Define APIs to use and pull images needed later in tests
"""
super().setUpClass()

cfg = cls.cfg
cls.registry = cli.RegistryClient(cls.cfg)
cls.registry.raise_if_unsupported(unittest.SkipTest, "Tests require podman/docker")
Expand Down
8 changes: 8 additions & 0 deletions galaxy_ng/tests/functional/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,11 @@ def sync_repo(self, requirements_file, **kwargs):

response = self.sync_api.sync(repo_name)
monitor_task(f"/pulp/api/v3/tasks/{response.task}/")


class ContainerTestCaseUsingBindings(TestCaseUsingBindings):
@classmethod
def setUpClass(cls):
if os.getenv("TEST") == "azure":
raise SkipTest("Container Registry disabled")
super().setUpClass()

0 comments on commit 604f72e

Please sign in to comment.