summaryrefslogtreecommitdiff
path: root/test/integration/targets/win_get_url/tasks/tests_ftp.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/win_get_url/tasks/tests_ftp.yml')
-rw-r--r--test/integration/targets/win_get_url/tasks/tests_ftp.yml128
1 files changed, 64 insertions, 64 deletions
diff --git a/test/integration/targets/win_get_url/tasks/tests_ftp.yml b/test/integration/targets/win_get_url/tasks/tests_ftp.yml
index d7ae4ae8bf..5b44977e71 100644
--- a/test/integration/targets/win_get_url/tasks/tests_ftp.yml
+++ b/test/integration/targets/win_get_url/tasks/tests_ftp.yml
@@ -37,70 +37,70 @@
# TODO: Add check for idempotent with force: yes once tmp download and checksum verify are in
-- name: download file from FTP source with force no (check)
- win_get_url:
- url: ftp://localhost/anon/file.txt
- dest: '{{test_win_get_url_path}}\ftp-anon.txt'
- force: no
- check_mode: yes
- register: ftp_anon_force_no_check
-
-- name: assert download file from FTP source with force no
- assert:
- that:
- - ftp_anon_force_no_check is not changed
-
-- name: download file from FTP source with force no
- win_get_url:
- url: ftp://localhost/anon/file.txt
- dest: '{{test_win_get_url_path}}\ftp-anon.txt'
- force: no
- register: ftp_anon_force_no
-
-- name: assert download file from FTP source with force no
- assert:
- that:
- - ftp_anon_force_no is not changed
-
-- name: set last modified time on FTP source to newer datetime
- win_shell: (Get-Item -Path '{{test_win_get_url_path}}\ftp\anon\file2.txt').LastWriteTime = (Get-Date).AddHours(24)
-
-- name: download newer file from FTP source to same dest (check)
- win_get_url:
- url: ftp://localhost/anon/file2.txt
- dest: '{{test_win_get_url_path}}\ftp-anon.txt'
- force: no
- check_mode: yes
- register: ftp_anon_force_no_different_check
-
-- name: get result of download newer file from FTP source to same dest (check)
- win_stat:
- path: '{{test_win_get_url_path}}\ftp-anon.txt'
- register: ftp_anon_force_no_different_result_check
-
-- name: assert download newer file from FTP source to same dest (check)
- assert:
- that:
- - ftp_anon_force_no_different_check is changed
- - ftp_anon_force_no_different_result_check.stat.checksum == '67e0de92f29645cc30d8d147b767cceb81756651'
-
-- name: download newer file from FTP source to same dest
- win_get_url:
- url: ftp://localhost/anon/file2.txt
- dest: '{{test_win_get_url_path}}\ftp-anon.txt'
- force: no
- register: ftp_anon_force_no_different
-
-- name: get result of download newer file from FTP source to same dest
- win_stat:
- path: '{{test_win_get_url_path}}\ftp-anon.txt'
- register: ftp_anon_force_no_different_result
-
-- name: assert download newer file from FTP source to same dest (check)
- assert:
- that:
- - ftp_anon_force_no_different is changed
- - ftp_anon_force_no_different_result.stat.checksum == 'eac3baccd817f7137c00138559e2e62aca64aab0'
+#- name: download file from FTP source with force no (check)
+# win_get_url:
+# url: ftp://localhost/anon/file.txt
+# dest: '{{test_win_get_url_path}}\ftp-anon.txt'
+# force: no
+# check_mode: yes
+# register: ftp_anon_force_no_check
+#
+#- name: assert download file from FTP source with force no
+# assert:
+# that:
+# - ftp_anon_force_no_check is not changed
+#
+#- name: download file from FTP source with force no
+# win_get_url:
+# url: ftp://localhost/anon/file.txt
+# dest: '{{test_win_get_url_path}}\ftp-anon.txt'
+# force: no
+# register: ftp_anon_force_no
+#
+#- name: assert download file from FTP source with force no
+# assert:
+# that:
+# - ftp_anon_force_no is not changed
+#
+#- name: set last modified time on FTP source to newer datetime
+# win_shell: (Get-Item -Path '{{test_win_get_url_path}}\ftp\anon\file2.txt').LastWriteTime = (Get-Date).AddHours(24)
+#
+#- name: download newer file from FTP source to same dest (check)
+# win_get_url:
+# url: ftp://localhost/anon/file2.txt
+# dest: '{{test_win_get_url_path}}\ftp-anon.txt'
+# force: no
+# check_mode: yes
+# register: ftp_anon_force_no_different_check
+#
+#- name: get result of download newer file from FTP source to same dest (check)
+# win_stat:
+# path: '{{test_win_get_url_path}}\ftp-anon.txt'
+# register: ftp_anon_force_no_different_result_check
+#
+#- name: assert download newer file from FTP source to same dest (check)
+# assert:
+# that:
+# - ftp_anon_force_no_different_check is changed
+# - ftp_anon_force_no_different_result_check.stat.checksum == '67e0de92f29645cc30d8d147b767cceb81756651'
+#
+#- name: download newer file from FTP source to same dest
+# win_get_url:
+# url: ftp://localhost/anon/file2.txt
+# dest: '{{test_win_get_url_path}}\ftp-anon.txt'
+# force: no
+# register: ftp_anon_force_no_different
+#
+#- name: get result of download newer file from FTP source to same dest
+# win_stat:
+# path: '{{test_win_get_url_path}}\ftp-anon.txt'
+# register: ftp_anon_force_no_different_result
+#
+#- name: assert download newer file from FTP source to same dest (check)
+# assert:
+# that:
+# - ftp_anon_force_no_different is changed
+# - ftp_anon_force_no_different_result.stat.checksum == 'eac3baccd817f7137c00138559e2e62aca64aab0'
- name: fail to download file from ftp protected by username
win_get_url: