diff options
author | Vijay Venkatesh Kumar <vv770d@att.com> | 2020-06-09 16:05:07 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-06-09 16:05:07 +0000 |
commit | 85e7a08c4b64fcd832387a9d5b80b7f4624a3afd (patch) | |
tree | ef13040a070b3a5058ccad61abd61be3bebe8238 /performanceTests/Makefile | |
parent | a0f2e231b6a4c6b002eb64b86b124400d9d048ae (diff) | |
parent | 36e09e63f779b5ebec4391f1a444ef214850e2fe (diff) |
Merge "Add JMeter to performance tests environment"
Diffstat (limited to 'performanceTests/Makefile')
-rw-r--r-- | performanceTests/Makefile | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/performanceTests/Makefile b/performanceTests/Makefile index 5583a613..30a3d2ea 100644 --- a/performanceTests/Makefile +++ b/performanceTests/Makefile @@ -1,10 +1,14 @@ -all: copy-performanceTests run-performanceTests +all: copy-performanceTests run-performanceTests copy-jmeter RKE_NODE_USER_AND_HOSTNAME = <RKE_USER>@<RKE_IP> # for example ubuntu@10.183.36.205 RKE_PRIVATE_KEY = <PEM_PRIVATE_KEY_FILE_PATH> # for example ~/.ssh/onap-5802.pem PERFORMANCE_TESTS_DIRECTORY = vesPerformanceTestsEnv -RKE_KUBECONFIG_FILE_PATH = <KUBECONFIG_FILE_PATH_ON_RKE> # for example /home/ubuntu/.kube/config.onap +RKE_KUBECONFIG_FILE_PATH = /home/ubuntu/.kube/config.onap + +#Configuration for jMeter +JMETER_VM_USER_AND_HOSTNAME = <RKE_USER>@<VM_IP> # for example root@10.183.36.50 +JMETER_VM_PRIVATE_KEY = <PEM_PRIVATE_KEY_FILE_PATH> # for example ~/.ssh/onap-5802.pem copy-performanceTests: @echo "\n##### Copy performance tests directory to lab environment #####" @@ -24,4 +28,19 @@ clear-performanceTests: remove-performanceTests: @echo "\n##### Remove performance tests #####" ssh -i $(RKE_PRIVATE_KEY) $(RKE_NODE_USER_AND_HOSTNAME) 'bash -c "export KUBECONFIG=$(RKE_KUBECONFIG_FILE_PATH) && rm -rf $(PERFORMANCE_TESTS_DIRECTORY)"' + @echo "##### DONE #####" + +copy-jmeter: + @echo "\n##### Copy JMeter #####" + scp -r -i $(JMETER_VM_PRIVATE_KEY) ./k8s/testScenario $(JMETER_VM_USER_AND_HOSTNAME):$(PERFORMANCE_TESTS_DIRECTORY) + @echo "##### DONE #####" + +run-jmeter: + @echo "\n##### Run test scenario #####" + ssh -i $(JMETER_VM_PRIVATE_KEY) $(JMETER_VM_USER_AND_HOSTNAME) '/bin/bash ./$(PERFORMANCE_TESTS_DIRECTORY)/run_jmeter.sh' + @echo "##### DONE #####" + +remove-jmeter: + @echo "\n##### Remove JMeter #####" + ssh -i $(JMETER_VM_PRIVATE_KEY) $(JMETER_VM_USER_AND_HOSTNAME) 'rm -rf $(PERFORMANCE_TESTS_DIRECTORY)' @echo "##### DONE #####"
\ No newline at end of file |