From 1dea6610a7409f73c7e0c56490c8b5d278b66227 Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Thu, 24 Mar 2016 15:35:37 -0400 Subject: [PATCH] Fixed up tasks.py for credential changes --- awx/main/tests/old/tasks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awx/main/tests/old/tasks.py b/awx/main/tests/old/tasks.py index 30f58353c2..28e586376a 100644 --- a/awx/main/tests/old/tasks.py +++ b/awx/main/tests/old/tasks.py @@ -279,7 +279,10 @@ class RunJobTest(BaseJobExecutionTest): 'password': '', } opts.update(kwargs) + user = opts['user'] + del opts['user'] self.cloud_credential = Credential.objects.create(**opts) + self.cloud_credential.owner_role.members.add(user) return self.cloud_credential def create_test_project(self, playbook_content, role_playbooks=None):