Created
November 29, 2023 14:50
-
-
Save iamsuneeth/1d1a1207a1b23446aae2e8806fd619d9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
config: | |
target: '{{ $processEnvironment.SERVICE_URL }}' | |
phases: | |
- duration: '{{ $processEnvironment.TEST_STARTUP_DURATION }}' #20 | |
arrivalRate: '{{ $processEnvironment.TEST_STARTUP_ARRIVAL_RATE}}' #5 | |
name: Startup phase | |
maxVusers: '{{ $processEnvironment.TEST_STARTUP_MAX_USERS }}' #30 | |
- duration: '{{ $processEnvironment.TEST_PEAK_DURATION }}' #5 | |
arrivalRate: '{{ $processEnvironment.TEST_PEAK_ARRIVAL_RATE }}' #20 | |
name: Peak phase | |
maxVusers: '{{ $processEnvironment.TEST_PEAK_MAX_USERS }}' #30 | |
- duration: '{{ $processEnvironment.TEST_SLOWDOWN_DURATION }}' #10 | |
arrivalRate: '{{ $processEnvironment.TEST_SLOWDOWN_ARRIVAL_RATE }}' #2 | |
name: Slow-down phase | |
maxVusers: '{{ $processEnvironment.TEST_SLOWDOWN_MAX_USERS }}' #30 | |
processor: './processor.cjs' | |
plugins: | |
expect: {} | |
scenarios: | |
- name: 'Create, fetch, update and update config' | |
flow: | |
- post: | |
url: '/' | |
capture: | |
- json: '$.data.upsertLayoutConfigs.data.contentId' | |
as: 'contentId' | |
- json: '$.errors' | |
as: 'errors' | |
expect: | |
- notHasProperty: 'errors' | |
headers: | |
Authorization: 'Bearer {{ $processEnvironment.SERVICE_TOKEN }}' | |
content-type: application/json | |
beforeRequest: 'setConfigCreateBody' | |
- loop: | |
- post: | |
url: '/' | |
capture: | |
- json: '$.errors' | |
as: 'errors' | |
expect: | |
- notHasProperty: 'errors' | |
headers: | |
Authorization: 'Bearer {{ $processEnvironment.SERVICE_TOKEN }}' | |
content-type: application/json | |
beforeRequest: 'setConfigFetchBody' | |
- post: | |
url: '/' | |
capture: | |
- json: '$.errors' | |
as: 'errors' | |
expect: | |
- notHasProperty: 'errors' | |
headers: | |
Authorization: 'Bearer {{ $processEnvironment.SERVICE_TOKEN }}' | |
content-type: application/json | |
beforeRequest: 'setConfigUpdateBody' | |
think: 1 | |
count: 10 | |
- post: | |
url: '/' | |
capture: | |
- json: '$.errors' | |
as: 'errors' | |
expect: | |
- notHasProperty: 'errors' | |
headers: | |
Authorization: 'Bearer {{ $processEnvironment.SERVICE_TOKEN }}' | |
content-type: application/json | |
beforeRequest: 'setConfigDeleteBody' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment