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 903054b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions galaxy_ng/tests/functional/cli/test_container_repository_tags.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import unittest

from urllib.parse import urlparse
Expand Down Expand Up @@ -31,6 +32,18 @@ def setUpClass(cls):
Define APIs to use and pull images needed later in tests
"""
super().setUpClass()

# skip test if running on Azure and Azure not supported
try:
from pulp_container.app.registry_api import AzureStorageRedirects
except ImportError:
azure_supported = False
else:
azure_supported = True

if os.getenv("TEST") == "azure" and not azure_supported:
raise unittest.SkipTest("Pulp Container not supported on Azure")

cfg = cls.cfg
cls.registry = cli.RegistryClient(cls.cfg)
cls.registry.raise_if_unsupported(unittest.SkipTest, "Tests require podman/docker")
Expand Down

0 comments on commit 903054b

Please sign in to comment.