cert-manager/test/integration
Maël Valais 71e707387a trigger-controller: refactor test, inject gatherer and policychain
Injecting the whole Gatherer struct was not necessary for testing
since DataForCertificate is now fully unit-tested. With that, we
can mock the Gatherer.Evaluate function. Since there is no reason
to inject a full Gatherer object into the trigger controller, I chose
to inject a simple policies.Func. I named the function "shouldReissue"
since this is exactly what this function does.

I also refactored the test cases to use the same gen.Certificate
that we use in the rest of the codebase.

Signed-off-by: Maël Valais <mael@vls.dev>
2021-03-23 13:55:11 +01:00
..
certificates trigger-controller: refactor test, inject gatherer and policychain 2021-03-23 13:55:11 +01:00
conversion Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
ctl Updates the CRDs with the Certificate Condition observedGeneration field 2021-03-04 17:04:11 +00:00
framework Merge pull request #3500 from meyskens/update-copy 2020-12-15 10:12:31 +00:00
validation Adds a sanity check to the CertificateRequest validation integration 2021-02-08 19:24:32 +00:00
webhook Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
BUILD.bazel Add validation for CR creation only to match Key usages with the CSR if both are set 2020-08-25 14:38:57 +02:00