cert-manager/test
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
..
acme/dns tests: allow setting dnsname and acme challenge key for webhook integration tests 2021-03-15 13:18:27 +00:00
e2e Adds tests to ensure Approve is present, and Denied is not 2021-03-17 13:10:39 +00:00
fixtures
integration trigger-controller: refactor test, inject gatherer and policychain 2021-03-23 13:55:11 +01:00
unit Adds tests to ensure Approve is present, and Denied is not 2021-03-17 13:10:39 +00:00
OWNERS