diff --git a/tests/unit/test_mongodb_helpers.py b/tests/unit/test_mongodb_helpers.py index d64557a12..fa4ecf172 100644 --- a/tests/unit/test_mongodb_helpers.py +++ b/tests/unit/test_mongodb_helpers.py @@ -14,6 +14,10 @@ def test_get_mongod_args(self): "--replSet=my_repl_set", "--dbpath=/var/snap/charmed-mongodb/common/var/lib/mongodb", "--port=27017", + "--auditDestination", + "file", + "--auditFormat=JSON", + "--auditPath=/var/snap/charmed-mongodb/common/var/lib/mongodb/audit.json", "--auth", "--clusterAuthMode=keyFile", "--keyFile=/var/snap/charmed-mongodb/current/etc/mongod/keyFile", @@ -36,6 +40,10 @@ def test_get_mongod_args(self): "--replSet=my_repl_set", "--dbpath=/var/snap/charmed-mongodb/common/var/lib/mongodb", "--port=27017", + "--auditDestination", + "file", + "--auditFormat=JSON", + "--auditPath=/var/snap/charmed-mongodb/common/var/lib/mongodb/audit.json", ] self.assertEqual( @@ -50,6 +58,10 @@ def test_get_mongod_args(self): "--replSet=my_repl_set", "--dbpath=/var/lib/mongodb", "--port=27017", + "--auditDestination", + "file", + "--auditFormat=JSON", + "--auditPath=/var/lib/mongodb/audit.json", "--logpath=/var/lib/mongodb/mongodb.log", ]