tests.test_pulp_smash_cli¶
Location: Pulp Smash → API Documentation → tests.test_pulp_smash_cli
Unit tests for pulp_smash.pulp_smash_cli
.
-
class
tests.test_pulp_smash_cli.
BasePulpSmashCliTestCase
(methodName='runTest')¶ Bases:
unittest.case.TestCase
Base class for all pulp_smash_cli tests.
-
setUp
()¶ Configure a CliRunner.
-
-
class
tests.test_pulp_smash_cli.
MissingSettingsFileMixin
¶ Bases:
object
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')¶ Bases:
tests.test_pulp_smash_cli.BasePulpSmashCliTestCase
Test
pulp_smash.pulp_smash_cli.settings_create
command.-
maxDiff
= None¶
-
setUp
()¶ Generate a default expected config dict.
-
test_create_defaults_and_verify
()¶ Create settings file with defaults and custom SSL certificate.
-
test_create_defaults_and_verify_pulp3
()¶ Create settings file with defaults and custom SSL certificate.
-
test_create_other_value_pulp3
()¶ Create settings file with custom values.
-
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.
SettingsLoadPathTestCase
(methodName='runTest')¶ Bases:
tests.test_pulp_smash_cli.BasePulpSmashCliTestCase
,tests.test_pulp_smash_cli.MissingSettingsFileMixin
Test
pulp_smash.pulp_smash_cli.settings_load_path
command.-
settings_subcommand
= 'load-path'¶
-
test_settings_load_path
()¶ Ensure
load-path
outputs proper settings file path.
-
-
class
tests.test_pulp_smash_cli.
SettingsPathTestCase
(methodName='runTest')¶ Bases:
tests.test_pulp_smash_cli.BasePulpSmashCliTestCase
,tests.test_pulp_smash_cli.MissingSettingsFileMixin
Test
pulp_smash.pulp_smash_cli.settings_path
command.-
settings_subcommand
= 'path'¶
-
test_settings_path
()¶ Ensure
path
outputs proper settings file path.
-
-
class
tests.test_pulp_smash_cli.
SettingsSavePathTestCase
(methodName='runTest')¶ Bases:
tests.test_pulp_smash_cli.BasePulpSmashCliTestCase
Test
pulp_smash.pulp_smash_cli.settings_save_path
command.-
test_settings_save_path
()¶ Ensure
save-path
outputs proper settings file path.
-
-
class
tests.test_pulp_smash_cli.
SettingsShowTestCase
(methodName='runTest')¶ Bases:
tests.test_pulp_smash_cli.BasePulpSmashCliTestCase
,tests.test_pulp_smash_cli.MissingSettingsFileMixin
Test
pulp_smash.pulp_smash_cli.settings_show
command.-
settings_subcommand
= 'show'¶
-
test_settings_show
()¶ Ensure show outputs proper settings file.
-
-
class
tests.test_pulp_smash_cli.
SettingsValidateTestCase
(methodName='runTest')¶ Bases:
tests.test_pulp_smash_cli.BasePulpSmashCliTestCase
,tests.test_pulp_smash_cli.MissingSettingsFileMixin
Test
pulp_smash.pulp_smash_cli.settings_validate
command.-
settings_subcommand
= 'validate'¶
-
test_invalid_config
()¶ Ensure validate fails on invalid config file schema.
-
test_valid_config
()¶ Ensure validate does not complain about valid settings.
-