Skip to content

Commit 32e867f

Browse files
committed
add tests
1 parent f054226 commit 32e867f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

controllers/mongodb_tls_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ func TestAutomationConfigIsCorrectlyConfiguredWithTLS(t *testing.T) {
329329
assert.Equal(t, "/tmp/test", process.Args26.Get("systemLog.path").String())
330330
assert.Equal(t, "file", process.Args26.Get("systemLog.destination").String())
331331
assert.Equal(t, process.LogRotate, automationconfig.ConvertCrdLogRotateToAC(mdb.Spec.AgentConfiguration.LogRotate))
332+
assert.Equal(t, process.AuditLogRotate, automationconfig.ConvertCrdLogRotateToAC(mdb.Spec.AgentConfiguration.AuditLogRotate))
332333
}
333334
})
334335

controllers/replicaset_controller_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ func newTestReplicaSetWithSystemLogAndLogRotate() mdbv1.MongoDBCommunity {
8888
LogRotate: &automationconfig.CrdLogRotate{
8989
SizeThresholdMB: "1",
9090
},
91+
AuditLogRotate: &automationconfig.CrdLogRotate{
92+
SizeThresholdMB: "1",
93+
},
9194
SystemLog: &automationconfig.SystemLog{
9295
Destination: automationconfig.File,
9396
Path: "/tmp/test",

0 commit comments

Comments
 (0)