Merge "switch drools pdp image to new one"
[integration.git] / test / mocks / datafilecollector-testharness / ftps-sftp-server / README.md
1 ###Deployment of certificates: (in case of update)
2
3 This folder is prepared with a set of keys matching DfC for test purposes.
4
5 Copy from datafile-app-server/config/keys to the ./tls/ the following files:
6
7 * dfc.crt
8 * ftp.crt
9 * ftp.key
10
11 ###Docker preparations
12 Source: https://docs.docker.com/install/linux/linux-postinstall/
13
14 `sudo usermod -aG docker $USER`
15
16 then logout-login to activate it.
17
18 ###Prepare files for the simulator
19 Run `prepare.sh` with an argument found in `test_cases.yml` (or add a new tc in that file) to create files (1MB, 5MB and 50MB files) and a large number of 
20 symbolic links to these files to simulate PM files. The files names maches the files in
21 the events produced by the MR simulator. The dirs with the files will be mounted
22 by the ftp containers, defined in the docker-compse file, when started
23
24 ###Starting/stopping the FTPS/SFTP server(s)
25
26 Start: `docker-compose up`
27
28 Stop: Ctrl +C, then `docker-compose down`  or `docker-compose down --remove-orphans`
29
30 If you experience issues (or port collision), check the currently running other containers
31 by using 'docker ps' and stop them if necessary.
32
33
34 ###Cleaning docker structure
35 Deep cleaning: `docker system prune`