Skip to content

Commit 5a0d308

Browse files
committed
chore: use test-runs/id
1 parent 4098eb6 commit 5a0d308

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/beats/beats.api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class BeatsApi {
2525
*/
2626
getTestRun(run_id) {
2727
return request.get({
28-
url: `${this.getBaseUrl()}/api/core/v1/test-runs/key?id=${run_id}`,
28+
url: `${this.getBaseUrl()}/api/core/v1/test-runs/${run_id}`,
2929
headers: {
3030
'x-api-key': this.config.api_key
3131
}

test/mocks/beats.mock.js

+2-8
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ addInteractionHandler('get test results from beats', () => {
2222
strict: false,
2323
request: {
2424
method: 'GET',
25-
path: '/api/core/v1/test-runs/key',
26-
queryParams: {
27-
"id": "test-run-id"
28-
}
25+
path: '/api/core/v1/test-runs/test-run-id',
2926
},
3027
response: {
3128
status: 200,
@@ -48,10 +45,7 @@ addInteractionHandler('get test results with smart analysis from beats', () => {
4845
strict: false,
4946
request: {
5047
method: 'GET',
51-
path: '/api/core/v1/test-runs/key',
52-
queryParams: {
53-
"id": "test-run-id"
54-
}
48+
path: '/api/core/v1/test-runs/test-run-id'
5549
},
5650
response: {
5751
status: 200,

0 commit comments

Comments
 (0)