functional Package¶
common
Module¶
-
class
kolla_cli.tests.functional.common.
KollaCliTest
(*args, **kwargs)¶ Bases:
testtools.testcase.TestCase
-
check_types
(method, expected_types)¶
-
log
= <Logger kolla_cli.tests.functional.common (WARNING)>¶
-
run_cli_cmd
(cmd, expect_error=False)¶
-
run_command
(cmd)¶ run bash command
return (retval, msg)
-
saved_kolla_etc
= ''¶
-
setUp
()¶ Hook method for setting up the test fixture before exercising it.
-
tearDown
()¶ Hook method for deconstructing the test fixture after testing it.
-
test_client_upgrade
Module¶
-
class
kolla_cli.tests.functional.test_client_upgrade.
TestFunctional
(*args, **kwargs)¶ Bases:
kolla_cli.tests.functional.common.KollaCliTest
Test description
This test will look for old version inventory files in the local current working directory. If none are found, it will look in the user’s home directory. If none are found there too, it will print a warning and skip the test.
Old version inventory files must be named inventory.json.v1, inventory.json.v2, etc.
An upgrade test will be run on each old version inventory file that is found.
-
test_upgrade
()¶
-
test_config
Module¶
-
class
kolla_cli.tests.functional.test_config.
TestFunctional
(*args, **kwargs)¶ Bases:
kolla_cli.tests.functional.common.KollaCliTest
-
test_config_import_inventory
()¶
-
test_config_reset
()¶
-
test_deploy
Module¶
test_destroy
Module¶
-
class
kolla_cli.tests.functional.test_destroy.
TestFunctional
(*args, **kwargs)¶ Bases:
kolla_cli.tests.functional.common.KollaCliTest
-
test_destroy
()¶
-
test_group
Module¶
-
class
kolla_cli.tests.functional.test_group.
TestFunctional
(*args, **kwargs)¶ Bases:
kolla_cli.tests.functional.common.KollaCliTest
-
check_group
(groups)¶ check groups
- group listhosts -f json:
- [{“Group Name”: “compute”, “Hosts”: []},
{“Group Name”: “control”, “Hosts”: [“ub-target1”]}, {“Group Name”: “network”, “Hosts”: []}]
- group listservices -f json:
- [{“Group Name”: “compute”, “Services”: []},
- {“Group Name”: “control”,
- “Services”: [“glance”, “keystone”, “mysqlcluster”,
“nova”, “rabbitmq”]},
- {“Group Name”: “network”,
“Services”: [“haproxy”, “neutron”]}]
-
get_default_groups
()¶ get default groups
- return a dict:
- {groupname: {
Services: [svc1, svc2…], Hosts: []}}
-
test_add_group_to_service
()¶
-
test_group_add_host
()¶
-
test_group_add_remove
()¶
-
test_group_api
()¶
-
test_host
Module¶
test_password
Module¶
-
class
kolla_cli.tests.functional.test_password.
TestFunctional
(*args, **kwargs)¶ Bases:
kolla_cli.tests.functional.common.KollaCliTest
-
test_password_set_clear
()¶
-
test_property
Module¶
-
class
kolla_cli.tests.functional.test_property.
TestFunctional
(*args, **kwargs)¶ Bases:
kolla_cli.tests.functional.common.KollaCliTest
-
test_properties
()¶
-
test_reconfigure
Module¶
-
class
kolla_cli.tests.functional.test_reconfigure.
TestFunctional
(*args, **kwargs)¶ Bases:
kolla_cli.tests.functional.common.KollaCliTest
-
test_reconfigure
()¶
-
test_service
Module¶
-
class
kolla_cli.tests.functional.test_service.
TestFunctional
(*args, **kwargs)¶ Bases:
kolla_cli.tests.functional.common.KollaCliTest
-
test_listgroups
()¶ $ kolla-cli service listgroups
+————————+————————-+ | Service | Groups | +————————+————————-+ | cinder | [‘control’, ‘control2’] | | cinder-api | | | cinder-backup | [‘storage’] | | cinder-scheduler | | | cinder-volume | [‘storage’] | | glance | [‘control’, ‘control2’] | | glance-api | | | glance-registry | | …
-
test_service_add_group
()¶
-
test_service_api
()¶
-
test_service_list
()¶ $ kolla-cli service list -f json
[{“Service”: “barbican”, “Children”: [“barbican-keystone-listener” “barbican-worker”, “barbican-api”]}, {“Service”: “barbican-api” “Children”: []}, {“Service”: “barbican-keystone-listener”, “Children”: []}, {“Service”: “barbican-worker”…]
-
test_stop
Module¶
-
class
kolla_cli.tests.functional.test_stop.
TestFunctional
(*args, **kwargs)¶ Bases:
kolla_cli.tests.functional.common.KollaCliTest
-
test_stop
()¶
-