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
e81b76b4
Commit
e81b76b4
authored
Jan 17, 2025
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
c1b9265c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
software/end-to-end-testing/tests/test_ors2.py
software/end-to-end-testing/tests/test_ors2.py
+15
-7
No files found.
software/end-to-end-testing/tests/test_ors2.py
View file @
e81b76b4
...
...
@@ -13,6 +13,11 @@ class WebsocketTestClass(e2e.EndToEndTestCase):
cls
.
enb_instance_name
=
'e2e-ors70-enb-1733404208'
cls
.
ue_instance_name
=
'e2e-sb005-ue-1733403458'
cls
.
ue_cell_instance_name
=
'e2e-sb005-ue-cell-1733403899'
# Retry configurations
cls
.
max_retries
=
1
cls
.
retry_delay
=
1
# seconds
cls
.
update_parameters
(
"enb"
,
{
...
...
@@ -21,7 +26,8 @@ class WebsocketTestClass(e2e.EndToEndTestCase):
"enb_drb_stats_enabled"
:
False
,
"xlog_forwarding_enabled"
:
False
})
cls
.
update_parameters
(
"ue"
,
cls
.
update_parameters
(
"ue"
,
{
"amarisoft_version"
:
"v2022-12-16.1733497882"
})
cls
.
update_parameters
(
"ue#cell"
,
{
"cell_type"
:
"lte"
,
"cell_kind"
:
"ue"
,
...
...
@@ -81,15 +87,17 @@ class WebsocketTestClass(e2e.EndToEndTestCase):
@
classmethod
def
update_parameters
(
cls
,
name
,
parameters
):
instance_name
=
cls
.
get
(
f"
{
name
}
_instance_name"
)
instance_infos
=
cls
.
getInstanceInfos
()
cls
.
logger
.
info
(
f"Update parameters for
{
instance_name
}
"
)
sr_type
=
name
.
split
(
'#'
)[
0
]
shared
=
'#'
in
name
name
=
name
.
replace
(
'#'
,
'_'
)
instance_name
=
getattr
(
cls
,
f"
{
name
}
_instance_name
"
)
instance_infos
=
cls
.
getInstanceInfos
(
instance_name
)
json_parameters
=
json
.
dumps
(
parameters
)
cls
.
logger
.
info
(
f"Update parameters for
{
instance_name
}
"
)
cls
.
retry_request
(
cls
.
request
,
instance_infos
.
software_url
,
instance_name
instance_name
,
shared
=
shared
,
partition_parameter_kw
=
{
'_'
:
json_parameters
},
software_type
=
name
)
@
classmethod
...
...
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