1
0
Fork 0
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:
Toshio Kuratomi 2015-05-21 10:59:57 -07:00
parent 16c2de84ec
commit b312e97a30
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,6 @@
import mimetypes
import SimpleHTTPServer
if __name__ == '__main__':
mimetypes.add_type('application/json', '.json')
SimpleHTTPServer.test()

View file

@ -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