d3792145d5
* win_get_url - refactor tests to use httptester * Use the file lookup instead of slurp
39 lines
901 B
YAML
39 lines
901 B
YAML
---
|
|
- name: copy across testing files
|
|
win_copy:
|
|
src: files/
|
|
dest: '{{ remote_tmp_dir }}'
|
|
|
|
- name: download SlimFTPd binary
|
|
win_get_url:
|
|
url: https://s3.amazonaws.com/ansible-ci-files/test/integration/roles/test_win_get_url/SlimFTPd.exe
|
|
dest: '{{ remote_tmp_dir }}\SlimFTPd.exe'
|
|
|
|
- name: template SlimFTPd configuration file
|
|
win_template:
|
|
src: slimftpd.conf.tmpl
|
|
dest: '{{ remote_tmp_dir }}\slimftpd.conf'
|
|
|
|
- name: create SlimFTPd service
|
|
win_service:
|
|
name: SlimFTPd
|
|
path: '"{{ remote_tmp_dir }}\SlimFTPd.exe" -service'
|
|
state: started
|
|
dependencies:
|
|
- tcpip
|
|
|
|
- block:
|
|
- name: run URL tests
|
|
import_tasks: tests_url.yml
|
|
|
|
- name: run FTP tests
|
|
import_tasks: tests_ftp.yml
|
|
|
|
- name: run checksum tests
|
|
import_tasks: tests_checksum.yml
|
|
|
|
always:
|
|
- name: remove SlimFTPd service
|
|
win_service:
|
|
name: SlimFTPd
|
|
state: absent
|