Think that integration tests are failing in json due to lack of json mimetype. Make a short wrapper to fix that.

pull/11060/head
Toshio Kuratomi 10 years ago
parent 16c2de84ec
commit b312e97a30

@ -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 }}" dest: "{{files_dir}}/{{ item }}"
with_sequence: start=0 end=30 format=fail%d.json 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 - name: verify that python2 is installed so this test can continue
shell: which python2 shell: which python2
register: py2 register: py2

Loading…
Cancel
Save