pulp_smash.tests.pulp2.rpm.utils

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

Utilities for RPM tests.

pulp_smash.tests.pulp2.rpm.utils.check_issue_2277(cfg)

Return true if Pulp #2277 affects the targeted Pulp system.

Parameters:cfg (pulp_smash.config.PulpSmashConfig) – The Pulp system under test.
pulp_smash.tests.pulp2.rpm.utils.check_issue_2354(cfg)

Return true if Pulp #2354 affects the targeted Pulp system.

Parameters:cfg (pulp_smash.config.PulpSmashConfig) – The Pulp system under test.
pulp_smash.tests.pulp2.rpm.utils.check_issue_2387(cfg)

Return true if Pulp #2387 affects the targeted Pulp system.

Parameters:cfg (pulp_smash.config.PulpSmashConfig) – The Pulp system under test.
pulp_smash.tests.pulp2.rpm.utils.check_issue_2620(cfg)

Return true if Pulp #2620 affects the targeted Pulp system.

Parameters:cfg (pulp_smash.config.PulpSmashConfig) – The Pulp system under test.
pulp_smash.tests.pulp2.rpm.utils.check_issue_2798(cfg)

Return true if Pulp #2798 affects the targeted Pulp system.

Parameters:cfg (pulp_smash.config.PulpSmashConfig) – The Pulp system under test.
pulp_smash.tests.pulp2.rpm.utils.check_issue_2844(cfg)

Return true if Pulp #2844 affects the targeted Pulp system.

Parameters:cfg (pulp_smash.config.PulpSmashConfig) – The Pulp system under test.
pulp_smash.tests.pulp2.rpm.utils.check_issue_3104(cfg)

Return true if Pulp #3104 affects the targeted Pulp system.

Parameters:cfg (pulp_smash.config.PulpSmashConfig) – The Pulp system under test.
pulp_smash.tests.pulp2.rpm.utils.gen_yum_config_file(cfg, repositoryid, **kwargs)

Generate a yum configuration file and write it to /etc/yum.repos.d/.

Generate a yum configuration file containing a single repository section, and write it to /etc/yum.repos.d/{repositoryid}.repo.

Parameters:
  • cfg (pulp_smash.config.PulpSmashConfig) – The system on which to create a yum configuration file.
  • repositoryid – The section’s repositoryid. Used when naming the configuration file and populating the brackets at the head of the file. For details, see yum.conf(5).
  • kwargs – Section options. Each kwarg corresponds to one option. For details, see yum.conf(5).
Returns:

The path to the yum configuration file.

pulp_smash.tests.pulp2.rpm.utils.os_is_rhel6(cfg)

Return True if the server runs RHEL 6, or False otherwise.

Parameters:cfg (pulp_smash.config.PulpSmashConfig) – Information about the system being targeted.
Returns:True or false.
pulp_smash.tests.pulp2.rpm.utils.set_up_module()

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