pulp_smash.tests.pulp2.docker.utils

Location: Pulp SmashAPI Documentationpulp_smash.tests.pulp2.docker.utils

Utilities for Docker tests.

pulp_smash.tests.pulp2.docker.utils.get_upstream_name(cfg)

Return a Docker upstream name.

Return pulp_smash.constants.DOCKER_UPSTREAM_NAME_NOLIST if Pulp is older than version 2.14. Otherwise, return pulp_smash.constants.DOCKER_UPSTREAM_NAME. See the documentation for those constants for more information.

pulp_smash.tests.pulp2.docker.utils.set_up_module()

Skip tests if Pulp 2 isn’t under test or if Docker isn’t installed.

pulp_smash.tests.pulp2.docker.utils.write_manifest_list(cfg, manifest_list)

Write out a content source to JSON file.

Parameters:
  • cfg (pulp_smash.config.PulpSmashConfig) – 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.