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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
spbro
OpenXG-RAN
Commits
51bf5c0f
Commit
51bf5c0f
authored
Sep 24, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce CI deployment tests based on OAI images
parent
5201a5c3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
12 deletions
+49
-12
ci-scripts/tests/README.md
ci-scripts/tests/README.md
+4
-1
ci-scripts/tests/deployment.py
ci-scripts/tests/deployment.py
+42
-8
ci-scripts/tests/simple-dep/docker-compose.yml
ci-scripts/tests/simple-dep/docker-compose.yml
+1
-1
ci-scripts/yaml_files/5g_rfsimulator_tdd_dora/docker-compose.yaml
...ts/yaml_files/5g_rfsimulator_tdd_dora/docker-compose.yaml
+2
-2
No files found.
ci-scripts/tests/README.md
View file @
51bf5c0f
...
...
@@ -10,7 +10,10 @@ start with
python tests/ping-iperf.py -v
python tests/iperf-analysis.py -v
It will indicate if all tests passed.
It will indicate if all tests passed. It assumes that these images are present:
-
`oai-ci/oai-nr-ue:develop-12345678`
-
`oai-ci/oai-gnb:develop-12345678`
# test-runner test
...
...
ci-scripts/tests/deployment.py
View file @
51bf5c0f
...
...
@@ -23,10 +23,10 @@ class TestDeploymentMethods(unittest.TestCase):
self
.
ci
=
cls_oaicitest
.
OaiCiTest
()
self
.
cont
=
cls_containerize
.
Containerize
()
self
.
ran
=
ran
.
RANManagement
()
self
.
cont
.
yamlPath
[
0
]
=
'
tests/simple-dep/
'
self
.
cont
.
yamlPath
[
0
]
=
''
self
.
cont
.
ranAllowMerge
=
True
self
.
cont
.
ranBranch
=
'
develop
'
self
.
cont
.
ranCommitID
=
'
1234567890
'
self
.
cont
.
ranBranch
=
''
self
.
cont
.
ranCommitID
=
''
self
.
cont
.
eNB_serverId
[
0
]
=
'0'
self
.
cont
.
eNBIPAddress
=
'localhost'
self
.
cont
.
eNBUserName
=
None
...
...
@@ -34,17 +34,51 @@ class TestDeploymentMethods(unittest.TestCase):
self
.
cont
.
eNBSourceCodePath
=
os
.
getcwd
()
def
test_deploy
(
self
):
success
=
self
.
cont
.
DeployObject
(
self
.
html
)
self
.
assertTrue
(
success
)
self
.
cont
.
UndeployObject
(
self
.
html
,
self
.
ran
)
self
.
cont
.
yamlPath
[
0
]
=
'tests/simple-dep/'
self
.
cont
.
deploymentTag
=
"noble"
deploy
=
self
.
cont
.
DeployObject
(
self
.
html
)
undeploy
=
self
.
cont
.
UndeployObject
(
self
.
html
,
self
.
ran
)
self
.
assertTrue
(
deploy
)
self
.
assertTrue
(
undeploy
)
def
test_deployfails
(
self
):
# fails reliably
old
=
self
.
cont
.
yamlPath
self
.
cont
.
yamlPath
[
0
]
=
'tests/simple-fail/'
success
=
self
.
cont
.
DeployObject
(
self
.
html
)
self
.
assertFalse
(
success
)
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"
self
.
cont
.
deploymentTag
=
'develop-12345678'
deploy
=
self
.
cont
.
DeployObject
(
self
.
html
)
undeploy
=
self
.
cont
.
UndeployObject
(
self
.
html
,
self
.
ran
)
self
.
assertTrue
(
deploy
)
self
.
assertTrue
(
undeploy
)
def
test_deploy_multiran
(
self
):
self
.
cont
.
yamlPath
[
0
]
=
'yaml_files/5g_rfsimulator_tdd_dora'
self
.
cont
.
services
[
0
]
=
"oai-gnb oai-nr-ue"
self
.
cont
.
deploymentTag
=
'develop-12345678'
deploy
=
self
.
cont
.
DeployObject
(
self
.
html
)
undeploy
=
self
.
cont
.
UndeployObject
(
self
.
html
,
self
.
ran
)
self
.
assertTrue
(
deploy
)
self
.
assertTrue
(
undeploy
)
def
test_deploy_staged
(
self
):
self
.
cont
.
yamlPath
[
0
]
=
'yaml_files/5g_rfsimulator_tdd_dora'
self
.
cont
.
services
[
0
]
=
"oai-gnb"
self
.
cont
.
deploymentTag
=
'develop-12345678'
deploy1
=
self
.
cont
.
DeployObject
(
self
.
html
)
self
.
cont
.
services
[
0
]
=
"oai-nr-ue"
deploy2
=
self
.
cont
.
DeployObject
(
self
.
html
)
undeploy
=
self
.
cont
.
UndeployObject
(
self
.
html
,
self
.
ran
)
self
.
assertTrue
(
deploy1
)
self
.
assertTrue
(
deploy2
)
self
.
assertTrue
(
undeploy
)
if
__name__
==
'__main__'
:
unittest
.
main
()
ci-scripts/tests/simple-dep/docker-compose.yml
View file @
51bf5c0f
services
:
test
:
image
:
ubuntu:
jammy
image
:
ubuntu:
${TAG:-jammy}
container_name
:
test_container
cap_drop
:
-
ALL
...
...
ci-scripts/yaml_files/5g_rfsimulator_tdd_dora/docker-compose.yaml
View file @
51bf5c0f
services
:
oai-gnb
:
image
:
oaisoftwarealliance/oai-gnb:develop
image
:
${REGISTRY:-oaisoftwarealliance}/${GNB_IMG:-oai-gnb}:${TAG:-develop}
container_name
:
rfsim5g-oai-gnb
cap_drop
:
-
ALL
...
...
@@ -25,7 +25,7 @@ services:
retries
:
5
oai-nr-ue
:
image
:
oaisoftwarealliance/oai-nr-ue:develop
image
:
${REGISTRY:-oaisoftwarealliance}/${NRUE_IMG:-oai-nr-ue}:${TAG:-develop}
container_name
:
rfsim5g-oai-nr-ue
cap_drop
:
-
ALL
...
...
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