Skip to content

Commit 28a9d14

Browse files
author
Vitaly Korolev
committed
add option to run one specific e2e test
1 parent 3bb893f commit 28a9d14

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ pipeline {
171171
string(name: 'prevDockerVersion', defaultValue: 'latest-10', description: 'Previous Docker version for MarkLogic upgrade tests. (e.g. 10.0-10.2-centos-1.1.2) Has to correspond with dockerImageType.', trim: true)
172172
choice(name: 'K8_VERSION', choices: 'v1.29\nv1.30\nv1.28\nv1.27\nv1.26\nv1.25\nv1.24', description: 'Test Kubernetes version.')
173173
booleanParam(name: 'KUBERNETES_TESTS', defaultValue: true, description: 'Run kubernetes tests')
174+
string(name: 'KUBERNETES_TEST_SELECTION', defaultValue: 'Pick one test to run. (e.g. tls_test.go) ... will run all tests.', description: '..', trim: true)
174175
booleanParam(name: 'HC_TESTS', defaultValue: false, description: 'Run Hub Central E2E UI tests (takes about 3 hours)')
175176
booleanParam(name: 'IMAGE_SCAN', defaultValue: false, description: 'Find and scan dependent Docker images for security vulnerabilities')
176177
string(name: 'emailList', defaultValue: emailList, description: 'List of email for build notification', trim: true)
@@ -204,7 +205,7 @@ pipeline {
204205
}
205206
steps {
206207
sh """
207-
export MINIKUBE_HOME=/space; export KUBECONFIG=/space/.kube-config; export GOPATH=/space/go; make test dockerImage=${dockerRepository}:${dockerVersion} prevDockerImage=${dockerRepository}:${prevDockerVersion} kubernetesVersion=${params.K8_VERSION} saveOutput=true minikubeMemory=20gb
208+
export MINIKUBE_HOME=/space; export KUBECONFIG=/space/.kube-config; export GOPATH=/space/go; make test dockerImage=${dockerRepository}:${dockerVersion} prevDockerImage=${dockerRepository}:${prevDockerVersion} kubernetesVersion=${params.K8_VERSION} saveOutput=true minikubeMemory=20gb testSelection=${params.KUBERNETES_TEST_SELECTION}
208209
"""
209210
}
210211
}

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ e2e-test: prepare
117117
minikube start
118118

119119
@echo "=====Running hugepages e2e test"
120-
$(if $(saveOutput),gotestsum --junitfile test/test_results/hugePages-tests.xml ./test/hugePages/... -count=1 -timeout 70m, go test -v -count=1 -timeout 70m ./test/hugePages/...)
120+
$(if $(saveOutput),gotestsum --junitfile test/test_results/hugePages-tests.xml ./test/hugePages/$(testSelection) -count=1 -timeout 70m, go test -v -count=1 -timeout 70m ./test/hugePages/...)
121121

122122
@echo "=====Resetting hugepages value to 0"
123123
sudo sysctl -w vm.nr_hugepages=0

0 commit comments

Comments
 (0)