Skip to content

Commit 21c8dbc

Browse files
committed
Add another test for coverage
1 parent d90a5dc commit 21c8dbc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/controller/provisioner/provisioner_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ func TestNewNginxProvisioner(t *testing.T) {
224224
InstanceName: "test-instance",
225225
},
226226
Logger: logr.Discard(),
227+
NginxOneConsoleTelemetryConfig: config.NginxOneConsoleTelemetryConfig{
228+
DataplaneKeySecretName: "dataplane-key",
229+
},
227230
}
228231

229232
apiChecker = &openshiftfakes.FakeAPIChecker{}
@@ -243,6 +246,8 @@ func TestNewNginxProvisioner(t *testing.T) {
243246
},
244247
}
245248
g.Expect(provisioner.baseLabelSelector).To(Equal(labelSelector))
249+
250+
g.Expect(provisioner.store.dataplaneKeySecretName).To(Equal("dataplane-key"))
246251
}
247252

248253
func TestEnable(t *testing.T) {

0 commit comments

Comments
 (0)