blob: 8ea52e60a8336140d072b033134abc14b34c27c6 [file] [log] [blame]
Zack Williamsa2763112017-01-03 11:38:38 -07001---
2# api-tests/tasks/main.yml
3
4- name: Copy apiary.apib to target location
5 copy:
Zack Williamsc989f262017-05-11 13:02:59 -07006 src: "{{ config_cord_dir }}/orchestration/xos/apiary.apib"
Zack Williamsa2763112017-01-03 11:38:38 -07007 dest: "/opt/xos/tests/api/apiary.apib"
8
9- name: Run API tests
10 command: "npm test"
11 args:
12 chdir: "/opt/xos/tests/api"
13 register: api_tests_out
14 ignore_errors: yes
15 tags:
16 - skip_ansible_lint # run during testing only
17
18- name: Save output from API tests
19 copy:
20 content: "{{ api_tests_out.stdout_lines }}"
21 dest: "/tmp/api-tests.out"
22
23- name: Print output from API test
24 debug: var=api_tests_out.stdout_lines
25