diff options
author | Pawel <pawel.kasperkiewicz@nokia.com> | 2020-06-19 10:30:10 +0200 |
---|---|---|
committer | Pawel <pawel.kasperkiewicz@nokia.com> | 2020-06-19 10:30:10 +0200 |
commit | 34a204f287a0095c31ede1771d794b95e81666c0 (patch) | |
tree | 6f823d1e59db08a9f1bf6173f9c499fe2fa453e4 /performanceTests/Makefile | |
parent | eca7d951a7632b8d8e745ca6552eff1ab8e536bb (diff) |
Add DmaaP simulator, test scenarios and refactor dashboards
Issue-ID: DCAEGEN2-608
Signed-off-by: Pawel <pawel.kasperkiewicz@nokia.com>
Change-Id: I294183c7f80be53f1ca44724deb78abef41e08ed
Diffstat (limited to 'performanceTests/Makefile')
-rw-r--r-- | performanceTests/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/performanceTests/Makefile b/performanceTests/Makefile index 3c56f186..f3f290ee 100644 --- a/performanceTests/Makefile +++ b/performanceTests/Makefile @@ -5,7 +5,7 @@ PERFORMANCE_TESTS_ENV_DIRECTORY = vesPerformanceTestsEnv RKE_KUBECONFIG_FILE_PATH = ~/.kube/config.onap # Targets -all: --copy-k8s-performance-tests-env --copy-jmeter-vm-env --install-k8s-performance-tests-env --install-jmeter-vm-env +all: --copy-k8s-performance-tests-env --copy-jmeter-vm-env --install-jmeter-vm-env --install-k8s-performance-tests-env clear: --uninstall-k8s-performance-tests-env --remove-k8s-performance-tests-env --remove-jmeter-vm-env restart: clear all @@ -17,7 +17,7 @@ restart: clear all --install-k8s-performance-tests-env: @echo "\n##### Deploy components(grafana, influxdb, prometheus, node exporter) on k8s #####" - ssh -i $(RKE_PRIVATE_KEY) $(RKE_NODE_USER_AND_HOSTNAME) 'bash -c "export KUBECONFIG=$(RKE_KUBECONFIG_FILE_PATH) && cd $(PERFORMANCE_TESTS_ENV_DIRECTORY) && make all WORKER_IP=$(WORKER_IP)"' + ssh -i $(RKE_PRIVATE_KEY) $(RKE_NODE_USER_AND_HOSTNAME) 'bash -c "export KUBECONFIG=$(RKE_KUBECONFIG_FILE_PATH) && cd $(PERFORMANCE_TESTS_ENV_DIRECTORY) && make all WORKER_IP=$(WORKER_IP) DMAAP_SIMULATOR_IMAGE=$(DMAAP_SIMULATOR_IMAGE)"' @echo "##### DONE #####" --uninstall-k8s-performance-tests-env: @@ -38,7 +38,7 @@ restart: clear all --install-jmeter-vm-env: @echo "\n##### Install collectd on VM #####" - ssh -i $(JMETER_VM_PRIVATE_KEY) $(JMETER_VM_USER_AND_HOSTNAME) 'sed -i 's/WORKER_IP/$(WORKER_IP)/g' $(PERFORMANCE_TESTS_ENV_DIRECTORY)/jmeter/test_scenario.jmx' + ssh -i $(JMETER_VM_PRIVATE_KEY) $(JMETER_VM_USER_AND_HOSTNAME) 'sed -i 's/WORKER_IP/$(WORKER_IP)/g' $(PERFORMANCE_TESTS_ENV_DIRECTORY)/jmeter/testScenarios/*.jmx' ssh -i $(JMETER_VM_PRIVATE_KEY) $(JMETER_VM_USER_AND_HOSTNAME) 'sed -i 's/WORKER_IP/$(WORKER_IP)/g' $(PERFORMANCE_TESTS_ENV_DIRECTORY)/collectd/collectd.conf' ssh -i $(JMETER_VM_PRIVATE_KEY) $(JMETER_VM_USER_AND_HOSTNAME) 'bash -c $(PERFORMANCE_TESTS_ENV_DIRECTORY)/collectd/install_collectd.sh' @echo "##### DONE #####" @@ -46,6 +46,7 @@ restart: clear all --remove-jmeter-vm-env: @echo "\n##### Remove JMeter environment directory from VM #####" ssh -i $(JMETER_VM_PRIVATE_KEY) $(JMETER_VM_USER_AND_HOSTNAME) 'rm -rf $(PERFORMANCE_TESTS_ENV_DIRECTORY)' + ssh -i $(JMETER_VM_PRIVATE_KEY) $(JMETER_VM_USER_AND_HOSTNAME) 'docker rm -f jmeter || true' @echo "##### DONE #####" # Execute test scenario |