mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
changed test case logic to know that the server doesn't like passwords like ''
This commit is contained in:
@@ -189,5 +189,5 @@ class JobTemplateLaunchPasswordsTest(BaseJobTestMixin, django.test.TestCase):
|
|||||||
def test_explicit_cred_with_ask_password_empty_string_fail(self):
|
def test_explicit_cred_with_ask_password_empty_string_fail(self):
|
||||||
with self.current_user(self.user_sue):
|
with self.current_user(self.user_sue):
|
||||||
response = self.post(self.launch_url, {'ssh_password': ''}, expect=400)
|
response = self.post(self.launch_url, {'ssh_password': ''}, expect=400)
|
||||||
j = Job.objects.get(pk=response['job'])
|
self.assertIn('ssh_password', response['passwords_needed_to_start'])
|
||||||
self.assertEqual(j.status, 'new')
|
|
||||||
|
|||||||
Reference in New Issue
Block a user