Commit 5d729aad authored by Grant Young's avatar Grant Young

Fix params for two test

Wrong level for token.
parent c97a3709
......@@ -16,7 +16,7 @@ require 'tmpdir'
k6_dir = Pathname.new(File.expand_path('../k6', __dir__)).relative_path_from(Dir.pwd)
gpt_version = '1.2.3'
gpt_version = '1.2.4'
puts Rainbow("GitLab Performance Tool (GPT) v#{gpt_version} - Performance test runner for GitLab environments based on k6").color(230, 83, 40)
opts = Optimist.options do
......
......@@ -242,7 +242,7 @@ The recommended way to run the Tool is with our Docker image, [gitlab/gitlab-per
The image will start running the tests when it's called. The full options for running the tool can be seen by getting the help output by running `docker run -it gitlab/gitlab-performance-tool --help`:
```
GitLab Performance Tool (GPT) v1.2.3 - Performance test runner for GitLab environments based on k6
GitLab Performance Tool (GPT) v1.2.4 - Performance test runner for GitLab environments based on k6
Documentation: https://gitlab.com/gitlab-org/quality/performance/blob/master/docs/README.md
......
......@@ -33,7 +33,7 @@ export default function() {
group("API - Group Projects List", function() {
let project = selectProject(projects);
let params = { headers: { "Accept": "application/json" }, "PRIVATE-TOKEN": `${__ENV.ACCESS_TOKEN}` };
let params = { headers: { "Accept": "application/json", "PRIVATE-TOKEN": `${__ENV.ACCESS_TOKEN}` } };
let res = http.get(`${__ENV.ENVIRONMENT_URL}/api/v4/groups/${project['group']}/projects`, params);
/20(0|1)/.test(res.status) ? successRate.add(true) : (successRate.add(false), logError(res));
});
......
......@@ -2,7 +2,6 @@
/*
@endpoint: `GET /projects/:id/issues/:issue_iid`
@description: [Get a single project issue](https://docs.gitlab.com/ee/api/issues.html#single-issue)
@issue: TBC
*/
import http from "k6/http";
......@@ -12,8 +11,8 @@ import { logError, checkAccessToken, getRpsThresholds, getTtfbThreshold, getProj
checkAccessToken();
export let rpsThresholds = getRpsThresholds(0.05)
export let ttfbThreshold = getTtfbThreshold(20000)
export let rpsThresholds = getRpsThresholds()
export let ttfbThreshold = getTtfbThreshold()
export let successRate = new Rate("successful_requests")
export let options = {
thresholds: {
......
......@@ -33,7 +33,7 @@ export default function() {
group("API - Merge Request Changes", function() {
let project = selectProject(projects);
let params = { headers: { "Accept": "application/json" }, "PRIVATE-TOKEN": `${__ENV.ACCESS_TOKEN}` };
let params = { headers: { "Accept": "application/json", "PRIVATE-TOKEN": `${__ENV.ACCESS_TOKEN}` } };
let res = http.get(`${__ENV.ENVIRONMENT_URL}/api/v4/projects/${project['group']}%2F${project['name']}/merge_requests/${project['mr_commits_iid']}`, params);
/20(0|1)/.test(res.status) ? successRate.add(true) : (successRate.add(false), logError(res));
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment