1.What is the purpose of this patch set? The Tricircle project doesn't provide integration test yet. To achieve integration test, the Tricircle needs to provide hook scripts for the Jenkins job to execute the test. The Tricircle integration test Jenkins job will be configured in https://github.com/openstack-infra/project-config/tree/master/jenkins/jobs A Jenkins job patch will be submited to project-config once this patch is merged. Without the hook scripts provided in this patch, the Jenkins job configured in project-config is not able to be executed successfully. After the autotimc Jenkins job is established, all new patches sumitted to the Tricircle should pass the integration test, i.e. the test is also the gate test for a new patch. For example, for cinder volume type patch, currently no integration test is provided, we don't know the patch work or not. As new features added to the Tricircle, integration test cases from the Tempest for OpenStack Nova/Cinder/Neutron could be added to the post_test_hook.sh, to test the features added to the Tricircle is correct or not. 2.What is the benefit of this patch set for the Tricircle project? Reuse OpenStack Nova/Cinder/Neutron tempest test cases, and provide integration gate test for new patches. 3.What is the platform you tested it out? After the Jenkins job patch is merged, the test will be executed in the OpenStack CI pipeline, and as one of the gate test for a new patch. CI pipeline will be triggered by gerrit review process, and the test will be executed in the devstack VM(booted by CI pipeline). http://docs.openstack.org/infra/system-config/jenkins.html Change-Id: I5333681fdcaefb01498d9d8c6751d5d174bf57c2 Signed-off-by: Chaoyi Huang <joehuang@huawei.com>
39 lines
1.2 KiB
Python
39 lines
1.2 KiB
Python
# Copyright 2015
|
|
# All Rights Reserved.
|
|
#
|
|
# 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.
|
|
|
|
|
|
import os
|
|
|
|
from tempest import config # noqa
|
|
from tempest.test_discover import plugins
|
|
|
|
from tricircle.tempestplugin import config as project_config # noqa
|
|
|
|
|
|
class TricircleTempestPlugin(plugins.TempestPlugin):
|
|
|
|
def load_tests(self):
|
|
base_path = os.path.split(os.path.dirname(
|
|
os.path.abspath(__file__)))[0]
|
|
test_dir = "tempestplugin/tests"
|
|
full_test_dir = os.path.join(base_path, test_dir)
|
|
return full_test_dir, base_path
|
|
|
|
def register_opts(self, conf):
|
|
pass
|
|
|
|
def get_opt_lists(self):
|
|
pass
|