Gary Kotton 1a09c24120 Tempest: fix broken tempest tests
Commit f70a4e48f58818d04bcd1f25ca94e3e5d5a9f858 broke the tempest
tests.

Change-Id: Iedc053b6bfa24fc38d0e2230f2bd66098d1f296b
2016-03-13 06:41:14 -07:00

43 lines
1.6 KiB
Python

# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from tempest.lib.services.network import base
# netowrk/json/base.py does not include thoese method in network_client
class BaseNetworkClient(base.BaseNetworkClient):
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, **kwargs):
dsca = disable_ssl_certificate_validation
super(base.BaseNetworkClient, self).__init__(
auth_provider, service, region,
endpoint_type=endpoint_type,
build_interval=build_interval,
build_timeout=build_timeout,
disable_ssl_certificate_validation=dsca,
ca_certs=ca_certs,
trace_requests=trace_requests)
default_params = {
'disable_ssl_certificate_validation': True,
'ca_certs': None,
'trace_requests': ''}
default_params_2 = {
'catalog_type': 'network',
'region': 'nova',
'endpoint_type': 'publicURL',
'build_timeout': 300,
'build_interval': 1}