summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Migdal <marcin.migdal@nokia.com>2018-09-27 17:15:34 +0200
committerMarcin Migdal <marcin.migdal@nokia.com>2018-09-27 17:16:04 +0200
commit4fab8f0830672c8accb36ad594e708daee36c2e8 (patch)
treea16895052fea5324380d91f9936965f7924320d8
parentbd1884482f35595fc625870d409f630510b12430 (diff)
Expose file via FTPES. Add TLS
Change-Id: I975c5ab4484d27248ea68002af9b12d3ea3237ab Issue-ID: INT-657 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
-rw-r--r--test/mocks/pnfsimulator/README.md19
-rw-r--r--test/mocks/pnfsimulator/docker-compose.yml5
2 files changed, 18 insertions, 6 deletions
diff --git a/test/mocks/pnfsimulator/README.md b/test/mocks/pnfsimulator/README.md
index 9e2946a70..567c5d06b 100644
--- a/test/mocks/pnfsimulator/README.md
+++ b/test/mocks/pnfsimulator/README.md
@@ -37,11 +37,24 @@ In order to disable usage of SSH keys and start using password, change in *docke
###FTPES support
PNF Simulator allows to serve files via FTPES server. FTPES server has predefined user *onap* with password *pano*.
-In order to connect execute command *ftp -p localhost 2221* and then when requested provide user and password.
-In order to download a file execute while being logged in *get file-name-to-be-downloaded*.
+
+####FTPES support with TLS enabled
+By default TLS support is enabled. In order to verify connection, please use *FileZilla* for testing.
+
+####FTPES support for TLS disabled
+For local testing TLS may be disabled, but it's not recommended.
+In order to set up such configuration, comment or remove in *ftpes-server* service section in *docker-compose.yml* following entries:
+- *./ftpes/tls/:/etc/ssl/private/*
+- *ADDED_FLAGS: --tls=2*
+
+After that execute *./simulator.sh stop* and when it's finished *./simulator.sh start* .
+
+In order to connect execute command *ftp -p localhost 2221* and, when requested, provide user and password.
+In order to download a file execute, while still being logged in, *get file-name-to-be-downloaded*.
+
###Developer mode
-For development of PNF Simulator, run *simulator.sh* start-dev in order to run Netopeer.
+For development of PNF Simulator, run *simulator.sh* start-dev in order to run minimal necessary set of supporting services such as Netopeer of FTP servers.
After that it is possible to run PNF Simulator from IDE.
diff --git a/test/mocks/pnfsimulator/docker-compose.yml b/test/mocks/pnfsimulator/docker-compose.yml
index d837f9e10..214a7733a 100644
--- a/test/mocks/pnfsimulator/docker-compose.yml
+++ b/test/mocks/pnfsimulator/docker-compose.yml
@@ -49,11 +49,10 @@ services:
volumes:
- ./ftpes/files:/home/ftpusers/onap
- ./ftpes/userpass/:/etc/pure-ftpd/passwd/
- #- ./ftpes/tls/:/etc/ssl/private/
+ - ./ftpes/tls/:/etc/ssl/private/
environment:
PUBLICHOST: localhost
- #ADDED_FLAGS: --tls=2
+ ADDED_FLAGS: --tls=2
FTP_USER_HOME: onap
-
restart: on-failure \ No newline at end of file