From 3361bb0cd2afbd8a8939304e0d812ba37d1631ab Mon Sep 17 00:00:00 2001 From: Jon Herron Date: Mon, 6 Mar 2023 19:27:24 -0500 Subject: [PATCH] Fixed tests --- .../integration/test_secret_service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_secret_service.py b/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_secret_service.py index f7f5b5621..78d1cabde 100644 --- a/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_secret_service.py +++ b/spiffworkflow-backend/tests/spiffworkflow_backend/integration/test_secret_service.py @@ -72,7 +72,7 @@ class TestSecretService(SecretServiceTestHelpers): assert test_secret is not None assert test_secret.key == self.test_key - assert test_secret.value == self.test_value + assert SecretService._decrypt(test_secret.value) == self.test_value assert test_secret.user_id == with_super_admin_user.id def test_add_secret_duplicate_key_fails( @@ -205,7 +205,7 @@ class TestSecretServiceApi(SecretServiceTestHelpers): for key in ["key", "value", "user_id"]: assert key in secret.keys() assert secret["key"] == self.test_key - assert secret["value"] == self.test_value + assert SecretService._decrypt(secret["value"]) == self.test_value assert secret["user_id"] == with_super_admin_user.id def test_get_secret( @@ -254,7 +254,7 @@ class TestSecretServiceApi(SecretServiceTestHelpers): secret_model = SecretModel.query.filter( SecretModel.key == self.test_key ).first() - assert secret_model.value == "new_secret_value" + assert SecretService._decrypt(secret_model.value) == "new_secret_value" def test_delete_secret( self,