fix a permissions bug for credentials specified at JT launch time

hat tip to @alancoding for spotting this one
This commit is contained in:
Ryan Petrello
2017-11-14 16:21:05 -05:00
parent 5852c16ba6
commit eb140d9e69
3 changed files with 36 additions and 5 deletions
@@ -237,7 +237,7 @@ def test_job_launch_fails_without_credential_access(job_template_prompts, runtim
response = post(reverse('api:job_template_launch', kwargs={'pk':job_template.pk}),
dict(credentials=runtime_data['credentials']), rando, expect=403)
assert response.data['detail'] == u'You do not have permission to perform this action.'
assert response.data['detail'] == u'You do not have access to credential runtime-cred'
@pytest.mark.django_db