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.cv_api = ContentCollectionVersionsApi(cls.client)
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" )
def ansible_collection_version_api_client(ansible_bindings_client): """Provides the Ansible Content Collection Version API client object.""" return ContentCollectionVersionsApi(ansible_bindings_client)
def setUpClass(cls): """Create class-wide variables.""" delete_orphans() cls.client = gen_ansible_client() cls.collections_api = AnsibleCollectionsApi(cls.client) cls.content_api = ContentCollectionVersionsApi(cls.client)
def setUpClass(cls): """Create class-wide variable.""" delete_orphans() cls.content_unit = {} cls.cv_content_api = ContentCollectionVersionsApi(gen_ansible_client())