octavia_tempest_plugin package¶
Subpackages¶
- octavia_tempest_plugin.common package
- octavia_tempest_plugin.contrib package
- octavia_tempest_plugin.hacking package
- octavia_tempest_plugin.services package
- Subpackages
- octavia_tempest_plugin.services.load_balancer package
- Subpackages
- octavia_tempest_plugin.services.load_balancer.v2 package
- Submodules
- octavia_tempest_plugin.services.load_balancer.v2.amphora_client module
- octavia_tempest_plugin.services.load_balancer.v2.availability_zone_capabilities_client module
- octavia_tempest_plugin.services.load_balancer.v2.availability_zone_client module
- octavia_tempest_plugin.services.load_balancer.v2.availability_zone_profile_client module
- octavia_tempest_plugin.services.load_balancer.v2.base_client module
- octavia_tempest_plugin.services.load_balancer.v2.flavor_capabilities_client module
- octavia_tempest_plugin.services.load_balancer.v2.flavor_client module
- octavia_tempest_plugin.services.load_balancer.v2.flavor_profile_client module
- octavia_tempest_plugin.services.load_balancer.v2.healthmonitor_client module
- octavia_tempest_plugin.services.load_balancer.v2.l7policy_client module
- octavia_tempest_plugin.services.load_balancer.v2.l7rule_client module
- octavia_tempest_plugin.services.load_balancer.v2.listener_client module
- octavia_tempest_plugin.services.load_balancer.v2.loadbalancer_client module
- octavia_tempest_plugin.services.load_balancer.v2.member_client module
- octavia_tempest_plugin.services.load_balancer.v2.pool_client module
- octavia_tempest_plugin.services.load_balancer.v2.provider_client module
- Module contents
- octavia_tempest_plugin.services.load_balancer.v2 package
- Module contents
- Subpackages
- octavia_tempest_plugin.services.load_balancer package
- Module contents
- Subpackages
- octavia_tempest_plugin.tests package
- Subpackages
- octavia_tempest_plugin.tests.act_stdby_scenario package
- octavia_tempest_plugin.tests.api package
- Subpackages
- octavia_tempest_plugin.tests.api.v2 package
- Submodules
- octavia_tempest_plugin.tests.api.v2.test_amphora module
- octavia_tempest_plugin.tests.api.v2.test_availability_zone module
- octavia_tempest_plugin.tests.api.v2.test_availability_zone_capabilities module
- octavia_tempest_plugin.tests.api.v2.test_availability_zone_profile module
- octavia_tempest_plugin.tests.api.v2.test_flavor module
- octavia_tempest_plugin.tests.api.v2.test_flavor_capabilities module
- octavia_tempest_plugin.tests.api.v2.test_flavor_profile module
- octavia_tempest_plugin.tests.api.v2.test_healthmonitor module
- octavia_tempest_plugin.tests.api.v2.test_l7policy module
- octavia_tempest_plugin.tests.api.v2.test_l7rule module
- octavia_tempest_plugin.tests.api.v2.test_listener module
- octavia_tempest_plugin.tests.api.v2.test_load_balancer module
- octavia_tempest_plugin.tests.api.v2.test_member module
- octavia_tempest_plugin.tests.api.v2.test_pool module
- octavia_tempest_plugin.tests.api.v2.test_provider module
- Module contents
- octavia_tempest_plugin.tests.api.v2 package
- Module contents
- Subpackages
- octavia_tempest_plugin.tests.barbican_scenario package
- octavia_tempest_plugin.tests.scenario package
- Subpackages
- octavia_tempest_plugin.tests.scenario.v2 package
- Submodules
- octavia_tempest_plugin.tests.scenario.v2.test_healthmonitor module
- octavia_tempest_plugin.tests.scenario.v2.test_ipv6_traffic_ops module
- octavia_tempest_plugin.tests.scenario.v2.test_l7policy module
- octavia_tempest_plugin.tests.scenario.v2.test_l7rule module
- octavia_tempest_plugin.tests.scenario.v2.test_listener module
- octavia_tempest_plugin.tests.scenario.v2.test_load_balancer module
- octavia_tempest_plugin.tests.scenario.v2.test_member module
- octavia_tempest_plugin.tests.scenario.v2.test_pool module
- octavia_tempest_plugin.tests.scenario.v2.test_traffic_ops module
- Module contents
- octavia_tempest_plugin.tests.scenario.v2 package
- Module contents
- Subpackages
- octavia_tempest_plugin.tests.spare_pool_scenario package
- Submodules
- octavia_tempest_plugin.tests.test_base module
- octavia_tempest_plugin.tests.validators module
- octavia_tempest_plugin.tests.waiters module
- Module contents
- Subpackages
Submodules¶
octavia_tempest_plugin.clients module¶
octavia_tempest_plugin.config module¶
octavia_tempest_plugin.plugin module¶
-
class
OctaviaTempestPlugin
[source]¶ Bases:
tempest.test_discover.plugins.TempestPlugin
-
get_opt_lists
()[source]¶ Get a list of options for sample config generation
- Return option_list
A list of tuples with the group name and options in that group.
- Return type
list
Example:
# Config options are defined in a config.py module service_option = cfg.BoolOpt( "my_service", default=True, help="Whether or not my service is available") my_service_group = cfg.OptGroup(name="my-service", title="My service options") my_service_features_group = cfg.OptGroup( name="my-service-features", title="My service available features") MyServiceGroup = [<list of options>] MyServiceFeaturesGroup = [<list of options>] # Plugin is implemented in a plugin.py module from my_plugin import config as my_config def get_opt_lists(self, conf): return [ (my_service_group.name, MyServiceGroup), (my_service_features_group.name, MyServiceFeaturesGroup) ]
-
get_service_clients
()[source]¶ Get a list of the service clients for registration
If the plugin implements service clients for one or more APIs, it may return their details by this method for automatic registration in any ServiceClients object instantiated by tests. The default implementation returns an empty list.
- Returns
Each element of the list represents the service client for an API. Each dict must define all parameters required for the invocation of service_clients.ServiceClients.register_service_client_module.
- Return type
list of dictionaries
Example implementation with one service client:
def get_service_clients(self): # Example implementation with one service client myservice_config = config.service_client_config('myservice') params = { 'name': 'myservice', 'service_version': 'myservice', 'module_path': 'myservice_tempest_tests.services', 'client_names': ['API1Client', 'API2Client'], } params.update(myservice_config) return [params]
Example implementation with two service clients:
def get_service_clients(self): # Example implementation with two service clients foo1_config = config.service_client_config('foo') params_foo1 = { 'name': 'foo_v1', 'service_version': 'foo.v1', 'module_path': 'bar_tempest_tests.services.foo.v1', 'client_names': ['API1Client', 'API2Client'], } params_foo1.update(foo_config) foo2_config = config.service_client_config('foo') params_foo2 = { 'name': 'foo_v2', 'service_version': 'foo.v2', 'module_path': 'bar_tempest_tests.services.foo.v2', 'client_names': ['API1Client', 'API2Client'], } params_foo2.update(foo2_config) return [params_foo1, params_foo2]
-
load_tests
()[source]¶ Return the information necessary to load the tests in the plugin.
- Returns
a tuple with the first value being the test_dir and the second being the top_level
- Return type
tuple
-
register_opts
(conf)[source]¶ Add additional configuration options to tempest.
This method will be run for the plugin during the register_opts() function in tempest.config.
- Parameters
conf (ConfigOpts) – The conf object that can be used to register additional options on.
Example:
# Config options are defined in a config.py module service_option = cfg.BoolOpt( "my_service", default=True, help="Whether or not my service is available") # Note: as long as the group is listed in get_opt_lists, # it will be possible to access its optins in the plugin code # via ("-" in the group name are replaces with "_"): # CONF.my_service.<option_name> my_service_group = cfg.OptGroup(name="my-service", title="My service options") MyServiceGroup = [<list of options>] # (...) More groups and options... # Plugin is implemented in a plugin.py module from my_plugin import config as my_config def register_opts(self, conf): conf.register_opt(my_config.service_option, group='service_available') conf.register_group(my_config.my_service_group) conf.register_opts(my_config.MyServiceGroup, my_config.my_service_group) conf.register_group(my_config.my_service_feature_group) conf.register_opts(my_config.MyServiceFeaturesGroup, my_config.my_service_feature_group)
-