autana-testing-call-or-mock 1.0.6

Node-RED node for call or mock

npm install autana-testing-call-or-mock

autana-testing-call-or-mock

Node-RED node for call or mock

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

    npm install autana-testing-call-or-mock

Information

Calls a flow that starts with a named link in node and finish with a link out node configured in 'return' mode, and passes on the response. (a function flow)

Inputs

targetstring

The name of the link in node to call on normal/runtime execution mode.

To enable the test execution mode (Unit Tests), You must set the Global.runtime_profile variable to "TEST".

If test execution mode is enabled, the suffix .mock is added to target before to perform the call.

Details

The target link in node can be placed on any tab.

When this node receives a message, it is passed to the connected target link in node.

It then waits for a response which it then sends on.

If no response is received within the configured timeout, default 30 seconds, the node will log an error that can be caught using the catch node.

  • If there is a link in node with target name, it will be called
  • If there are two or more link in nodes with the same target name, an error will be raised
  • The link call cannot call a target link in node inside a subflow

Node Info

Version: 1.0.6
Updated 2 years, 2 months ago
License: Apache-2.0
Rating: 5.0 1

Categories

Actions

Rate:

Downloads

5 in the last week

Keywords

  • node-red
  • node-red-nodegen
  • testing
  • test
  • mock
  • mocking
  • call

Maintainers