mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-03 05:11:49 -05:00
move job view test to serializer unit test
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import pytest
|
||||
import json
|
||||
|
||||
from awx.main.models import UnifiedJob
|
||||
from django.core.urlresolvers import reverse
|
||||
@@ -16,8 +15,3 @@ def test_options_fields_choices(instance, options, user):
|
||||
assert 'choice' == response.data['actions']['GET']['status']['type']
|
||||
assert UnifiedJob.STATUS_CHOICES == response.data['actions']['GET']['status']['choices']
|
||||
|
||||
@pytest.mark.django_db
|
||||
@pytest.mark.survey
|
||||
def test_job_redacted_survey_passwords(job_with_secret_key, get, admin_user):
|
||||
response = get(reverse('api:job_detail', args=(job_with_secret_key.pk,)), admin_user)
|
||||
assert json.loads(response.data['extra_vars'])['secret_key'] == '$encrypted$'
|
||||
|
||||
Reference in New Issue
Block a user