Skip to content

Commit 6199f26

Browse files
authored
Fix system test test_aws_auth_manager (#46560)
1 parent 344451b commit 6199f26

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

providers/tests/system/amazon/aws/tests/test_aws_auth_manager.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,8 @@ def delete_avp_policy_store(cls):
192192
for policy_store_id in policy_store_ids:
193193
client.delete_policy_store(policyStoreId=policy_store_id)
194194

195-
@pytest.mark.skip("Authorization is not yet implemented in AF3 new ui")
196-
def test_login_no_permissions(self, client_no_permissions):
197-
response = client_no_permissions.post("/auth/login_callback")
198-
assert response.status_code == 403
199-
200195
def test_login_admin(self, client_admin_permissions):
201-
response = client_admin_permissions.post("/auth/login_callback")
202-
assert response.status_code == 200
196+
response = client_admin_permissions.post("/auth/login_callback", follow_redirects=False)
197+
assert response.status_code == 303
198+
assert "location" in response.headers
199+
assert "webapp?token=" in response.headers["location"]

0 commit comments

Comments
 (0)