mirror of
https://github.com/ansible/awx.git
synced 2026-05-11 11:27:36 -02:30
Updated users.py test expectations to match our current behavior
This commit is contained in:
@@ -420,10 +420,10 @@ class UsersTest(BaseTest):
|
|||||||
self.assertEquals(data1['count'], 3)
|
self.assertEquals(data1['count'], 3)
|
||||||
# Normal user can no longer see all users after the organization he
|
# Normal user can no longer see all users after the organization he
|
||||||
# admins is marked inactive, nor can he see any other users that were
|
# admins is marked inactive, nor can he see any other users that were
|
||||||
# in that org, so he only sees himself.
|
# in that org, so he only sees himself and the system admin.
|
||||||
self.organizations[0].delete()
|
self.organizations[0].delete()
|
||||||
data3 = self.get(url, expect=200, auth=self.get_normal_credentials())
|
data3 = self.get(url, expect=200, auth=self.get_normal_credentials())
|
||||||
self.assertEquals(data3['count'], 1)
|
self.assertEquals(data3['count'], 2)
|
||||||
|
|
||||||
# Test no longer relevant since we've moved away from active / inactive.
|
# Test no longer relevant since we've moved away from active / inactive.
|
||||||
# However there was talk about keeping is_active for users, so this test will
|
# However there was talk about keeping is_active for users, so this test will
|
||||||
|
|||||||
Reference in New Issue
Block a user