diff --git a/src/beats/beats.api.js b/src/beats/beats.api.js index ccebfe2..6338b56 100644 --- a/src/beats/beats.api.js +++ b/src/beats/beats.api.js @@ -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 } diff --git a/test/mocks/beats.mock.js b/test/mocks/beats.mock.js index e61b407..e26a294 100644 --- a/test/mocks/beats.mock.js +++ b/test/mocks/beats.mock.js @@ -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, @@ -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,