Expect event fired when ACME CSR request is not yet approved
Signed-off-by: joshvanl <vleeuwenjoshua@gmail.com>
This commit is contained in:
parent
a81ba4fcb3
commit
247807162f
@ -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": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user