Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update test cases to be closer with real use cases #3

Merged
merged 1 commit into from
Aug 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,19 +87,18 @@ login-k6:

execute-k6: execute-k6-scaledobjects-cases

execute-k6-scaledobjects-cases: case-n-scaledobjects-single-metric case-single-scaledobject-n-metrics case-n-scaledobjects-n-metrics

case-n-scaledobjects-single-metric:
execute-k6-scaledobjects-cases:
# Increasing ScaledObject count (10, 100, 1000 metrics in total)
@$(K6_ENVS) TARGET_SCALABLEDOBJECTS=10 TARGET_METRICS=1 ./k6 run --out cloud tests/test-scaledobject.js
@$(K6_ENVS) TARGET_SCALABLEDOBJECTS=100 TARGET_METRICS=1 ./k6 run --out cloud tests/test-scaledobject.js
@$(K6_ENVS) TARGET_SCALABLEDOBJECTS=1000 TARGET_METRICS=1 ./k6 run --out cloud tests/test-scaledobject.js

case-single-scaledobject-n-metrics:
@$(K6_ENVS) TARGET_SCALABLEDOBJECTS=1 TARGET_METRICS=10 ./k6 run --out cloud tests/test-scaledobject.js
@$(K6_ENVS) TARGET_SCALABLEDOBJECTS=1 TARGET_METRICS=100 ./k6 run --out cloud tests/test-scaledobject.js
@$(K6_ENVS) TARGET_SCALABLEDOBJECTS=1 TARGET_METRICS=1000 ./k6 run --out cloud tests/test-scaledobject.js
# Increasing metrics per ScaledObject (10, 100, 1000 metrics in total)
@$(K6_ENVS) TARGET_SCALABLEDOBJECTS=10 TARGET_METRICS=1 ./k6 run --out cloud tests/test-scaledobject.js
@$(K6_ENVS) TARGET_SCALABLEDOBJECTS=10 TARGET_METRICS=10 ./k6 run --out cloud tests/test-scaledobject.js
@$(K6_ENVS) TARGET_SCALABLEDOBJECTS=10 TARGET_METRICS=100 ./k6 run --out cloud tests/test-scaledobject.js

case-n-scaledobjects-n-metrics:
@$(K6_ENVS) TARGET_SCALABLEDOBJECTS=2 TARGET_METRICS=500 ./k6 run --out cloud tests/test-scaledobject.js
# Switching between ScaledObject count and metrics per ScaledObject (1000 metrics in total)
@$(K6_ENVS) TARGET_SCALABLEDOBJECTS=20 TARGET_METRICS=50 ./k6 run --out cloud tests/test-scaledobject.js
@$(K6_ENVS) TARGET_SCALABLEDOBJECTS=100 TARGET_METRICS=10 ./k6 run --out cloud tests/test-scaledobject.js
@$(K6_ENVS) TARGET_SCALABLEDOBJECTS=500 TARGET_METRICS=2 ./k6 run --out cloud tests/test-scaledobject.js
Loading