Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit a3fe776

Browse files
committed
Fix provider test due to openwhisk lib change.
1 parent c003368 commit a3fe776

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

provider/tests/openwhiskProvider.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('OpenwhiskProvider', () => {
5959
const creds = {apihost: 'some_api', auth: 'user:pass'}
6060
sandbox.stub(openwhiskProvider, "props").returns(BbPromise.resolve(creds))
6161
return openwhiskProvider.client().then(client => {
62-
expect(client.actions.client.options).to.be.deep.equal({apigw_token: undefined, apigw_space_guid: undefined, namespace: undefined, api_key: creds.auth, ignore_certs: false, api: `https://${creds.apihost}/api/v1/`})
62+
expect(client.actions.client.options).to.be.deep.equal({apigwToken: undefined, apigwSpaceGuid: undefined, namespace: undefined, apiKey: creds.auth, ignoreCerts: false, api: `https://${creds.apihost}/api/v1/`})
6363
expect(typeof openwhiskProvider._client).to.not.equal('undefined');
6464
})
6565
})
@@ -70,7 +70,7 @@ describe('OpenwhiskProvider', () => {
7070
sandbox.stub(openwhiskProvider, "props").returns(BbPromise.resolve(creds))
7171
openwhiskProvider.serverless.service.provider.ignore_certs = true
7272
return openwhiskProvider.client().then(client => {
73-
expect(client.actions.client.options).to.be.deep.equal({apigw_token: undefined, apigw_space_guid: undefined, namespace: undefined, api_key: creds.auth, ignore_certs: true, api: `https://${creds.apihost}/api/v1/`})
73+
expect(client.actions.client.options).to.be.deep.equal({apigwToken: undefined, apigwSpaceGuid: undefined, namespace: undefined, apiKey: creds.auth, ignoreCerts: true, api: `https://${creds.apihost}/api/v1/`})
7474
expect(typeof openwhiskProvider._client).to.not.equal('undefined');
7575
})
7676
})
@@ -80,7 +80,7 @@ describe('OpenwhiskProvider', () => {
8080
const creds = {apihost: 'some_api', auth: 'user:pass', apigw_access_token: 'token'}
8181
sandbox.stub(openwhiskProvider, "props").returns(BbPromise.resolve(creds))
8282
return openwhiskProvider.client().then(client => {
83-
expect(client.actions.client.options).to.be.deep.equal({apigw_token: 'token', apigw_space_guid: 'user', namespace: undefined, api_key: creds.auth, ignore_certs: false, api: `https://${creds.apihost}/api/v1/`})
83+
expect(client.actions.client.options).to.be.deep.equal({apigwToken: 'token', apigwSpaceGuid: 'user', namespace: undefined, apiKey: creds.auth, ignoreCerts: false, api: `https://${creds.apihost}/api/v1/`})
8484
expect(typeof openwhiskProvider._client).to.not.equal('undefined');
8585
})
8686
})

0 commit comments

Comments
 (0)