From 17e3b3d205ae921ab842b3f38a5ac218eb9c3e2c Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 6 Sep 2022 15:23:55 -0400 Subject: [PATCH] UT: Add `simplify=True` to Credentials serialization --- .../cc/repository/test_mongo_credentials_repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/tests/unit_tests/monkey_island/cc/repository/test_mongo_credentials_repository.py b/monkey/tests/unit_tests/monkey_island/cc/repository/test_mongo_credentials_repository.py index 07b7807d6..ffd3c3bfa 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/repository/test_mongo_credentials_repository.py +++ b/monkey/tests/unit_tests/monkey_island/cc/repository/test_mongo_credentials_repository.py @@ -108,7 +108,7 @@ def test_stolen_secrets_encrypted(mongo_repository, mongo_client, credentials: C def check_if_stored_credentials_encrypted(mongo_client: MongoClient, original_credentials): - original_credentials_mapping = original_credentials.dict() + original_credentials_mapping = original_credentials.dict(simplify=True) raw_credentials = get_all_credentials_in_mongo(mongo_client) for rc in raw_credentials: