Reporting
Warning
This code is meant for testing and not to be enabled in a production setting.
Can be enabled by setting enable_reporting to True.
cattle_grid.reporter
Made as a tool to create reports from test runs done using behave. Basically, a scenario is run, and a markdown file is created.
Currently recorded are the step, the scenario, messages
received on the incoming.# and outgoing.# routing keys
of the cattle_grid exchange.
Finally, fetch results from gateway are reported.
fetch_result_reporting(msg, routing_key=Context('message.raw_message.routing_key'))
async
Records the result of performed fetch requests
Source code in cattle_grid/reporter.py
reporting_incoming_outgoing(msg, routing_key=Context('message.raw_message.routing_key'))
async
Records incoming and outgoing messages
Source code in cattle_grid/reporter.py
reporting_scenario(msg)
async
Reports the scenario.
Note every scenario is written to its own file in the reports directory.
Source code in cattle_grid/reporter.py
reporting_step(msg)
async
Reports the current step