Refacto of the E2E tests

What it does

1/ Refactorization of E2E tests

  • Usage of specific helpers for E2E Tests to create / delete resources and to test resource status
    • A specific type including the k8s client is used to pass it and other arguments to these helpers
  • Usage of BeforeEach to create a configmap and a preset, similar in all E2E tests. It avoids repetition
  • Usage of AfterEach to delete resources and help the test being re-entrant
  • Removal of a test which is a controller test and not an 2E2 test (sylvaUnitFile valuesFrom name)

2/ Improvments of 2E2 Tests

  • Shorter timeout for tests expected to fail deploying cluster. It enables much faster tests
  • Change a error message to make it clearer

3/ Fix an error (patching an OCI repo but was checking gitrepo result)

The net result of code line suppression is small in the present MR, but adding tests will be much lighter thx to the helpers and to the factorization of resource creation / suppression

Tests

CI E2E tests are green

References

See #68

Edited by vladimir braquet

Merge request reports

Loading