Fix integration markdown errors for linter
[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
13 Source: <https://docs.docker.com/install/linux/linux-postinstall/>
14
15 `sudo usermod -aG docker $USER`
16
17 then logout-login to activate it.
18
19 # Prepare files for the simulator
20
21 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 
22 symbolic links to these files to simulate PM files. The files names maches the files in
23 the events produced by the MR simulator. The dirs with the files will be mounted
24 by the ftp containers, defined in the docker-compse file, when started
25
26 # Starting/stopping the FTPS/SFTP server(s)
27
28 Start: `docker-compose up`
29
30 Stop: Ctrl +C, then `docker-compose down`  or `docker-compose down --remove-orphans`
31
32 If you experience issues (or port collision), check the currently running other containers
33 by using 'docker ps' and stop them if necessary.
34
35 # Cleaning docker structure
36
37 Deep cleaning: `docker system prune`