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
c1b9265c
Commit
c1b9265c
authored
Jan 17, 2025
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
3916d796
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
20 deletions
+50
-20
software/end-to-end-testing/tests/test_ors2.py
software/end-to-end-testing/tests/test_ors2.py
+50
-20
No files found.
software/end-to-end-testing/tests/test_ors2.py
View file @
c1b9265c
...
...
@@ -11,26 +11,43 @@ class WebsocketTestClass(e2e.EndToEndTestCase):
try
:
super
().
setUpClass
()
create_instances
=
False
if
create_instances
:
cls
.
enb_instance_name
=
time
.
strftime
(
'e2e-ors70-enb-%Y-%B-%d-%H:%M:%S'
)
cls
.
product
=
'https://lab.nexedi.com/nexedi/slapos/-/raw/1.0.371/software/simpleran/software-ors.cfg'
# Component GUIDs and configurations
cls
.
comp_enb
=
"COMP-4296"
# Retry configurations
cls
.
max_retries
=
10
cls
.
retry_delay
=
180
# seconds
# Setup instances
cls
.
setup_instances
()
cls
.
waitUntilGreen
(
cls
.
enb_instance_name
)
cls
.
waitUntilGreen
(
cls
.
cn_instance_name
)
else
:
cls
.
enb_instance_name
=
'e2e-ors70-enb-1733404208'
cls
.
ue_instance_name
=
'e2e-sb005-ue-1733403458'
cls
.
waitUntilGreen
(
cls
.
enb_instance_name
)
cls
.
waitUntilGreen
(
cls
.
ue_instance_name
)
cls
.
setup_websocket_connection
()
cls
.
enb_instance_name
=
'e2e-ors70-enb-1733404208'
cls
.
ue_instance_name
=
'e2e-sb005-ue-1733403458'
cls
.
update_parameters
(
"enb"
,
{
"bandwidth"
:
"10 MHz"
,
"dl_earfcn"
:
38350
,
"enb_drb_stats_enabled"
:
False
,
"xlog_forwarding_enabled"
:
False
})
cls
.
update_parameters
(
"ue"
,
{
"cell_type"
:
"lte"
,
"cell_kind"
:
"ue"
,
"rf_mode"
:
"tdd"
,
"ru"
:
{
"ru_type"
:
"sdr"
,
"ru_link_type"
:
"sdr"
,
"sdr_dev_list"
:
[
0
],
"n_antenna_dl"
:
2
,
"n_antenna_ul"
:
2
,
"tx_gain"
:
90
,
"rx_gain"
:
60
,
"txrx_active"
:
"ACTIVE"
},
"dl_earfcn"
:
38350
,
"ul_earfcn"
:
38350
,
"bandwidth"
:
10
})
time
.
sleep
(
60
)
cls
.
waitUntilGreen
(
cls
.
enb_instance_name
)
cls
.
waitUntilGreen
(
cls
.
ue_instance_name
)
cls
.
setup_websocket_connection
()
except
Exception
as
e
:
cls
.
logger
.
error
(
"Error during setup: "
+
str
(
e
))
...
...
@@ -63,6 +80,19 @@ class WebsocketTestClass(e2e.EndToEndTestCase):
cls
.
logger
.
info
(
"Websocket authentication established."
)
@
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
}
"
)
json_parameters
=
json
.
dumps
(
parameters
)
cls
.
retry_request
(
cls
.
request
,
instance_infos
.
software_url
,
instance_name
partition_parameter_kw
=
{
'_'
:
json_parameters
},
software_type
=
name
)
@
classmethod
def
retry_request
(
cls
,
func
,
*
args
,
**
kwargs
):
for
attempt
in
range
(
cls
.
max_retries
):
try
:
...
...
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