mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
Fix job relaunch test to expect 201.
This commit is contained in:
@@ -787,7 +787,7 @@ class JobStartCancelTest(BaseJobTestMixin, django.test.LiveServerTestCase):
|
|||||||
job = self.make_job(self.jt_ops_east_run, self.user_sue, 'success')
|
job = self.make_job(self.jt_ops_east_run, self.user_sue, 'success')
|
||||||
url = reverse('api:job_relaunch', args=(job.pk,))
|
url = reverse('api:job_relaunch', args=(job.pk,))
|
||||||
with self.current_user(self.user_sue):
|
with self.current_user(self.user_sue):
|
||||||
response = self.post(url, {}, expect=202)
|
response = self.post(url, {}, expect=201)
|
||||||
j = Job.objects.get(pk=response['job'])
|
j = Job.objects.get(pk=response['job'])
|
||||||
self.assertTrue(j.status == 'successful')
|
self.assertTrue(j.status == 'successful')
|
||||||
# Test with a job that prompts for SSH and sudo passwords.
|
# Test with a job that prompts for SSH and sudo passwords.
|
||||||
|
|||||||
Reference in New Issue
Block a user