Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Usage
    From the root of the indeni-knowledge repository, run

    python3 workflow_integration_tool/main.py automation/workflows/<path to workflow.yaml’s folder>

    This will automatically find the test file whose name must end with “workflow_test.yaml” and run all flows described therein. 

  • Understanding Output
    The output should be relatively self-explanatory with some exceptions. A common error (which is being worked on) is the following:

    ERROR:root:no mock found for command: <My specific command>

    This can be caused by a variety of issues. 

    1. There is a typo in the command specified at the top of its Data File

    2. The output of the command is empty (which is currently not allowed, but this will be fixed)

    3. The flow unexpectedly reached a device_task block which caused it to look for a Data File unexpectedly.

    Other than this, the output is mostly the same as what is printed by python’s unittest library, with the addition of some information on which blocks/conclusions are not reached. 

    Notice, if not all blocks/conclusions are reached by some flow, the integration testing will fail.

  • Tips & Tricks
    If you’re using an IDE like PyCharm, you can set debug points inside WIT itself to see the actual Python objects that represent the flows, the execution, the data files, etc.

  • Feedback
    Contact Jon by slack or at jonathan.s@indeni.com with any feedback or for assistance. This is a new tool which is still being improved, so don’t be shy to ask questions. If you’re stuck on a surprising output or if the tool is not working, ask.