mirror of
https://github.com/ansible/awx.git
synced 2026-02-02 01:58:09 -03:30
never convert ANSI codes to HTML for format /stdout/?format=json
see: https://github.com/ansible/awx/issues/1863
This commit is contained in:
@@ -282,7 +282,7 @@ def test_unicode_with_base64_ansi(sqlite_copy_expert, get, admin):
|
||||
url = reverse(
|
||||
'api:job_stdout',
|
||||
kwargs={'pk': job.pk}
|
||||
) + '?format=json&content_encoding=base64&content_format=ansi'
|
||||
) + '?format=json&content_encoding=base64'
|
||||
|
||||
response = get(url, user=admin, expect=200)
|
||||
content = base64.b64decode(json.loads(response.content)['content'])
|
||||
|
||||
Reference in New Issue
Block a user