From 18e4a33404607780ff95b1f735ea9c1b65fa0440 Mon Sep 17 00:00:00 2001 From: Wayne Witzel III Date: Thu, 25 Aug 2016 13:45:13 -0400 Subject: [PATCH] update test to check org_auditor access --- awx/main/tests/functional/test_rbac_credential.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/tests/functional/test_rbac_credential.py b/awx/main/tests/functional/test_rbac_credential.py index 29c50f73e7..ae68f036d8 100644 --- a/awx/main/tests/functional/test_rbac_credential.py +++ b/awx/main/tests/functional/test_rbac_credential.py @@ -83,9 +83,10 @@ def test_credential_migration_org_auditor(credential, team, org_auditor): assert org_auditor not in credential.read_role rbac.migrate_credential(apps, None) + rbac.infer_credential_org_from_team(apps, None) # Read permissions post migration - assert org_auditor in credential.use_role + assert org_auditor not in credential.use_role assert org_auditor in credential.read_role def test_credential_access_superuser():