-
Notifications
You must be signed in to change notification settings - Fork 6
/
test2
60 lines (48 loc) · 1.41 KB
/
test2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# prep test
#
recursiveDelete /test-folder/
# CREATE
#
put /test-folder/sub1/test-1.txt "This is a test."
# READ
#
matchText /test-folder/sub1/test-1.txt "This is a test."
# COPY
#
copy /test-folder/sub1/test-1.txt /test-folder/sub1/test-2.txt
exists /test-folder/sub1/test-1.txt
exists /test-folder/sub1/test-2.txt
# DELETE
#
delete /test-folder/sub1/test-2.txt
notExists /test-folder/sub1/test-2.txt
# MOVE
#
move /test-folder/sub1/test-1.txt /test-folder/sub1/test-3.txt
notExists /test-folder/sub1/test-1.txt
matchText /test-folder/sub1/test-3.txt "This is a test."
# ZIP
#
zip /test-folder/sub1/ /test-folder/zip-folder/test.zip
exists /test-folder/zip-folder/test.zip
unzip /test-folder/zip-folder/test.zip /test-folder/zip-folder/
exists /test-folder/zip-folder/sub1/test-3.txt
recursiveDelete /test-folder/
notExists /test-folder/
# END
Expected Output :
ok put </test-folder/sub1/test.txt>
ok move </test-folder/sub1/test.txt> to </test-folder/test-2.txt>
ok notExists </test-folder/sub1/test.txt>
ok contentsMatch <test-2.txt>
ok copy </test-folder/test-2.txt> to </test-folder/test-3.txt>
ok exists </test-folder/test-2.txt
ok exists </test-folder/test-3.txt
ok zip </test-folder/> to </test.zip>
ok exists </test.zip
ok unzip </test.zip> to </test-folder-2/>
ok exists </test-folder-2/test-folder/test-3.txt
ok delete </test-folder/>
ok delete </test-folder-2/>
ok delete </test.zip>
ok notExists </test-folder/>