From 996b75b978b2f8d37caf69510f40554fa80f6d63 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Fri, 10 Jun 2016 10:48:34 -0400 Subject: [PATCH] update test_rbac_api to new object_roles naming --- awx/main/tests/functional/test_rbac_api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/awx/main/tests/functional/test_rbac_api.py b/awx/main/tests/functional/test_rbac_api.py index 10438504e2..b3c75a4a2d 100644 --- a/awx/main/tests/functional/test_rbac_api.py +++ b/awx/main/tests/functional/test_rbac_api.py @@ -406,9 +406,9 @@ def test_ensure_rbac_fields_are_present(organization, get, admin): org = response.data assert 'summary_fields' in org - assert 'roles' in org['summary_fields'] + assert 'object_roles' in org['summary_fields'] - role_pk = org['summary_fields']['roles']['admin_role']['id'] + role_pk = org['summary_fields']['object_roles']['admin_role']['id'] role_url = reverse('api:role_detail', args=(role_pk,)) org_role_response = get(role_url, admin) @@ -435,5 +435,5 @@ def test_ensure_role_summary_is_present(organization, get, user): org = response.data assert 'summary_fields' in org - assert 'roles' in org['summary_fields'] - assert org['summary_fields']['roles']['admin_role']['id'] > 0 + assert 'object_roles' in org['summary_fields'] + assert org['summary_fields']['object_roles']['admin_role']['id'] > 0