Skip to content

Commit 6b95988

Browse files
author
Alex Plischke
authored
Merge pull request #113 from saucelabs/test-composer-endpoint
Use newer test-composer endpoint
2 parents 987eab2 + 94f1f77 commit 6b95988

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"swagger":"2.0",
33
"info":{
4-
"description":"A service that orchestrates the Sauce cloud as well as test runner packages.",
4+
"description":"A service that orchestrates the Sauce Cloud.",
55
"version":"0.1.7",
6-
"title":"Testrunner Orchestrator",
6+
"title":"Test-Composer",
77
"termsOfService":"https://saucelabs.com/terms-of-service",
88
"contact":{
99
"name":"Open Source Program Office at Sauce",
@@ -12,10 +12,10 @@
1212
}
1313
},
1414
"externalDocs":{
15-
"description":"Sauce Labs Wiki",
16-
"url":"https://wiki.saucelabs.com"
15+
"description":"Sauce Labs Docs",
16+
"url":"https://docs.saucelabs.com"
1717
},
18-
"basePath": "/v1/testrunner",
18+
"basePath": "/v1/testcomposer",
1919
"servers":[
2020
{
2121
"url":"https://api.{region}.saucelabs.{tld}",

src/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const protocols = [
1818
require('../apis/sauce.json'),
1919
require('../apis/rdc.json'),
2020
require('../apis/performance.json'),
21-
require('../apis/testrunner.json'),
21+
require('../apis/testcomposer.json'),
2222
require('../apis/datastore.json'),
2323
require('../apis/autonomiq.json')
2424
]

tests/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ test('should allow to upload files', async () => {
322322
expect(instances[0].append).toBeCalledWith('file[]', Buffer.from(JSON.stringify({ foo: 'bar' })), 'foobar.json')
323323

324324
const uri = got.mock.calls[0][0]
325-
expect(uri).toBe('https://api.us-west-1.saucelabs.com/v1/testrunner/jobs/some-id/assets')
325+
expect(uri).toBe('https://api.us-west-1.saucelabs.com/v1/testcomposer/jobs/some-id/assets')
326326

327327
expect(result).toEqual(body)
328328
})

0 commit comments

Comments
 (0)