Skip to content

Commit 85c9363

Browse files
committed
test(iam): pin functional login tests to the zero-UUID default client
gcl_iam>=1.3.0 changed GenesisCoreAuth's default client_uuid from the zero-UUID to the "default" alias, which only resolves through an LB in front of the IAM client. These functional tests run the app in-process with no LB, so pass client_uuid explicitly to keep using the seeded zero-UUID default client.
1 parent 6f74829 commit 85c9363

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

exordos_core/tests/functional/restapi/iam/test_users.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ def test_auth_with_param(
683683
"username": None,
684684
"password": auth_test1_user.password,
685685
"grant_type": grant_type,
686+
"client_uuid": common_c.DEFAULT_CLIENT_UUID,
686687
}
687688
params[auth_param] = (getattr(auth_test1_user, auth_param, None),)
688689
auth = iam_clients.GenesisCoreAuth(**params)
@@ -717,6 +718,7 @@ def test_auth_with_login(
717718
"password": auth_test1_user.password,
718719
"grant_type": iam_c.GRANT_TYPE_PASSWORD_LOGIN,
719720
"login": getattr(auth_test1_user, login, "doesnt_exist"),
721+
"client_uuid": common_c.DEFAULT_CLIENT_UUID,
720722
}
721723
if password is not None:
722724
params["password"] = password
@@ -755,6 +757,7 @@ def test_auth_case_insensitivity(
755757
"username": None,
756758
"password": auth_test1_user.password,
757759
"grant_type": grant_type,
760+
"client_uuid": common_c.DEFAULT_CLIENT_UUID,
758761
}
759762
params[field_name] = login
760763

0 commit comments

Comments
 (0)