Skip to content

Commit

Permalink
chore: use test-runs/id
Browse files Browse the repository at this point in the history
  • Loading branch information
ASaiAnudeep committed Aug 18, 2024
1 parent 4098eb6 commit 5a0d308
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/beats/beats.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BeatsApi {
*/
getTestRun(run_id) {
return request.get({
url: `${this.getBaseUrl()}/api/core/v1/test-runs/key?id=${run_id}`,
url: `${this.getBaseUrl()}/api/core/v1/test-runs/${run_id}`,
headers: {
'x-api-key': this.config.api_key
}
Expand Down
10 changes: 2 additions & 8 deletions test/mocks/beats.mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ addInteractionHandler('get test results from beats', () => {
strict: false,
request: {
method: 'GET',
path: '/api/core/v1/test-runs/key',
queryParams: {
"id": "test-run-id"
}
path: '/api/core/v1/test-runs/test-run-id',
},
response: {
status: 200,
Expand All @@ -48,10 +45,7 @@ addInteractionHandler('get test results with smart analysis from beats', () => {
strict: false,
request: {
method: 'GET',
path: '/api/core/v1/test-runs/key',
queryParams: {
"id": "test-run-id"
}
path: '/api/core/v1/test-runs/test-run-id'
},
response: {
status: 200,
Expand Down

0 comments on commit 5a0d308

Please sign in to comment.