Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Tests failures related to API key security changes #184

Closed
dubee opened this issue Mar 11, 2019 · 2 comments · Fixed by #185
Closed

Tests failures related to API key security changes #184

dubee opened this issue Mar 11, 2019 · 2 comments · Fixed by #185
Assignees
Labels

Comments

@dubee
Copy link

dubee commented Mar 11, 2019

The following tests are failing:

- runtime.sdk.NodeJs10SDKTests.Nodejs Whisk SDK tests using nodejs:10 should allow NodeJS actions to invoke other actions
- runtime.sdk.NodeJs10SDKTests.Nodejs Whisk SDK tests using nodejs:10 should allow NodeJs actions to trigger events
- runtime.sdk.NodeJs10SDKTests.Nodejs Whisk SDK tests using nodejs:10 should allow NodeJs actions to create a trigger
- runtime.sdk.NodeJs10SDKTests.Nodejs Whisk SDK tests using nodejs:10 should allow NodeJs actions to create a rule
- runtime.sdk.NodeJsSDKTests.Nodejs Whisk SDK tests using nodejs:8 should allow NodeJS actions to invoke other actions
- runtime.sdk.NodeJsSDKTests.Nodejs Whisk SDK tests using nodejs:8 should allow NodeJs actions to trigger events
- runtime.sdk.NodeJsSDKTests.Nodejs Whisk SDK tests using nodejs:8 should allow NodeJs actions to create a trigger
- runtime.sdk.NodeJsSDKTests.Nodejs Whisk SDK tests using nodejs:8 should allow NodeJs actions to create a rule

Failure message:

"response":{"result":{"error":"An error has occurred: Error: Invalid constructor options. Missing api_key parameter or token plugin."}

To fix, add the following to the above tests during action creation:

annotations = Map(WhiskAction.provideApiKeyAnnotationName -> JsBoolean(true)
@falkzoll
Copy link
Contributor

Work in progress...

@falkzoll
Copy link
Contributor

falkzoll commented Mar 12, 2019

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging a pull request may close this issue.

2 participants