From e36a80f5092ee9e2e278555810eb896b3a1861a7 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Tue, 28 Apr 2015 17:25:44 -0400 Subject: [PATCH] changed test case logic to know that the server doesn't like passwords like '' --- awx/main/tests/jobs/job_launch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/tests/jobs/job_launch.py b/awx/main/tests/jobs/job_launch.py index 32b0e62287..3fd5e8452b 100644 --- a/awx/main/tests/jobs/job_launch.py +++ b/awx/main/tests/jobs/job_launch.py @@ -189,5 +189,5 @@ class JobTemplateLaunchPasswordsTest(BaseJobTestMixin, django.test.TestCase): def test_explicit_cred_with_ask_password_empty_string_fail(self): with self.current_user(self.user_sue): response = self.post(self.launch_url, {'ssh_password': ''}, expect=400) - j = Job.objects.get(pk=response['job']) - self.assertEqual(j.status, 'new') + self.assertIn('ssh_password', response['passwords_needed_to_start']) +