Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd Str Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore Call NameLoad Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd CompareIsNot SubscriptLoad NameLoad Index Str NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Continue If NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword BinOpAdd AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str attr Str body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword BinOpAdd AttributeLoad NameLoad attr Str keyword Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword BinOpAdd AttributeLoad NameLoad attr Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword BinOpAdd AttributeLoad NameLoad attr Str keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore NameLoad For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword BinOpAdd AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Assign NameStore NameLoad Break Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword BinOpAdd AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str decorator_list decorator_list
N/A N/A 
test_services
----------------------------------

Functional tests for `shade` service resource.
 N/A string N/A random shade.exc OpenStackCloudException shade.exc OpenStackCloudUnavailableFeature shade.tests.functional base TestServices N/A N/A base BaseFunctionalTestCase N/A N/A service_attributes N/A id name type description setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestServices self setUp N/A N/A self new_service_name N/A test_ N/A N/A join N/A N/A N/A random choice N/A string ascii_lowercase N/A _ N/A range 5 N/A N/A N/A self addCleanup N/A self _cleanup_services N/A _cleanup_services N/A N/A self N/A N/A N/A exception_list N/A list N/A s N/A N/A N/A self operator_cloud list_services N/A N/A N/A N/A N/A s N/A name None N/A N/A N/A s N/A name startswith N/A self new_service_name N/A N/A N/A N/A N/A N/A N/A self operator_cloud delete_service name_or_id N/A s N/A id N/A N/A N/A Exception N/A e N/A N/A N/A N/A exception_list append N/A str e N/A N/A exception_list N/A N/A N/A OpenStackCloudException N/A N/A join exception_list N/A test_create_service N/A N/A self N/A N/A N/A service N/A N/A N/A self operator_cloud create_service name N/A N/A self new_service_name _create type test_type description this is a test description N/A N/A N/A self assertIsNotNone N/A N/A service get id N/A test_update_service N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A self operator_cloud cloud_config get_api_version identity startswith 2 N/A N/A N/A N/A self assertRaises OpenStackCloudUnavailableFeature N/A N/A self operator_cloud update_service service_id name new name N/A N/A service N/A N/A N/A self operator_cloud create_service name N/A N/A self new_service_name _create type test_type description this is a test description enabled True N/A new_service N/A N/A N/A self operator_cloud update_service N/A service id name N/A N/A self new_service_name _update description this is an updated description enabled False N/A N/A N/A self assertEqual N/A new_service name N/A N/A self new_service_name _update N/A N/A N/A self assertEqual N/A new_service description this is an updated description N/A N/A N/A self assertFalse N/A new_service enabled N/A N/A N/A self assertEqual N/A service id N/A new_service id N/A test_list_services N/A N/A self N/A N/A N/A service N/A N/A N/A self operator_cloud create_service name N/A N/A self new_service_name _list type test_type N/A observed_services N/A N/A N/A self operator_cloud list_services N/A N/A N/A self assertIsInstance observed_services list N/A found False N/A s observed_services N/A N/A N/A N/A s N/A id N/A service N/A id N/A N/A N/A N/A self assertEqual N/A N/A self new_service_name _list N/A N/A s get name N/A N/A N/A self assertEqual test_type N/A N/A s get type N/A found True N/A N/A N/A self assertTrue found msg new service not found in service list! N/A test_delete_service_by_name N/A N/A self N/A N/A N/A service N/A N/A N/A self operator_cloud create_service name N/A N/A self new_service_name _delete_by_name type test_type N/A N/A N/A N/A self operator_cloud delete_service name_or_id N/A service N/A name N/A observed_services N/A N/A N/A self operator_cloud list_services N/A found False N/A s observed_services N/A N/A N/A N/A s N/A id N/A service N/A id N/A N/A found True N/A N/A N/A N/A self failUnlessEqual False found message service was not deleted! N/A test_delete_service_by_id N/A N/A self N/A N/A N/A service N/A N/A N/A self operator_cloud create_service name N/A N/A self new_service_name _delete_by_id type test_type N/A N/A N/A N/A self operator_cloud delete_service name_or_id N/A service N/A id N/A observed_services N/A N/A N/A self operator_cloud list_services N/A found False N/A s observed_services N/A N/A N/A N/A s N/A id N/A service N/A id N/A N/A found True N/A N/A N/A self failUnlessEqual False found message service was not deleted! N/A N/A