This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { check, sleep } from "k6"; | |
import http from "k6/http"; | |
export let options = { | |
stages: [ | |
{ duration: "60s", target: 10 }, | |
{ duration: "60s", target: 0 } | |
], | |
thresholds: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { check, sleep } from "k6"; | |
import http from "k6/http"; | |
export let options = { | |
stages: [ | |
{ duration: "60s", target: 10 }, | |
{ duration: "60s", target: 0 } | |
], | |
thresholds: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change 1 | |
login_loadimpact: &login_loadimpact | |
run: | |
name: Logging into loadimpact | |
command: | | |
k6 login cloud --token $K6_CLOUD_TOKEN | |
# change 2 | |
k6_performance_tests: &k6_performance_tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The following block of code resides in the options code block | |
ext: { | |
loadimpact: { | |
name: "k6 cloud test!", | |
distribution: { | |
scenarioLabel1: { loadZone: "amazon:us:ashburn", percent: 100 } | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: &defaults | |
parallelism: 1 | |
docker: | |
- image: loadimpact/k6:latest | |
k6_performance_tests: &k6_performance_tests | |
run: | |
name: Running Load Tests Using K6 | |
command: | | |
k6 cloud tests/cloud-test.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: &defaults | |
parallelism: 1 | |
docker: | |
- image: loadimpact/k6:latest | |
k6_performance_tests: &k6_performance_tests | |
run: | |
name: Running Load Tests Using K6 | |
command: | | |
k6 cloud tests/cloud-test.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: &defaults | |
parallelism: 1 | |
docker: | |
- image: loadimpact/k6:latest | |
run_any_tests_here: &run_any_tests_here | |
run: | |
name: Run Tests | |
command: | | |
cd tests_folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: &defaults | |
parallelism: 1 | |
docker: | |
- image: loadimpact/k6:latest | |
run_any_tests_here: &run_any_tests_here | |
run: | |
name: Run Tests | |
command: | | |
cd tests_folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## How do we enable Firewall? If we add the bash scripts as | |
## https://github.com/loadimpact/k6-circleci-example/tree/master/aws | |
## will the following works? | |
make_scripts_executable: &make_scripts_executable | |
run: | |
name: making scripts executable | |
command: | | |
chmod +x ./authorize_aws_security_group.sh | |
chmod +x ./revoke_aws_security_group.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: &defaults | |
parallelism: 1 | |
docker: | |
- image: ubuntu:latest | |
setup: &setup | |
run: | |
name: Installing aws cli and setting it up | |
command: | | |
chmod 777 setup.sh |
OlderNewer