Code Review
/
ric-plt
/
xapp-frame-py.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Xapp Registration reading configuration from env
[ric-plt/xapp-frame-py.git]
/
tests
/
test_xapps.py
diff --git
a/tests/test_xapps.py
b/tests/test_xapps.py
index
6aa32da
..
3706f30
100644
(file)
--- a/
tests/test_xapps.py
+++ b/
tests/test_xapps.py
@@
-17,7
+17,9
@@
import json
import time
from contextlib import suppress
import json
import time
from contextlib import suppress
-from ricxappframe.xapp_frame import _BaseXapp, Xapp, RMRXapp, RIC_HEALTH_CHECK_REQ, RIC_HEALTH_CHECK_RESP
+
+from ricxappframe.util.constants import Constants
+from ricxappframe.xapp_frame import _BaseXapp, Xapp, RMRXapp
from ricxappframe.constants import sdl_namespaces
rmr_xapp = None
from ricxappframe.constants import sdl_namespaces
rmr_xapp = None
@@
-87,7
+89,7
@@
def test_rmr_healthcheck():
health_pay = None
def post_init(self):
health_pay = None
def post_init(self):
- self.rmr_send(b"", RIC_HEALTH_CHECK_REQ)
+ self.rmr_send(b"",
Constants.
RIC_HEALTH_CHECK_REQ)
def default_handler(self, summary, sbuf):
pass
def default_handler(self, summary, sbuf):
pass
@@
-100,7
+102,7
@@
def test_rmr_healthcheck():
health_pay = summary["payload"]
self.rmr_free(sbuf)
health_pay = summary["payload"]
self.rmr_free(sbuf)
- rmr_xapp_health.register_callback(health_handler, RIC_HEALTH_CHECK_RESP)
+ rmr_xapp_health.register_callback(health_handler,
Constants.
RIC_HEALTH_CHECK_RESP)
rmr_xapp_health.run(thread=True) # in unit tests we need to thread here or else execution is not returned!
time.sleep(1)
rmr_xapp_health.run(thread=True) # in unit tests we need to thread here or else execution is not returned!
time.sleep(1)