-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add performance tests to ci-cd-yt01 workflow (#1595)
<!--- Provide a general summary of your changes in the Title above --> Add performance tests and run these tests in ci-cd-yt01 workflow ## Description <!--- Describe your changes in detail --> ## Related Issue(s) #1540 - #{issue number} ## Verification - [ ] **Your** code builds clean without any errors or warnings - [x] Manual testing done (required) - [ ] Relevant automated test added (if you find this hard, leave it and we'll help out) ## Documentation - [ ] Documentation is updated (either in `docs`-directory, Altinnpedia or a separate linked PR in [altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if applicable) --------- Co-authored-by: Are Almaas <arealmaas@gmail.com>
- Loading branch information
Showing
7 changed files
with
136 additions
and
13 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { default as run } from "./performance/enduser-search.js"; | ||
|
||
export let options = { | ||
summaryTrendStats: ['avg', 'min', 'med', 'max', 'p(95)', 'p(99)', 'p(99.5)', 'p(99.9)', 'count'], | ||
vus: 1, | ||
duration: "30s", | ||
thresholds: { | ||
"http_req_duration{name:enduser search}": ["p(95)<300", "p(99)<500"], | ||
"http_req_duration{name:enduser get dialog}": ["p(95)<300", "p(99)<500"], | ||
"http_req_duration{name:enduser get dialog activities}": ["p(95)<300", "p(99)<500"], | ||
"http_req_duration{name:enduser get dialog activity}": ["p(95)<300", "p(99)<500"], | ||
"http_req_duration{name:enduser get seenlogs}": ["p(95)<300", "p(99)<500"], | ||
"http_req_duration{name:enduser get transmissions}": ["p(95)<300", "p(99)<500"], | ||
"http_req_duration{name:enduser get transmission}": ["p(95)<300", "p(99)<500"], | ||
"http_req_duration{name:enduser get labellog}": ["p(95)<300", "p(99)<500"], | ||
"http_reqs{name:enduser search}": [], | ||
"http_reqs{name:enduser get dialog activities}": [], | ||
"http_reqs{name:enduser get dialog activity}": [], | ||
"http_reqs{name:enduser get seenlogs}": [], | ||
"http_reqs{name:enduser get transmissions}": [], | ||
"http_reqs{name:enduser get transmission}": [], | ||
"http_reqs{name:enduser get dialog}": [], | ||
"http_reqs{name:enduser get labellog}": [], | ||
} | ||
} | ||
|
||
export default function (data) { run(data); } | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { default as run } from "./performance/create-dialog.js"; | ||
|
||
export let options = { | ||
summaryTrendStats: ['avg', 'min', 'med', 'max', 'p(95)', 'p(99)', 'p(99.5)', 'p(99.9)', 'count'], | ||
vus: 1, | ||
duration: "30s", | ||
thresholds: { | ||
"http_req_duration": ["p(95)<300", "p(99)<500"], | ||
} | ||
} | ||
|
||
export default function (data) { run(data); } |
24 changes: 24 additions & 0 deletions
24
tests/k6/tests/serviceowner/serviceOwnerSearchWithThresholds.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { default as run } from "./performance/serviceowner-search.js"; | ||
|
||
export let options = { | ||
summaryTrendStats: ['avg', 'min', 'med', 'max', 'p(95)', 'p(99)', 'p(99.5)', 'p(99.9)', 'count'], | ||
vus: 1, | ||
duration: "30s", | ||
thresholds: { | ||
"http_req_duration{name:serviceowner search}": ["p(95)<100", "p(99)<300"], | ||
"http_req_duration{name:get dialog activities}": ["p(95)<100", "p(99)<300"], | ||
"http_req_duration{name:get dialog activity}": ["p(95)<100", "p(99)<300"], | ||
"http_req_duration{name:get seenlogs}": ["p(95)<100", "p(99)<300"], | ||
"http_req_duration{name:get transmissions}": ["p(95)<100", "p(99)<300"], | ||
"http_req_duration{name:get transmission}": ["p(95)<100", "p(99)<300"], | ||
"http_reqs{name:get dialog activities}": [], | ||
"http_reqs{name:get dialog activity}": [], | ||
"http_reqs{name:get seenlogs}": [], | ||
"http_reqs{name:get transmissions}": [], | ||
"http_reqs{name:get transmission}": [], | ||
"http_reqs{name:serviceowner search}": [], | ||
} | ||
} | ||
|
||
export default function (data) { run(data); } | ||
|