Fix scoutsuite unit test to use updated datastore encryptor interface

This commit is contained in:
VakarisZ 2021-10-04 12:13:55 +03:00
parent 3ec26bcef8
commit ea6fe37b44
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def test_is_aws_keys_setup(tmp_path):
mongo.db.config.find_one = MagicMock(return_value=ConfigService.default_config) mongo.db.config.find_one = MagicMock(return_value=ConfigService.default_config)
assert not is_aws_keys_setup() assert not is_aws_keys_setup()
bogus_key_value = get_datastore_encryptor().enc("bogus_aws_key") bogus_key_value = get_datastore_encryptor().encrypt("bogus_aws_key")
dpath.util.set( dpath.util.set(
ConfigService.default_config, AWS_KEYS_PATH + ["aws_secret_access_key"], bogus_key_value ConfigService.default_config, AWS_KEYS_PATH + ["aws_secret_access_key"], bogus_key_value
) )