aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/datafilecollector-testharness/http-https-server/README.md
blob: 77e7011751cac86e7dd1bc16237883a3657c9cba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# ejbca certs

There are needed certificates generated using CMPv2 server to properly run the https server and dfc being able to work with
https protocol. For that reason, pre-generated certs were prepared and stored in `certservice/generated-certs` directory.

# Docker preparations

Source: <https://docs.docker.com/install/linux/linux-postinstall/>

`sudo usermod -aG docker $USER`

then logout-login to activate it.

# Prepare files for the simulator

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 symbolic links to these files to simulate PM files. The files names
matches the files in the events produced by the MR simulator. The dirs with the files will be mounted
by the ftp containers, defined in the docker-compse file, when started

# Starting/stopping the HTTP/HTTPS server(s)

Start: `docker-compose up`

Stop: Ctrl +C, then `docker-compose down`  or `docker-compose down --remove-orphans`

If you experience issues (or port collision), check the currently running other containers
by using 'docker ps' and stop them if necessary.

# Cleaning docker structure

Deep cleaning: `docker system prune`