mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Fix ad_hoc.py tests again
Credential fix
This commit is contained in:
@@ -383,7 +383,11 @@ class BaseTestMixin(QueueTestMixin, MockCommonlySlowTestMixin):
|
|||||||
'vault_password': '',
|
'vault_password': '',
|
||||||
}
|
}
|
||||||
opts.update(kwargs)
|
opts.update(kwargs)
|
||||||
return Credential.objects.create(**opts)
|
user = opts['user']
|
||||||
|
del opts['user']
|
||||||
|
cred = Credential.objects.create(**opts)
|
||||||
|
cred.owner_role.members.add(user)
|
||||||
|
return cred
|
||||||
|
|
||||||
def setup_instances(self):
|
def setup_instances(self):
|
||||||
instance = Instance(uuid=settings.SYSTEM_UUID, primary=True, hostname='127.0.0.1')
|
instance = Instance(uuid=settings.SYSTEM_UUID, primary=True, hostname='127.0.0.1')
|
||||||
|
|||||||
Reference in New Issue
Block a user