forked from p15670423/monkey
UT: Add safety test since we will switch to pydantic.SecretType
This commit is contained in:
parent
b08097b131
commit
8fd226cd23
|
@ -119,6 +119,10 @@ def check_if_stored_credentials_encrypted(mongo_client: MongoClient, original_cr
|
||||||
for key, value in credentials_component.items():
|
for key, value in credentials_component.items():
|
||||||
assert original_credentials_mapping[identity_or_secret][key] != value.decode()
|
assert original_credentials_mapping[identity_or_secret][key] != value.decode()
|
||||||
|
|
||||||
|
# Since secrets use the pydantic.SecretType, make sure we're not just storing
|
||||||
|
# all '*' characters.
|
||||||
|
assert "***" not in value.decode()
|
||||||
|
|
||||||
|
|
||||||
def get_all_credentials_in_mongo(
|
def get_all_credentials_in_mongo(
|
||||||
mongo_client: MongoClient,
|
mongo_client: MongoClient,
|
||||||
|
|
Loading…
Reference in New Issue