def setUpClass(cls):
     """Create class-wide variables."""
     cls.client = gen_ansible_client()
     cls.repo_api = RepositoriesAnsibleApi(cls.client)
     cls.repo_versions_api = RepositoriesAnsibleVersionsApi(cls.client)
     cls.remote_collection_api = RemotesCollectionApi(cls.client)
     cls.distributions_api = DistributionsAnsibleApi(cls.client)
 def setUpClass(cls):
     """Create class-wide variables."""
     delete_orphans()
     cls.client = gen_ansible_client()
     cls.repo_api = RepositoriesAnsibleApi(cls.client)
     cls.repo_versions_api = RepositoriesAnsibleVersionsApi(cls.client)
     cls.remote_collection_api = RemotesCollectionApi(cls.client)
     cls.distributions_api = DistributionsAnsibleApi(cls.client)
     cls.collections_versions_v3api = PulpAnsibleGalaxyApiV3VersionsApi(
         cls.client)
Пример #3
0
 def setUpClass(cls):
     """Sets up apis."""
     super().setUpClass()
     cls.export_repos = []
     cls.export_content_count = {}
     cls.remotes = []
     cls.cfg = config.get_config()
     cls.api_client = api.Client(cls.cfg, api.json_handler)
     cls.core_client = CoreApiClient(configuration=cls.cfg.get_bindings_config())
     cls.exporter_api = ExportersPulpApi(cls.core_client)
     cls.exports_api = ExportersCoreExportsApi(cls.core_client)
     cls.repo_ver_api = RepositoriesAnsibleVersionsApi(cls.client)
     cls._setup_content()
Пример #4
0
 def setUpClass(cls):
     """Create class-wide variables."""
     cls.client = gen_ansible_client()
     cls.repo_api = RepositoriesAnsibleApi(cls.client)
     cls.repo_version_api = RepositoriesAnsibleVersionsApi(cls.client)
     cls.remote_collection_api = RemotesCollectionApi(cls.client)
     cls.remote_git_api = RemotesGitApi(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)