Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
e1d06cfe
Commit
e1d06cfe
authored
Dec 01, 2024
by
Jaroslava Fiedlerova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: add CI unit test for simple fail deployment with 2 services
parent
c942fe43
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
ci-scripts/tests/deployment.py
ci-scripts/tests/deployment.py
+9
-0
ci-scripts/tests/simple-fail-2svc/docker-compose.yml
ci-scripts/tests/simple-fail-2svc/docker-compose.yml
+23
-0
No files found.
ci-scripts/tests/deployment.py
View file @
e1d06cfe
...
...
@@ -65,6 +65,15 @@ class TestDeploymentMethods(unittest.TestCase):
self
.
assertFalse
(
deploy
)
self
.
cont
.
yamlPath
=
old
def
test_deployfails_2svc
(
self
):
# fails reliably
old
=
self
.
cont
.
yamlPath
self
.
cont
.
yamlPath
[
0
]
=
'tests/simple-fail-2svc/'
deploy
=
self
.
cont
.
DeployObject
(
self
.
html
)
self
.
cont
.
UndeployObject
(
self
.
html
,
self
.
ran
)
self
.
assertFalse
(
deploy
)
self
.
cont
.
yamlPath
=
old
def
test_deploy_ran
(
self
):
self
.
cont
.
yamlPath
[
0
]
=
'yaml_files/5g_rfsimulator_tdd_dora'
self
.
cont
.
services
[
0
]
=
"oai-gnb"
...
...
ci-scripts/tests/simple-fail-2svc/docker-compose.yml
0 → 100644
View file @
e1d06cfe
services
:
test1
:
image
:
ubuntu:jammy
container_name
:
test_container1
cap_drop
:
-
ALL
entrypoint
:
/bin/bash -c "false"
healthcheck
:
test
:
/bin/bash -c "true"
interval
:
1s
timeout
:
1s
retries
:
1
test2
:
image
:
ubuntu:jammy
container_name
:
test_container2
cap_drop
:
-
ALL
entrypoint
:
/bin/bash -c "sleep infinity"
healthcheck
:
test
:
/bin/bash -c "true"
interval
:
1s
timeout
:
1s
retries
:
1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment