@@ -106,7 +106,7 @@ endef
106106
107107test-deployment : test-deployment-with-grafana # # runs deployment test on local deploy (with Grafana by default)
108108
109- test-deployment-with-grafana : _check_venv_active # # runs deployment test with Grafana integration
109+ test-deployment-with-grafana : _check_venv_active grafana-dashboards-up # # runs deployment test with Grafana integration
110110 @$(call prompt_for_credentials)
111111 @$(call create_locust_config)
112112 @printf " $( YELLOW) Starting Locust with Grafana integration...$( NC) \n"
@@ -127,47 +127,7 @@ test-deployment-no-grafana: _check_venv_active ## runs deployment test without G
127127 locust --config $(LOCUST_CONFIG_FILE ) \
128128 --headless
129129
130- test-deployment-light : _check_venv_active # # runs a light load test with 5 users, 1 spawn rate and 10s runtime (with Grafana)
131- @$(call prompt_for_credentials)
132- @$(call generate_locust_config,_light,2,5,1,10s,Light Test)
133- @printf " $( YELLOW) Starting Locust with light load (with Grafana)...$( NC) \n"
134- @export $$(cat $(AUTH_CREDS_FILE ) | xargs ) && \
135- locust --config $(LOCUST_CONFIG_FILE ) _light \
136- --grafana-url $(GRAFANA_URL ) \
137- --pghost $(PG_HOST ) \
138- --pgport $(PG_PORT ) \
139- --pguser $(PG_USER ) \
140- --pgpassword=$(PG_PASSWORD ) \
141- --timescale
142-
143- test-deployment-light-no-grafana : _check_venv_active # # runs a light load test with 5 users, 1 spawn rate and 10s runtime (without Grafana)
144- @$(call prompt_for_credentials)
145- @$(call generate_locust_config,_light,2,5,1,10s,Light Test)
146- @printf " $( YELLOW) Starting Locust with light load (without Grafana)...$( NC) \n"
147- @export $$(cat $(AUTH_CREDS_FILE ) | xargs ) && \
148- locust --config $(LOCUST_CONFIG_FILE ) _light \
149- --headless
150130
151- test-deployment-heavy : _check_venv_active # # runs a heavy load test with 50 users, 5 spawn rate and 60s runtime (with Grafana)
152- @$(call prompt_for_credentials)
153- @$(call generate_locust_config,_heavy,4,50,5,60s,Heavy Test)
154- @printf " $( YELLOW) Starting Locust with heavy load (with Grafana)...$( NC) \n"
155- @export $$(cat $(AUTH_CREDS_FILE ) | xargs ) && \
156- locust --config $(LOCUST_CONFIG_FILE ) _heavy \
157- --grafana-url $(GRAFANA_URL ) \
158- --pghost $(PG_HOST ) \
159- --pgport $(PG_PORT ) \
160- --pguser $(PG_USER ) \
161- --pgpassword=$(PG_PASSWORD ) \
162- --timescale
163-
164- test-deployment-heavy-no-grafana : _check_venv_active # # runs a heavy load test with 50 users, 5 spawn rate and 60s runtime (without Grafana)
165- @$(call prompt_for_credentials)
166- @$(call generate_locust_config,_heavy,4,50,5,60s,Heavy Test)
167- @printf " $( YELLOW) Starting Locust with heavy load (without Grafana)...$( NC) \n"
168- @export $$(cat $(AUTH_CREDS_FILE ) | xargs ) && \
169- locust --config $(LOCUST_CONFIG_FILE ) _heavy \
170- --headless
171131
172132clear-credentials : # # Clear the cached authentication credentials
173133 @if [ -f $( AUTH_CREDS_FILE) ]; then \
@@ -222,7 +182,7 @@ clear-locust-config: ## Clear all Locust configuration files
222182 printf " $( YELLOW) No Locust configuration files found.$( NC) \n" ; \
223183 fi
224184
225- up :
185+ grafana-dashboards- up :
226186 @locust-compose up -d
227- down :
187+ grafana-dashboards- down :
228188 @locust-compose down
0 commit comments