aboutsummaryrefslogtreecommitdiffstats
path: root/certServiceK8sExternalProvider/src/cmpv2controller/certificate_request_controller_test.go
diff options
context:
space:
mode:
authorRemigiusz Janeczek <remigiusz.janeczek@nokia.com>2021-07-06 13:33:51 +0200
committerRemigiusz Janeczek <remigiusz.janeczek@nokia.com>2021-07-08 09:16:23 +0200
commite5cf2682c132dec24f906369ed762af1aaceef71 (patch)
treed5b0ab9b900c8987476c4ccb7517ab6ef219c273 /certServiceK8sExternalProvider/src/cmpv2controller/certificate_request_controller_test.go
parent75a51525a32818a860f97fcb67750b3abf0e2846 (diff)
[OOM-K8S-CERT-EXTERNAL-PROVIDER] Add check if cert should be updated
Issue-ID: OOM-2753 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: If0d7154b39c9ca7f9a7942f61b93725405b8f4e8
Diffstat (limited to 'certServiceK8sExternalProvider/src/cmpv2controller/certificate_request_controller_test.go')
-rw-r--r--certServiceK8sExternalProvider/src/cmpv2controller/certificate_request_controller_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/certServiceK8sExternalProvider/src/cmpv2controller/certificate_request_controller_test.go b/certServiceK8sExternalProvider/src/cmpv2controller/certificate_request_controller_test.go
index 24b6b89e..10f88c08 100644
--- a/certServiceK8sExternalProvider/src/cmpv2controller/certificate_request_controller_test.go
+++ b/certServiceK8sExternalProvider/src/cmpv2controller/certificate_request_controller_test.go
@@ -53,6 +53,7 @@ func Test_shouldSaveCorrectSignedPems_whenRequestReceived(t *testing.T) {
createProvisioner(verifiedIssuer)
fakeClient := fake.NewFakeClientWithScheme(testdata.GetScheme(), &verifiedIssuer,
getValidCertificateRequest(), getValidPrivateKeySecret())
+
fakeRecorder := record.NewFakeRecorder(recorderBufferSize)
controller := getCertRequestController(fakeRecorder, fakeClient)
fakeRequest := testdata.GetFakeRequest(certificateRequestName)