diff options
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 |