mirror of
https://github.com/ansible/awx.git
synced 2026-02-02 18:18:12 -03:30
Column name not unique and assorted work on credentials REST
This commit is contained in:
@@ -282,6 +282,10 @@ class ProjectsTest(BaseTest):
|
||||
other_creds = '/api/v1/users/%s/credentials/' % other.pk
|
||||
team_creds = '/api/v1/teams/%s/credentials/' % team.pk
|
||||
|
||||
print "ORGS=%s", other.organizations.all()
|
||||
for x in other.organizations.all():
|
||||
print x.admins.all()
|
||||
|
||||
new_credentials = dict(
|
||||
name = 'credential',
|
||||
project = Project.objects.all()[0].pk,
|
||||
@@ -296,6 +300,7 @@ class ProjectsTest(BaseTest):
|
||||
self.post(other_creds, data=new_credentials, expect=401)
|
||||
self.post(other_creds, data=new_credentials, expect=401, auth=self.get_invalid_credentials())
|
||||
self.post(other_creds, data=new_credentials, expect=201, auth=self.get_super_credentials())
|
||||
print "TEST NOW"
|
||||
self.post(other_creds, data=new_credentials, expect=201, auth=self.get_normal_credentials())
|
||||
self.post(other_creds, data=new_credentials, expect=201, auth=self.get_other_credentials())
|
||||
self.post(other_creds, data=new_credentials, expect=403, auth=self.get_nobody_credentials())
|
||||
|
||||
Reference in New Issue
Block a user