Skip to content
Snippets Groups Projects
Commit 0a840320 authored by Jorge Moratinos's avatar Jorge Moratinos
Browse files

Merge branch 'OCF-Doc4-upgrade-documentation-with-new-tests' into 'develop'

Fix command run

See merge request !9
parents 1538242a a3ace576
No related branches found
No related tags found
1 merge request!9Fix command run
Pipeline #7960 passed
...@@ -28,6 +28,9 @@ To run Mock Server locally you can just execute the next script: ...@@ -28,6 +28,9 @@ To run Mock Server locally you can just execute the next script:
``` ```
cd services cd services
./run_mock_server.sh ./run_mock_server.sh
or
./run.sh -s
``` ```
If you want to launch only tests that not needed mockserver, just add "--exclude mockserver" parameter to robot execution: If you want to launch only tests that not needed mockserver, just add "--exclude mockserver" parameter to robot execution:
...@@ -35,6 +38,14 @@ If you want to launch only tests that not needed mockserver, just add "--exclude ...@@ -35,6 +38,14 @@ If you want to launch only tests that not needed mockserver, just add "--exclude
./run_capif_tests.sh --include <TAG> --exclude mockserver ./run_capif_tests.sh --include <TAG> --exclude mockserver
``` ```
After run tests the Mock Server can be removed from local deployment:
```
./clean_mock_server.sh
or
./clean_capif_docker_services.sh -s
```
## Manual Build And Test Execution ## Manual Build And Test Execution
* **Build Robot docker image**: * **Build Robot docker image**:
...@@ -64,7 +75,7 @@ docker run -ti --rm --network="host" \ ...@@ -64,7 +75,7 @@ docker run -ti --rm --network="host" \
--add-host host.docker.internal:host-gateway \ --add-host host.docker.internal:host-gateway \
--add-host vault:host-gateway \ --add-host vault:host-gateway \
--add-host register:host-gateway \ --add-host register:host-gateway \
--add-host mockserver:host-gateway \ --add-host mock-server:host-gateway \
-v <PATH_TO_REPOSITORY>/tests:/opt/robot-tests/tests \ -v <PATH_TO_REPOSITORY>/tests:/opt/robot-tests/tests \
-v <PATH_RESULT_FOLDER>:/opt/robot-tests/results capif-robot-test:latest \ -v <PATH_RESULT_FOLDER>:/opt/robot-tests/results capif-robot-test:latest \
--variable CAPIF_HOSTNAME:$CAPIF_HOSTNAME \ --variable CAPIF_HOSTNAME:$CAPIF_HOSTNAME \
...@@ -98,7 +109,7 @@ docker run -ti --rm --network="host" \ ...@@ -98,7 +109,7 @@ docker run -ti --rm --network="host" \
--add-host host.docker.internal:host-gateway \ --add-host host.docker.internal:host-gateway \
--add-host vault:host-gateway \ --add-host vault:host-gateway \
--add-host register:host-gateway \ --add-host register:host-gateway \
--add-host mockserver:host-gateway \ --add-host mock-server:host-gateway \
-v <PATH_TO_REPOSITORY>/tests:/opt/robot-tests/tests \ -v <PATH_TO_REPOSITORY>/tests:/opt/robot-tests/tests \
-v <PATH_RESULT_FOLDER>:/opt/robot-tests/results capif-robot-test:latest \ -v <PATH_RESULT_FOLDER>:/opt/robot-tests/results capif-robot-test:latest \
--variable CAPIF_HOSTNAME:$CAPIF_HOSTNAME \ --variable CAPIF_HOSTNAME:$CAPIF_HOSTNAME \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment