pulp_smash.tests.pulp3.file.api_v3.utils

Location: Pulp SmashAPI Documentationpulp_smash.tests.pulp3.file.api_v3.utils

Utilities for file plugin tests.

pulp_smash.tests.pulp3.file.api_v3.utils.gen_publisher()

Return a semi-random dict for use in creating a publisher.

pulp_smash.tests.pulp3.file.api_v3.utils.gen_remote()

Return a semi-random dict for use in creating an remote.

pulp_smash.tests.pulp3.file.api_v3.utils.get_remote_down_policy()

Return the download policies that are available to the file plugin.

See Pulp #3320.

Returns:A subset of pulp_smash.tests.pulp3.constants.REMOTE_DOWN_POLICY. (The constant itself might be returned.)