1+ name : test for gofs SFTP push
2+ init :
3+ - mkdir :
4+ source : ./sftp-push-client/source
5+ - mkdir :
6+ source : ./sftp-push-client/dest
7+ actions :
8+ - cp :
9+ source : ./integration_test.go
10+ dest : ./sftp-push-client/source/integration_test.go.bak1
11+ - cp :
12+ source : ./integration_test.go
13+ dest : ./sftp-push-client/source/integration_test.go.bak2
14+ - rm :
15+ source : ./sftp-push-client/source/integration_test.go.bak2
16+ - touch :
17+ source : ./sftp-push-client/source/hello
18+ - echo :
19+ source : ./sftp-push-client/source/hello
20+ input : Hello World
21+ append : false
22+ - echo :
23+ source : ./sftp-push-client/source/hello
24+ input : Bye Bye
25+ append : true
26+ no-newline : false
27+ - echo :
28+ source : ./sftp-push-client/source/empty1
29+ no-newline : true
30+ - echo :
31+ source : ./sftp-push-client/source/empty2
32+ no-newline : true
33+ - symlink :
34+ link : ./sftp-push-client/source/hello.symlink
35+ dest : ./sftp-push-client/source/hello
36+ ignore-error : false
37+ - symlink :
38+ link : ./sftp-push-client/source/hello.symlink.bak
39+ dest : ./sftp-push-client/source/hello
40+ ignore-error : false
41+ - symlink :
42+ link : ./sftp-push-client/source/not_exist.symlink
43+ dest : ./sftp-push-client/source/not_exist
44+ ignore-error : false
45+ - rm :
46+ source : ./sftp-push-client/source/hello.symlink.bak
47+ - sleep : 10s
48+ - is-equal :
49+ source : ./sftp-push-client/source/integration_test.go.bak1
50+ dest : /sftp-workspace/integration_test.go.bak1
51+ expect : true
52+ must-non-empty : true
53+ - is-equal :
54+ source : ./sftp-push-client/source/integration_test.go.bak1
55+ dest : /sftp-workspace/integration_test.go.bak1
56+ expect : true
57+ must-non-empty : true
58+ algorithm : sha1
59+ - is-equal :
60+ source : ./sftp-push-client/source/integration_test.go.bak1
61+ dest : /sftp-workspace/empty1
62+ expect : false
63+ - is-equal :
64+ source : ./sftp-push-client/source/empty1
65+ dest : /sftp-workspace/empty2
66+ expect : true
67+ must-non-empty : false
68+ - is-empty :
69+ source : /sftp-workspace/integration_test.go.bak1
70+ expect : false
71+ - is-exist :
72+ source : /sftp-workspace/integration_test.go.bak1
73+ expect : true
74+ - is-exist :
75+ source : /sftp-workspace/integration_test.go.bak2
76+ expect : false
77+ - is-dir :
78+ source : /sftp-workspace
79+ expect : true
80+ - is-dir :
81+ source : /sftp-workspace/integration_test.go.bak1
82+ expect : false
83+ - hash :
84+ algorithm : md5
85+ source : /sftp-workspace/hello
86+ expect : 856719c57653fa86008d49db895a5752
87+ - hash :
88+ algorithm : sha1
89+ source : /sftp-workspace/hello
90+ expect : f343874b5df87e887d85df2e790df33584463162
91+ - rm :
92+ source : ./sftp-push-client/source/integration_test.go.bak1
93+ - sleep : 10s
94+ - is-exist :
95+ source : /sftp-workspace/integration_test.go.bak1
96+ expect : false
97+ - is-symlink :
98+ link : /sftp-workspace/hello.symlink
99+ expect : true
100+ ignore-error : false
101+ - is-symlink :
102+ link : /sftp-workspace/not_exist.symlink
103+ expect : true
104+ ignore-error : false
105+ - is-exist :
106+ source : /sftp-workspace/hello.symlink.bak
107+ expect : false
108+ clear :
109+ - rm :
110+ source : ./sftp-push-client
0 commit comments