Add Tests during CI

What it does

Add tests to the Sylva workload cluster operator CI

  • Installed required CRDs (ex: external secret operator) during the test
    • Their version is tracked by the existing renovate.json. No need of modification
  • Add API tests
    • Test nominal cases
    • Test wrong configuration cases
    • Test when Flux CRDs and other ones are absent are also performed to ensure the SUR operator is robust
  • Add unit tests for all packages
  • Add test-operator job in operator CI
    • It had less than 10 sec latency

    • The following outputs are not preventing the operator to work, nor the tests to be vcarried out. They will be tackled in further issues

      v2beta1 HelmRelease is deprecated, upgrade to v2beta2
      ("unable to decode an event from the watch stream: context canceled") has prevented the request from succeeding
  • Disable ToBeContinous/Golang go-build-test job. See to-be-continuous/golang#40 (closed)

Operator CRD

  • The secretValues path and key are no more required to be backward compliant with CLI (secrets.yaml may be empty)

Tests

  • make test en local is working
  • Pipelines are OK

Reference

Close #20 (closed)

Edited by vladimir braquet

Merge request reports

Loading