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
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
Lu Xu
slapos
Commits
4c6c1a57
Commit
4c6c1a57
authored
Feb 15, 2024
by
Lu Xu
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup
parent
9cf9470d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
1 deletion
+32
-1
software/end-to-end-testing/tests/amari_test_common.py
software/end-to-end-testing/tests/amari_test_common.py
+26
-0
software/end-to-end-testing/tests/test_lopcomm.py
software/end-to-end-testing/tests/test_lopcomm.py
+3
-1
software/end-to-end-testing/tests/test_ors.py
software/end-to-end-testing/tests/test_ors.py
+3
-0
No files found.
software/end-to-end-testing/tests/amari_test_common.py
View file @
4c6c1a57
...
...
@@ -182,3 +182,29 @@ class WebsocketTestBase(e2e.EndToEndTestCase):
self
.
assertTrue
(
self
.
ue_get
()[
'power_on'
],
"UE already powered off"
)
self
.
send
({
"message"
:
"power_off"
,
"ue_id"
:
ue_id
})
self
.
recv
()
def
test_ue_has_ip
(
self
):
result
=
self
.
recv
()
result
=
self
.
ue_get
()
ue_id
=
result
[
'ue_id'
]
try
:
self
.
power_on
(
ue_id
)
time
.
sleep
(
5
)
result
=
self
.
ue_get
()
self
.
assertIn
(
'pdn_list'
,
result
,
"UE didn't connect"
)
self
.
assertIn
(
'ipv4'
,
result
[
'pdn_list'
][
0
],
"UE didn't get IPv4"
)
self
.
logger
.
info
(
"UE connected with ip: "
+
result
[
'pdn_list'
][
0
][
'ipv4'
])
finally
:
self
.
power_off
(
ue_id
)
def
test_max_rx_sample_db
(
self
):
custom_params
=
{
"max_rx_sample_db"
:
-
99
}
self
.
request_enb
(
custom_params
)
self
.
waitUntilPromises
(
self
.
enb_instance_name
,
promise_name
=
"check-rx-saturated"
,
expected
=
False
)
def
test_min_rxtx_delay
(
self
):
# Fixed by 9798ef1e, change `expected` to False when released
custom_params
=
{
"min_rxtx_delay"
:
99
}
self
.
request_enb
(
custom_params
)
self
.
waitUntilPromises
(
self
.
enb_instance_name
,
promise_name
=
"check-baseband-latency"
,
expected
=
True
)
software/end-to-end-testing/tests/test_lopcomm.py
View file @
4c6c1a57
...
...
@@ -2,19 +2,21 @@ import time
import
json
from
amari_test_common
import
WebsocketTestBase
class
ORS
Test
(
WebsocketTestBase
):
class
BBU
Test
(
WebsocketTestBase
):
@
classmethod
def
setTestParameters
(
cls
):
cls
.
enb_instance_name
=
time
.
strftime
(
'e2e-cb003-enb-%Y-%B-%d-%H:%M:%S'
)
cls
.
cn_instance_name
=
time
.
strftime
(
'e2e-cb003-core-network-%Y-%B-%d-%H:%M:%S'
)
cls
.
sim_instance_name
=
time
.
strftime
(
'e2e-cb003-sim-%Y-%B-%d-%H:%M:%S'
)
cls
.
ue_instance_name
=
time
.
strftime
(
'e2e-sb005-ue-%Y-%B-%d-%H:%M:%S'
)
cls
.
product
=
"/opt/e2e/slapos/software/ors-amarisoft/software-fdd-lopcomm.cfg"
cls
.
ue_product
=
"/opt/e2e/slapos/software/ors-amarisoft/software-fdd-lopcomm.cfg"
cls
.
comp_enb
=
"COMP-3920"
cls
.
comp_cn
=
"COMP-3920"
cls
.
comp_ue
=
"COMP-3756"
cls
.
dl_earfcn
=
300
def
test_ue_has_ip
(
self
):
...
...
software/end-to-end-testing/tests/test_ors.py
View file @
4c6c1a57
...
...
@@ -9,11 +9,14 @@ class ORSTest(WebsocketTestBase):
cls
.
cn_instance_name
=
time
.
strftime
(
'e2e-ors84-core-network-%Y-%B-%d-%H:%M:%S'
)
cls
.
sim_instance_name
=
time
.
strftime
(
'e2e-ors84-sim-%Y-%B-%d-%H:%M:%S'
)
cls
.
ue_instance_name
=
time
.
strftime
(
'e2e-sb005-ue-%Y-%B-%d-%H:%M:%S'
)
cls
.
product
=
cls
.
product
.
get
(
'ors-tdd'
)
cls
.
ue_product
=
"/opt/e2e/slapos/software/ors-amarisoft/software-fdd-lopcomm.cfg"
cls
.
comp_enb
=
"COMP-4057"
cls
.
comp_cn
=
"COMP-4057"
cls
.
comp_ue
=
"COMP-3756"
cls
.
dl_earfcn
=
38550
def
test_ue_has_ip
(
self
):
...
...
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