Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
documentation
Commits
0a840320
Commit
0a840320
authored
11 months ago
by
Jorge Moratinos
Browse files
Options
Downloads
Plain Diff
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
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!9
Fix command run
Pipeline
#7960
passed
11 months ago
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/testing/robotframework/README.md
+13
-2
13 additions, 2 deletions
doc/testing/robotframework/README.md
with
13 additions
and
2 deletions
doc/testing/robotframework/README.md
+
13
−
2
View file @
0a840320
...
@@ -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 \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment