You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
- name: ensure testing folder is present
|
|
|
|
win_file:
|
|
|
|
path: '{{ item }}'
|
|
|
|
state: directory
|
|
|
|
loop:
|
|
|
|
- '{{ test_win_get_url_path }}'
|
|
|
|
- '{{ remote_http_path }}'
|
|
|
|
- '{{ remote_tmp_path }}'
|
|
|
|
|
|
|
|
- name: copy across testing files
|
|
|
|
win_copy:
|
|
|
|
src: files/
|
|
|
|
dest: '{{test_win_get_url_path}}\'
|
|
|
|
|
|
|
|
- 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: '{{test_win_get_url_path}}\SlimFTPd.exe'
|
|
|
|
|
|
|
|
- name: template SlimFTPd configuration file
|
|
|
|
win_template:
|
|
|
|
src: slimftpd.conf.tmpl
|
|
|
|
dest: '{{test_win_get_url_path}}\slimftpd.conf'
|
|
|
|
|
|
|
|
- name: create SlimFTPd service
|
|
|
|
win_service:
|
|
|
|
name: SlimFTPd
|
|
|
|
path: '"{{test_win_get_url_path}}\SlimFTPd.exe" -service'
|
|
|
|
state: started
|
|
|
|
dependencies:
|
|
|
|
- tcpip
|
|
|
|
|
|
|
|
- name: create env var for win_get_url tests
|
|
|
|
win_environment:
|
|
|
|
name: '{{test_win_get_url_env_var}}'
|
|
|
|
level: machine
|
|
|
|
value: '{{test_win_get_url_path}}'
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- block:
|
|
|
|
- name: run URL tests
|
|
|
|
include_tasks: tests_url.yml
|
|
|
|
|
|
|
|
- name: run FTP tests
|
|
|
|
include_tasks: tests_ftp.yml
|
|
|
|
|
|
|
|
- name: run checksum tests
|
|
|
|
include_tasks: tests_checksum.yml
|
|
|
|
|
|
|
|
always:
|
|
|
|
- name: remove SlimFTPd service
|
|
|
|
win_service:
|
|
|
|
name: SlimFTPd
|
|
|
|
state: absent
|
|
|
|
|
|
|
|
- name: remove test env var for tests
|
|
|
|
win_environment:
|
|
|
|
name: '{{test_win_get_url_env_var}}'
|
|
|
|
level: machine
|
|
|
|
state: absent
|
|
|
|
|
|
|
|
- name: remove testing folders
|
|
|
|
win_file:
|
|
|
|
path: '{{ item }}'
|
|
|
|
state: absent
|
|
|
|
loop:
|
|
|
|
- '{{ test_win_get_url_path }}'
|
|
|
|
- '{{ remote_tmp_path }}'
|