Expect event fired when ACME CSR request is not yet approved

Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
This commit is contained in:
joshvanl 2021-07-23 16:34:21 +01:00
parent a81ba4fcb3
commit 247807162f

View File

@ -257,10 +257,13 @@ func Test_ProcessItem(t *testing.T) {
csr *certificatesv1.CertificateSigningRequest
expectedErr bool
}{
"a CertificateSigningRequest without an approved condition should do nothing": {
"a CertificateSigningRequest without an approved condition should fire an event": {
csr: gen.CertificateSigningRequestFrom(baseCSR),
builder: &testpkg.Builder{
CertManagerObjects: []runtime.Object{baseIssuer.DeepCopy()},
ExpectedEvents: []string{
"Normal WaitingApproval Waiting for the Approved condition before issuing",
},
},
},
"a CertificateSigningRequest with a denied condition should do nothing": {