failed_when:"actual.msg != 'Argument path {{win_output_dir|regex_replace('\\\\', '\\\\\\\\')}}\\win_find\\single\\large.ps1 is a file not a directory'"
failed_when:actual.msg != 'Argument path ' + win_output_dir + '\\win_find\\single\\large.ps1 is a file not a directory'
- name:expect failure whe path is set to a non existant folder
failed_when:"actual.msg != 'Argument path {{win_output_dir|regex_replace('\\\\', '\\\\\\\\')}}\\\\win_find\\\\thisisafakefolder does not exist cannot get information on'"
failed_when:actual.msg != 'Argument path ' + win_output_dir + '\\win_find\\thisisafakefolder does not exist cannot get information on'
- name:get files in single directory
win_find:
@ -173,7 +164,7 @@
filename:large.ps1,
ishidden:False,
isdir:False,
islink:False,
islnk:False,
lastaccesstime:1477984205,
lastwritetime:1477984205,
owner:BUILTIN\Administrators,
@ -189,7 +180,7 @@
filename:out_20161101-091005.log,
ishidden:False,
isdir:False,
islink:False,
islnk:False,
lastaccesstime:1477984205,
lastwritetime:1477984205,
owner:BUILTIN\Administrators,
@ -205,7 +196,7 @@
filename:small.ps1,
ishidden:False,
isdir:False,
islink:False,
islnk:False,
lastaccesstime:1477984205,
lastwritetime:1477984205,
owner:BUILTIN\Administrators,
@ -221,7 +212,7 @@
filename:test.ps1,
ishidden:False,
isdir:False,
islink:False,
islnk:False,
lastaccesstime:1477984205,
lastwritetime:1477984205,
owner:BUILTIN\Administrators,
@ -233,7 +224,7 @@
- name:assert actual == expected
assert:
that:"actual == expected"
that:actual == expected
- name:find hidden files
win_find:
@ -255,7 +246,7 @@
filename:hidden.ps1,
ishidden:True,
isdir:False,
islink:False,
islnk:False,
lastaccesstime:1477984205,
lastwritetime:1477984205,
owner:BUILTIN\Administrators,
@ -267,7 +258,7 @@
- name:assert actual == expected
assert:
that:"actual == expected"
that:actual == expected
- name:find file based on pattern
win_find:
@ -296,7 +287,7 @@
filename:out_20161101-091005.log,
ishidden:False,
isdir:False,
islink:False,
islnk:False,
lastaccesstime:1477984205,
lastwritetime:1477984205,
owner:BUILTIN\Administrators,
@ -309,8 +300,8 @@
- name:assert actual == expected
assert:
that:
- "actual_pattern == expected"
- "actual_regex == expected"
- actual_pattern == expected
- actual_regex == expected
- name:find files with recurse set
win_find:
@ -333,7 +324,7 @@
filename:test.ps1,
ishidden:False,
isdir:False,
islink:False,
islnk:False,
lastaccesstime:1477984205,
lastwritetime:1477984205,
owner:BUILTIN\Administrators,
@ -349,7 +340,7 @@
filename:file.ps1,
ishidden:False,
isdir:False,
islink:False,
islnk:False,
lastaccesstime:1477984205,
lastwritetime:1477984205,
owner:BUILTIN\Administrators,
@ -365,7 +356,7 @@
filename:test.ps1,
ishidden:False,
isdir:False,
islink:False,
islnk:False,
lastaccesstime:1477984205,
lastwritetime:1477984205,
owner:BUILTIN\Administrators,
@ -377,7 +368,7 @@
- name:assert actual == expected
assert:
that:"actual == expected"
that:actual == expected
- name:find files with recurse set and follow links
win_find:
@ -401,7 +392,7 @@
filename:link.ps1,
ishidden:False,
isdir:False,
islink:False,
islnk:False,
lastaccesstime:1477984205,
lastwritetime:1477984205,
owner:BUILTIN\Administrators,
@ -417,7 +408,7 @@
filename:test.ps1,
ishidden:False,
isdir:False,
islink:False,
islnk:False,
lastaccesstime:1477984205,
lastwritetime:1477984205,
owner:BUILTIN\Administrators,
@ -433,7 +424,7 @@
filename:file.ps1,
ishidden:False,
isdir:False,
islink:False,
islnk:False,
lastaccesstime:1477984205,
lastwritetime:1477984205,
owner:BUILTIN\Administrators,
@ -449,7 +440,7 @@
filename:test.ps1,
ishidden:False,
isdir:False,
islink:False,
islnk:False,
lastaccesstime:1477984205,
lastwritetime:1477984205,
owner:BUILTIN\Administrators,
@ -461,7 +452,7 @@
- name:assert actual == expected
assert:
that:"actual == expected"
that:actual == expected
- name:find directories
win_find:
@ -481,7 +472,7 @@
filename:sub-link,
ishidden:False,
isdir:True,
islink:False,
islnk:False,
lastaccesstime:1477984205,
lastwritetime:1477984205,
owner:BUILTIN\Administrators,
@ -493,7 +484,7 @@
- name:assert actual == expected
assert:
that:"actual == expected"
that:actual == expected
- name:find directories recurse and follow with a broken link
win_find:
@ -506,20 +497,20 @@
- name:check directory count with recurse and follow is correct