Fix smoke bvt tests for mitaka
Change fuel-qa branch to stable/mitaka and and fix smoke and bvt tests for it. Change-Id: I080bc89ae7b62ac73a422a5b5c9f15e8669156d9
This commit is contained in:
parent
865b6641bb
commit
2adef5a1d1
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -1,4 +1,4 @@
|
||||
[submodule "plugin_test/fuel-qa"]
|
||||
path = plugin_test/fuel-qa
|
||||
url = https://github.com/openstack/fuel-qa
|
||||
branch = stable/8.0
|
||||
branch = stable/mitaka
|
||||
|
@ -15,7 +15,8 @@ under the License.
|
||||
from fuelweb_test import logwrap
|
||||
from fuelweb_test import logger
|
||||
from fuelweb_test.helpers.decorators import json_parse
|
||||
from fuelweb_test.helpers.http import HTTPClient
|
||||
from keystoneauth1.identity.v2 import Password
|
||||
from keystoneauth1.session import Session
|
||||
from fuelweb_test.settings import KEYSTONE_CREDS
|
||||
from fuelweb_test.settings import PATH_TO_CERT
|
||||
from fuelweb_test.settings import VERIFY_SSL
|
||||
@ -39,9 +40,12 @@ class ContrailClient(object):
|
||||
insecure = not VERIFY_SSL
|
||||
credentials.update({'ca_cert': PATH_TO_CERT, 'insecure': insecure})
|
||||
logger.info('Initiate Contrail client with url %s', url)
|
||||
self._client = HTTPClient(url=url, keystone_url=self.keystone_url,
|
||||
credentials=credentials,
|
||||
**kwargs)
|
||||
auth = Password(
|
||||
auth_url=self.keystone_url,
|
||||
username=KEYSTONE_CREDS['username'],
|
||||
password=KEYSTONE_CREDS['password'],
|
||||
tenant_name=KEYSTONE_CREDS['tenant_name'])
|
||||
self._client = Session(auth=auth, verify=False)
|
||||
super(ContrailClient, self).__init__()
|
||||
|
||||
@property
|
||||
|
@ -21,7 +21,7 @@ from devops.helpers.helpers import tcp_ping
|
||||
from devops.helpers.helpers import wait
|
||||
|
||||
from fuelweb_test import logger
|
||||
from fuelweb_test.helpers import checkers
|
||||
from fuelweb_test.helpers import utils
|
||||
from fuelweb_test.settings import CONTRAIL_PLUGIN_PATH
|
||||
from proboscis.asserts import assert_true
|
||||
from settings import VSRX_TEMPLATE_PATH
|
||||
@ -79,13 +79,13 @@ def prepare_contrail_plugin(obj, slaves=None, snapshot_name=None, options={}):
|
||||
obj.env.revert_snapshot(snapshot_name)
|
||||
|
||||
# copy plugin to the master node
|
||||
checkers.upload_tarball(
|
||||
obj.env.d_env.get_admin_remote(),
|
||||
utils.upload_tarball(
|
||||
obj.ssh_manager.admin_ip,
|
||||
CONTRAIL_PLUGIN_PATH, '/var')
|
||||
|
||||
# install plugin
|
||||
checkers.install_plugin_check_code(
|
||||
obj.env.d_env.get_admin_remote(),
|
||||
utils.install_plugin_check_code(
|
||||
obj.ssh_manager.admin_ip,
|
||||
plugin=os.path.basename(CONTRAIL_PLUGIN_PATH))
|
||||
# FIXME: when opencontrail is supported
|
||||
# FIXME: remove the following line from 'or True'
|
||||
|
@ -28,6 +28,7 @@ from fuelweb_test.tests.base_test_case import TestBasic
|
||||
from helpers import plugin
|
||||
from helpers import openstack
|
||||
from helpers.settings import CONTRAIL_PLUGIN_VERSION
|
||||
from helpers.settings import OSTF_RUN_TIMEOUT
|
||||
from tests.test_contrail_check import TestContrailCheck
|
||||
|
||||
|
||||
@ -268,4 +269,5 @@ class ContrailPlugin(TestBasic):
|
||||
|
||||
self.show_step(10)
|
||||
if vsrx_setup_result:
|
||||
self.fuel_web.run_ostf(cluster_id=self.cluster_id)
|
||||
self.fuel_web.run_ostf(cluster_id=self.cluster_id,
|
||||
timeout=OSTF_RUN_TIMEOUT)
|
||||
|
Loading…
Reference in New Issue
Block a user