diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eb0ac6618145ca8445c64ea49fff100d12b9bae3..3c9f2a77af95b8215cbea416743baf624185dd6c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -68,7 +68,21 @@ Integration Tests: rules: - if: '$CI_COMMIT_BRANCH =~ /^(master|production)$/' -Production Plan: +Load Tests: + stage: Integration Test + image: + name: peterevans/vegeta + entrypoint: [""] + script: + - echo "GET $API_ENDPOINT/crud" | vegeta attack -duration=3s -rate=100/s | vegeta report + - echo "PUT $API_ENDPOINT/crud" | vegeta attack -duration=3s -rate=100/s | vegeta report + - echo "PATCH $API_ENDPOINT/crud" | vegeta attack -duration=3s -rate=100/s | vegeta report + - echo "DELETE $API_ENDPOINT/crud" | vegeta attack -duration=3s -rate=100/s | vegeta report + rules: + - if: '$CI_COMMIT_BRANCH =~ /^(master|production)$/' + when: manual + + Production Plan: stage: Production Plan script: - cd deploy/