コード例 #1
0
 def setUpClass(cls):
     """Create class-wide variables."""
     cls.client = gen_ansible_client()
     cls.repo_api = RepositoriesAnsibleApi(cls.client)
     cls.remote_collection_api = RemotesCollectionApi(cls.client)
     cls.distributions_api = DistributionsAnsibleApi(cls.client)
     cls.collections_api = PulpAnsibleGalaxyApiCollectionsApi(cls.client)
コード例 #2
0
 def setUpClass(cls):
     """Create class-wide variables."""
     cls.AH_token = "AUTOMATION_HUB_TOKEN_AUTH" in os.environ
     cls.GH_token = "GITHUB_API_KEY" in os.environ
     cls.client = gen_ansible_client()
     cls.repo_api = RepositoriesAnsibleApi(cls.client)
     cls.remote_collection_api = RemotesCollectionApi(cls.client)
     cls.distributions_api = DistributionsAnsibleApi(cls.client)
コード例 #3
0
ファイル: utils.py プロジェクト: lubosmj/pulp_ansible
 def setUpClass(cls):
     """Create class-wide variables."""
     cls.client = gen_ansible_client()
     cls.repo_api = RepositoriesAnsibleApi(cls.client)
     cls.remote_collection_api = RemotesCollectionApi(cls.client)
     cls.remote_role_api = RemotesRoleApi(cls.client)
     cls.distributions_api = DistributionsAnsibleApi(cls.client)
     cls.cv_api = ContentCollectionVersionsApi(cls.client)
     cls.collections_v3api = PulpAnsibleApiV3CollectionsApi(cls.client)
     cls.collections_versions_v3api = PulpAnsibleApiV3CollectionsVersionsApi(cls.client)
コード例 #4
0
 def setUpClass(cls):
     """Create class-wide variables."""
     cls.client = gen_ansible_client()
     cls.repo_api = RepositoriesAnsibleApi(cls.client)
     cls.remote_collection_api = RemotesCollectionApi(cls.client)
     cls.distributions_api = DistributionsAnsibleApi(cls.client)
     cls.collections_api = PulpAnsibleGalaxyApiCollectionsApi(cls.client)
     cls.cv_api = ContentCollectionVersionsApi(cls.client)
     cls.aurl = (
         "https://sso.qa.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token"
     )
コード例 #5
0
 def ansible_repo_api_client(ansible_bindings_client):
     """Provides the Ansible Repository API client object."""
     return RepositoriesAnsibleApi(ansible_bindings_client)
コード例 #6
0
 def setUpClass(cls):
     """Create class-wide variables."""
     cls.client = gen_ansible_client()
     cls.repo_api = RepositoriesAnsibleApi(cls.client)
     cls.remote_role_api = RemotesRoleApi(cls.client)
     cls.distributions_api = DistributionsAnsibleApi(cls.client)