Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ratushnyy committed Jan 9, 2024
1 parent 7a04d7a commit 7d88367
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/unit/test_mongodb_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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(
Expand All @@ -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",
]

Expand Down

0 comments on commit 7d88367

Please sign in to comment.