pulp_2_tests.tests.docker.utils¶
Location: Pulp 2 Tests → Tests → pulp_2_tests.tests.docker.utils
Utilities for Docker tests.
-
pulp_2_tests.tests.docker.utils.get_upstream_name(cfg)¶ Return a Docker upstream name.
Return
pulp_2_tests.constants.DOCKER_UPSTREAM_NAME_NOLISTif Pulp is older than version 2.14. Otherwise, returnpulp_2_tests.constants.DOCKER_UPSTREAM_NAME. See the documentation for those constants for more information.
-
pulp_2_tests.tests.docker.utils.os_is_f26(cfg, pulp_host=None)¶ Tell whether the given Pulp host’s OS is F26.
-
pulp_2_tests.tests.docker.utils.set_up_module()¶ Skip tests if Pulp 2 isn’t under test or if Docker isn’t installed.
-
pulp_2_tests.tests.docker.utils.skip_if(func, var_name, result, *, exc=<class 'unittest.case.SkipTest'>)¶ The
@skip_ifdecorator, customized for unittest.pulp_smash.selectors.skip_ifis test runner agnostic. This function is identical, except thatexchas been set tounittest.SkipTest.
-
pulp_2_tests.tests.docker.utils.write_manifest_list(cfg, manifest_list)¶ Write out a content source to JSON file.
Parameters: - cfg – The Pulp deployment on which to create a repository.
- manifest_list – A detailed dict of information about the manifest list.
Returns: The path to created file, and the path to dir that stores the file.