mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Think that integration tests are failing in json due to lack of json mimetype. Make a short wrapper to fix that.
This commit is contained in:
parent
16c2de84ec
commit
b312e97a30
2 changed files with 10 additions and 0 deletions
6
test/integration/roles/test_uri/files/testserver.py
Normal file
6
test/integration/roles/test_uri/files/testserver.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
import mimetypes
|
||||
import SimpleHTTPServer
|
||||
|
||||
if __name__ == '__main__':
|
||||
mimetypes.add_type('application/json', '.json')
|
||||
SimpleHTTPServer.test()
|
|
@ -37,6 +37,10 @@
|
|||
dest: "{{files_dir}}/{{ item }}"
|
||||
with_sequence: start=0 end=30 format=fail%d.json
|
||||
|
||||
- copy:
|
||||
src: "testserver.py"
|
||||
dest: "{{ output_dir }}/testserver.py"
|
||||
|
||||
- name: verify that python2 is installed so this test can continue
|
||||
shell: which python2
|
||||
register: py2
|
||||
|
|
Loading…
Reference in a new issue