Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
104
Merge Requests
104
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
c01c1e58
Commit
c01c1e58
authored
Jan 09, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a1f61449
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
software/ors-amarisoft/test/setup.py
software/ors-amarisoft/test/setup.py
+1
-0
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+18
-0
No files found.
software/ors-amarisoft/test/setup.py
View file @
c01c1e58
...
...
@@ -46,6 +46,7 @@ setup(
'slapos.libnetworkcache'
,
'slapos.cookbook'
,
'pcpp'
,
'xmltodict'
,
],
zip_safe
=
True
,
test_suite
=
'test'
,
...
...
software/ors-amarisoft/test/test.py
View file @
c01c1e58
...
...
@@ -21,6 +21,7 @@ import json
import
io
import
yaml
import
pcpp
import
xmltodict
import
unittest
from
slapos.testing.testcase
import
makeModuleSetUpAndTestCaseClass
...
...
@@ -390,6 +391,23 @@ class TestENB_Lopcomm(ENBTestCase):
))
# XXX verify cu_cfg
def
test_ru_cu_cfg
(
t
):
# cu_config.xml of RU i
def
CU
(
i
):
cu_xml
=
t
.
ipath
(
'etc/%s'
%
xbuildout
.
encode
(
'%s-cu_config.xml'
%
t
.
ref
(
'RU%d'
%
i
)))
return
xmltodict
.
parse
(
cu_xml
)
cu1
=
CU
(
1
)
assertMatch
(
t
,
cu1
,
{
'user-plane-configuration'
:
{
'tx-endpoints'
:
'aaa'
,
'tx-links'
:
'bbb'
,
'rx-endpoints'
:
'ccc'
,
'rx-links'
:
'ddd'
,
'tx-array-acarriers'
:
'qqq'
,
}
})
...
...
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