Import
createConnection
Signature
ConnectionValue inline — no environment variable required. Use this when you want to hard-code test credentials directly in a test file.
Parameters
The connection definition object. Only the
key property is read to populate ConnectionValue.key.Field values for the connection. Keys should match the input keys declared on the connection definition.
Optional OAuth 2.0 token fields. Set
access_token here for OAuth connections.Optional display name used as
configVarKey. Defaults to an empty string.Return value
A
ConnectionValue object ready to pass as an input to invoke, harness.action, etc.connectionValue
Signature
ConnectionValue from an environment variable. The environment variable must contain a JSON-serialized object. Throws an Error if the variable is not set.
Parameters
The name of the environment variable to read. Defaults to
PRISMATIC_CONNECTION_VALUE.Return value
A
ConnectionValue parsed from the environment variable, with key set to an empty string.defaultConnectionValueEnvironmentVariable
connectionValue() and ComponentTestHarness.connectionValue() read by default.
Examples
Related
- invoke — pass a
ConnectionValueas an action input - createHarness —
harness.connectionValue()reads the same env var - invokeFlow — pass connection values in
configVars
