Skip to content

Commit

Permalink
fix test_update_security_function
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexdev8 committed Feb 27, 2024
1 parent f7c6f34 commit 4583ba1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions backend/app_tests/api/test_api_security_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def test_create_security_functions(self, test):
user_group=test.user_group,
)

def test_update_security_function_with_url(self, test):
def test_update_security_function_with_urn(self, test):
"""test to update an imported security function (with a URN) with the API with authentication"""
EndpointTestsQueries.Auth.update_object(
test.client,
Expand All @@ -150,7 +150,6 @@ def test_update_security_function_with_url(self, test):
"description": "new " + SECURITY_FUNCTION_DESCRIPTION,
"urn": SECURITY_FUNCTION_URN,
"provider": "new " + SECURITY_FUNCTION_PROVIDER,
"folder": str(test.folder.id),
},
{
"folder": {"str": Folder.get_root_folder().name},
Expand All @@ -170,16 +169,19 @@ def test_update_security_function(self, test):
"name": SECURITY_FUNCTION_NAME,
"description": SECURITY_FUNCTION_DESCRIPTION,
"provider": SECURITY_FUNCTION_PROVIDER,
"folder": test.folder,
},
{
"ref_id": SECURITY_FUNCTION_REF_ID,
"name": SECURITY_FUNCTION_NAME,
"description": "new " + SECURITY_FUNCTION_DESCRIPTION,
"provider": "new " + SECURITY_FUNCTION_PROVIDER,
"folder": str(test.folder.id),
},
{
"folder": {"str": Folder.get_root_folder().name},
"folder": {"id": str(test.folder.id), "str": test.folder.name},
},
{
"folder": str(test.folder.id)
},
user_group=test.user_group,
)
Expand Down

0 comments on commit 4583ba1

Please sign in to comment.