From e5d3271b74a911b5c360ef921ef668b064ef3569 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 18 Jul 2022 09:23:21 -0400 Subject: [PATCH] UT: Use Credentials.to_mapping() in test_credential_telem_send() --- .../infection_monkey/telemetry/test_credentials_telem.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/monkey/tests/unit_tests/infection_monkey/telemetry/test_credentials_telem.py b/monkey/tests/unit_tests/infection_monkey/telemetry/test_credentials_telem.py index 1ceb9f4e5..07a29ef95 100644 --- a/monkey/tests/unit_tests/infection_monkey/telemetry/test_credentials_telem.py +++ b/monkey/tests/unit_tests/infection_monkey/telemetry/test_credentials_telem.py @@ -19,12 +19,7 @@ def credentials_for_test(): def test_credential_telem_send(spy_send_telemetry, credentials_for_test): - expected_data = [ - { - "identity": {"username": USERNAME, "credential_type": "USERNAME"}, - "secret": {"password": PASSWORD, "credential_type": "PASSWORD"}, - } - ] + expected_data = [Credentials.to_mapping(credentials_for_test)] telem = CredentialsTelem([credentials_for_test]) telem.send()