Details
-
Task
-
Resolution: Done
-
Major
-
None
-
None
-
False
-
-
False
Description
When we find bugs via an iqe plugin test function, it can be very hard for dev to understand what is happening during that test under the hood to debug and reproduce it in their environments where iqe may not be possible at this time.
Because much of the code making api calls with Swatch is abstracted to smqe-tools (which dev could use), we want a way to optionally flag on and log which functions and/or http api requests are being made, so that dev (and qe) can more easily see what is happening at a low level, so test scenarios and conditions are more easily reproduced.
HTTPConnection.debuglevel = 1
Good to place to have debug set in swatch-client - https://gitlab.cee.redhat.com/smqe/smqe-tools/-/blob/master/smqe_tools/cli.py#L444
Figure out how to enable https://gitlab.cee.redhat.com/insights-qe/iqe-rhsm-subscriptions-plugin/-/blob/master/iqe_rhsm_subscriptions_api/configuration.py#L334
Done criteria
- An option added to smqe-tools that will flag on logs for api calls made during execution.
- It should be possible to output these logs to a file
- It should be possible to turn on this flag from iqe commands
- It should be possible to turn this flag on while using either the library functions, or the swatch-client cli interface of smqe-tools.
Attachments
Issue Links
- mentioned on