tests.test_pulp_smash_cli

Location: Pulp SmashAPI Documentationtests.test_pulp_smash_cli

Unit tests for pulp_smash.pulp_smash_cli.

class tests.test_pulp_smash_cli.BasePulpSmashCliTestCase(methodName='runTest')

Base class for all pulp_smash_cli tests.

setUp()

Configure a CliRunner.

class tests.test_pulp_smash_cli.MissingSettingsFileMixin

Test missing settings file.

Classes that inherit from this mixin should provide the settings_subcommand attribute set to the settings subcommand to run.

test_missing_settings_file()

Ensure show outputs proper settings file.

class tests.test_pulp_smash_cli.SettingsCreateTestCase(methodName='runTest')

Test pulp_smash.pulp_smash_cli.settings_create command.

setUp()

Generate a default expected config dict.

test_create_defaults_and_verify()

Create settings file with defaults and custom SSL certificate.

test_create_other_values()

Create settings file with custom values.

test_create_with_defaults()

Create settings file with default values values.

test_settings_already_exists()

Create settings file by overriding existing one.

class tests.test_pulp_smash_cli.SettingsPathTestCase(methodName='runTest')

Test pulp_smash.pulp_smash_cli.settings_path command.

test_settings_path()

Ensure path outputs proper settings file path.

class tests.test_pulp_smash_cli.SettingsShowTestCase(methodName='runTest')

Test pulp_smash.pulp_smash_cli.settings_show command.

test_settings_show()

Ensure show outputs proper settings file.

class tests.test_pulp_smash_cli.SettingsValidateTestCase(methodName='runTest')

Test pulp_smash.pulp_smash_cli.settings_validate command.

test_invalid_config()

Ensure validate fails on invalid config file schema.

test_old_config_alert()

Ensure validate notifies about the old config format.

test_valid_config()

Ensure validate does not complain about valid settings.