Draft for INT-607 47/63247/5
authorMarcin Migdal <marcin.migdal@nokia.com>
Tue, 28 Aug 2018 12:41:04 +0000 (14:41 +0200)
committerMarcin Migdal <marcin.migdal@nokia.com>
Tue, 28 Aug 2018 13:30:06 +0000 (15:30 +0200)
Change-Id: I46b9cf8da2a063300bed2cae4a42c926be5b1518
Issue-ID: INT-607
Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
test/mocks/pnfsimulator/docker-compose.yml
test/mocks/pnfsimulator/sftp/sftp-file.txt [new file with mode: 0644]

index cfc0863..d6f376f 100644 (file)
@@ -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 (file)
index 0000000..43f6712
--- /dev/null
@@ -0,0 +1,2 @@
+We are SFTP specialists.
+Do you prefer chocolate or vanilia?
\ No newline at end of file