Commit b312e97a by Toshio Kuratomi

Think that integration tests are failing in json due to lack of json mimetype. …

Think that integration tests are failing in json due to lack of json mimetype.  Make a short wrapper to fix that.
parent 16c2de84
import mimetypes
import SimpleHTTPServer
if __name__ == '__main__':
mimetypes.add_type('application/json', '.json')
SimpleHTTPServer.test()
...@@ -37,6 +37,10 @@ ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment