unit Package¶
common
Module¶
-
class
kolla_cli.tests.unit.common.
KollaCliUnitTest
(*args, **kwargs)¶ Bases:
testtools.testcase.TestCase
-
get_fake_group
(groupname='group1', servicenames=[], hostnames=[])¶
-
get_fake_host
(hostname='foo')¶
-
get_fake_job
()¶
-
get_fake_service
(servicename='service1', parentnames=[], childnames=[], groupnames=[])¶
-
run_cli_command
(command_string)¶
-
test_deploy_cmd
Module¶
-
class
kolla_cli.tests.unit.test_deploy_cmd.
TestUnit
(*args, **kwargs)¶ Bases:
kolla_cli.tests.unit.common.KollaCliUnitTest
-
test_deploy
(_, mock_get_status, mock_deploy)¶
-
test_deploy_with_services
(_, mock_get_status, mock_deploy)¶
-
test_group_cmd
Module¶
-
class
kolla_cli.tests.unit.test_group_cmd.
TestUnit
(*args, **kwargs)¶ Bases:
kolla_cli.tests.unit.common.KollaCliUnitTest
-
test_group_add
(_, mock_add)¶
-
test_group_addhost
(_, mock_group_get, mock_group_add_host)¶
-
test_group_listhosts
(_, mock_group_get_all)¶
-
test_group_listservices
(_, mock_group_get_all)¶
-
test_group_remove
(_, mock_remove)¶
-
test_group_removehost
(_, mock_group_get, mock_group_remove_host)¶
-
test_host_cmd
Module¶
-
class
kolla_cli.tests.unit.test_host_cmd.
TestUnit
(*args, **kwargs)¶ Bases:
kolla_cli.tests.unit.common.KollaCliUnitTest
-
test_host_add
(_, mock_add)¶
-
test_host_destroy
(_, mock_destroy, mock_get_all, mock_get_status, mock_prompt)¶
-
test_host_list
(_, mock_get, mock_get_all)¶
-
test_host_remove
(_, mock_remove)¶
-
test_host_setup
(_, mock_get_all, mock_setup, mock_ssh_check, mock_passwd, mock_yml)¶
-
test_host_ssh_check
(_, mock_ssh_check, mock_get_all, mock_log)¶
-
test_service_cmd
Module¶
-
class
kolla_cli.tests.unit.test_service_cmd.
TestUnit
(*args, **kwargs)¶ Bases:
kolla_cli.tests.unit.common.KollaCliUnitTest
-
test_service_addgroup
(_, mock_group_get, mock_group_add_service)¶
-
test_service_grouplist
(_, mock_service_get_all)¶
-
test_service_list
(_, mock_service_get_all, mock_cliff)¶
-
test_service_removegroup
(_, mock_group_get, mock_group_remove_service)¶
-