mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 07:43:35 -05:00
Test that if no users are in the org they get an empty list when listing orgs
This commit is contained in:
@@ -117,7 +117,6 @@ class OrganizationsTest(BaseTest):
|
|||||||
# NOTE: superuser does not have to be explicitly added to admin group
|
# NOTE: superuser does not have to be explicitly added to admin group
|
||||||
# x.admins.add(self.super_acom_user)
|
# x.admins.add(self.super_acom_user)
|
||||||
x.users.add(self.super_acom_user)
|
x.users.add(self.super_acom_user)
|
||||||
x.users.add(self.other_acom_user)
|
|
||||||
|
|
||||||
self.organizations[0].users.add(self.normal_acom_user)
|
self.organizations[0].users.add(self.normal_acom_user)
|
||||||
self.organizations[0].users.add(self.normal_acom_user)
|
self.organizations[0].users.add(self.normal_acom_user)
|
||||||
@@ -141,9 +140,8 @@ class OrganizationsTest(BaseTest):
|
|||||||
self.check_pagination_and_size(data, 2, previous=None, next=None)
|
self.check_pagination_and_size(data, 2, previous=None, next=None)
|
||||||
|
|
||||||
# no admin rights? get empty list
|
# no admin rights? get empty list
|
||||||
#resp = self.api_client.get(self.collection(), format='json', authentication=self.get_other_credentials())
|
data = self.get(self.collection(), expect=200, auth=self.get_other_credentials())
|
||||||
#self.assertValidJSONResponse(resp)
|
self.check_pagination_and_size(data, 0, previous=None, next=None)
|
||||||
#self.assertEqual(len(self.deserialize(resp)['objects']), 0)
|
|
||||||
|
|
||||||
def test_get_item(self):
|
def test_get_item(self):
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user