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
27bd6273
Commit
27bd6273
authored
Jan 02, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
92ee4f4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+13
-9
No files found.
software/ors-amarisoft/test/test.py
View file @
27bd6273
...
...
@@ -132,6 +132,16 @@ class ENBTestCase(AmariTestCase):
def
getInstanceSoftwareType
(
cls
):
return
"enb"
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
json
.
dumps
({...}
)
# XXX + testing=True
@
classmethod
def
requestDefaultInstance
(
cls
,
state
=
'started'
):
inst
=
super
().
requestDefaultInstance
(
state
=
state
)
cls
.
addShared
(
inst
)
return
inst
# ref returns full reference of shared instance with given subreference.
#
# for example if refrence of main isntance is 'MAIN-INSTANCE'
...
...
@@ -141,12 +151,6 @@ class ENBTestCase(AmariTestCase):
def
ref
(
cls
,
subref
):
return
'%s.%s'
%
(
cls
.
default_partition_reference
,
subref
)
@
classmethod
def
requestDefaultInstance
(
cls
,
state
=
'started'
):
inst
=
super
().
requestDefaultInstance
(
state
=
state
)
cls
.
addShared
(
inst
)
return
inst
# addShared adds all shared instances of the testcase over imain.
@
classmethod
def
addShared
(
cls
,
imain
):
...
...
@@ -173,7 +177,9 @@ class ENBTestCase(AmariTestCase):
class
TestENB_SDR
(
ENBTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
def
addShared
(
cls
,
imain
):
super
().
addShared
(
cls
,
imain
)
sdr0
x
4
t
sdr1
x
4
f
sdr2
x
5
t
...
...
@@ -182,8 +188,6 @@ class TestENB_SDR(ENBTestCase):
class
TestENB_CPRI
(
ENBTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
lo
x
{
4
t
,
4
f
,
5
t
,
5
f
}
sw
x
{
4
t
,
4
f
,
5
t
,
5
f
}
...
...
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