Add target var to be possible to run tests from it
* replace ctl to TARGET(set from job)
* add pattern to be possible run group of tests
* add optional step install docker
Change-Id: I0c602914d8544abafea9e109edee41dea23bb714
diff --git a/lab-pipeline.groovy b/lab-pipeline.groovy
index 3094e58..4799596 100644
--- a/lab-pipeline.groovy
+++ b/lab-pipeline.groovy
@@ -37,7 +37,10 @@
* K8S_API_SERVER Kubernetes API address
* K8S_CONFORMANCE_IMAGE Path to docker image with conformance e2e tests
*
- * TEMPEST_IMAGE_LINK Tempest image link
+ * TEMPEST_IMAGE Tempest image link
+ * TARGET_TEST_NODE Node to run tests
+ * DOCKER_INSTALL Install docker on the target if tue
+ * PATTERN If not false, run tests matched to pattern only
*
* optional parameters for overwriting soft params
* SALT_OVERRIDES YAML with overrides for Salt deployment
@@ -354,12 +357,15 @@
}
if (common.checkContains('STACK_TEST', 'openstack')) {
+ if (common.checkContains('DOCKER_INSTALL', 'true')) {
+ test.install_docker(saltMaster, TARGET)
+ }
stage('Run OpenStack tests') {
- test.runTempestTests(saltMaster, TEMPEST_IMAGE_LINK)
+ test.runTempestTests(saltMaster, TEMPEST_IMAGE, TARGET, PATTERN)
}
stage('Copy Tempest results to config node') {
- test.copyTempestResults(saltMaster)
+ test.copyTempestResults(saltMaster, TARGET)
}
}