aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-08-28 15:53:32 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-28 15:53:32 +0000
commit0f28b345bd700d632bd54a5d984c79a77de9c693 (patch)
treea3f41b2a4dab4b95bdf6fac9d557c91aaa525f03 /test
parentf8d0bfddb5e9b5c0b8c949fe012da1aa5076cb42 (diff)
parent1f81ed120ccffaf2a14ca12e959a9f045d61cbd2 (diff)
Merge "Draft for INT-607"
Diffstat (limited to 'test')
-rw-r--r--test/mocks/pnfsimulator/docker-compose.yml16
-rw-r--r--test/mocks/pnfsimulator/sftp/sftp-file.txt2
2 files changed, 17 insertions, 1 deletions
diff --git a/test/mocks/pnfsimulator/docker-compose.yml b/test/mocks/pnfsimulator/docker-compose.yml
index cfc086357..d6f376f8c 100644
--- a/test/mocks/pnfsimulator/docker-compose.yml
+++ b/test/mocks/pnfsimulator/docker-compose.yml
@@ -11,6 +11,7 @@ services:
- ./json_schema:/json_schema
env_file:
- ./config/netconf.env
+ restart: on-failure
depends_on:
- netopeer
@@ -19,7 +20,20 @@ services:
image: sysrepo/sysrepo-netopeer2:latest
ports:
- "830:830"
+ volumes:
+ - ./netconf:/netconf
env_file:
- ./config/netconf.env
+ restart: on-failure
+ depends_on:
+ - sftp-server
+
+ sftp-server:
+ container_name: sftp-server
+ image: atmoz/sftp:alpine
+ ports:
+ - "22:22"
volumes:
- - ./netconf:/netconf \ No newline at end of file
+ - ./sftp:/home/sftp-user/sftp
+ restart: on-failure
+ command: sftp-user:sftp-password \ No newline at end of file
diff --git a/test/mocks/pnfsimulator/sftp/sftp-file.txt b/test/mocks/pnfsimulator/sftp/sftp-file.txt
new file mode 100644
index 000000000..43f671212
--- /dev/null
+++ b/test/mocks/pnfsimulator/sftp/sftp-file.txt
@@ -0,0 +1,2 @@
+We are SFTP specialists.
+Do you prefer chocolate or vanilia? \ No newline at end of file
6' href='#n136'>136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219