Public bug reported: Current lbaas tempest v2 api tests do not pass on certain configuration information to the underlyiing ServiceClient used to make a connection, so tests do not work if values like the endpoint_type or region for the network are changed in the tempest.conf. Similarly cannot change control values like the build_timeout.
For example, run tempest tests from the neuton_lbaas tree via OS_TEST_PATH with TEMPEST_CONFIG_DIR set to a tempest.conf that has modified network values: endpoint_type = internalURL The existing code will not honor this endpoint_type for the client. Fix is to pass on the info. I.e. instead of the current code: client_args = [auth_provider, 'network', 'regionOne'] cls.load_balancers_client = ( load_balancers_client.LoadBalancersClientJSON(*client_args)) Read configuration and pass on the parameters if they exist thru to the ServiceClient base class underling the client connection with method signature: def __init__(self, auth_provider, service, region, endpoint_type=None, build_interval=None, build_timeout=None, disable_ssl_certificate_validation=None, ca_certs=None, trace_requests=None): ** Affects: neutron Importance: Undecided Assignee: James Arendt (james-arendt-7) Status: New ** Changed in: neutron Assignee: (unassigned) => James Arendt (james-arendt-7) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1525430 Title: neutron-lbaas tempest v2 api tests not passing config to serviceclient Status in neutron: New Bug description: Current lbaas tempest v2 api tests do not pass on certain configuration information to the underlyiing ServiceClient used to make a connection, so tests do not work if values like the endpoint_type or region for the network are changed in the tempest.conf. Similarly cannot change control values like the build_timeout. For example, run tempest tests from the neuton_lbaas tree via OS_TEST_PATH with TEMPEST_CONFIG_DIR set to a tempest.conf that has modified network values: endpoint_type = internalURL The existing code will not honor this endpoint_type for the client. Fix is to pass on the info. I.e. instead of the current code: client_args = [auth_provider, 'network', 'regionOne'] cls.load_balancers_client = ( load_balancers_client.LoadBalancersClientJSON(*client_args)) Read configuration and pass on the parameters if they exist thru to the ServiceClient base class underling the client connection with method signature: def __init__(self, auth_provider, service, region, endpoint_type=None, build_interval=None, build_timeout=None, disable_ssl_certificate_validation=None, ca_certs=None, trace_requests=None): To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1525430/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp