-
Notifications
You must be signed in to change notification settings - Fork 6
/
documents
50 lines (41 loc) · 1.34 KB
/
documents
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
# prep test area
#
!
recursiveDelete ./test-folder/
notExists ./test-folder/
# create resource
#
put ./test-folder/sub1/test1.txt "This is a test."
# move resource
#
move ./test-folder/sub1/test1.txt ./test-folder/sub1/test-2.txt
notExists ./test-folder/sub1/test1.txt
matchText ./test-folder/sub1/test-2.txt "This is a test."
# copy resource
#
copy ./test-folder/sub1/test-2.txt ./test-folder/sub1/test-3.txt
exists ./test-folder/sub1/test-2.txt
exists ./test-folder/sub1/test-3.txt
# 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/>