bonfire icon indicating copy to clipboard operation
bonfire copied to clipboard

Some tests look like are broken but they still pass

Open Victoremepunto opened this issue 2 years ago • 2 comments

For example, here's an excerpt of a couple of test outputs:

tests/test_bonfire.py::test_ns_reserve_flag_timeout[user-7-ns-7-700] ERROR: namespace reserve: hit unexpected error: 

  RAN: /usr/local/bin/oc api-resources --verbs=list
  STDOUT:

  STDERR:
error: Missing or incomplete configuration info.  Please point to an existing, complete config file:

  1. Via the command-line flag --kubeconfig
  2. Via the KUBECONFIG environment variable
  3. In your home directory as ~/.kube/config

To view or setup config directly use the 'config' command.

PASSED

And

tests/test_bonfire.py::test_ns_reserve_flag_name[ns-7] ERROR: namespace reserve: hit unexpected error: Object of type MagicMock is not JSON serializable
PASSED

These errors can be spotted in the "Unit tests" step of the pipeline job.

Victoremepunto avatar Nov 18 '22 18:11 Victoremepunto