Add rnib functionality
- The *_pb2.py files were added that compiled by protoc
- `get_list_gnb_ids`, `get_list_enb_ids` added to the _BaseXapp
- rnib repo added as a submodule
Issue-ID: RIC-788
Signed-off-by: yc999.jang <yc999.jang@samsung.com>
Change-Id: Id5c3392592422597b939fccda902c04369566e9e
diff --git a/tests/conftest.py b/tests/conftest.py
index eead2c4..dbff888 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -16,6 +16,8 @@
# ==================================================================================
import pytest
+from ricxappframe.entities.rnib.nb_identity_pb2 import NbIdentity
+
# These are here just to reduce the size of the code in test_rmr so those (important) tests are more readable; in theory these dicts could be large
# The actual value of the constants should be ignored by the tests; all we should care
@@ -75,3 +77,20 @@
14: "RMR_ERR_TRUNC",
15: "RMR_ERR_INITFAILED",
}
+
+
+@pytest.fixture
+def rnib_information():
+ rnib1 = NbIdentity()
+ rnib1.inventory_name = "nodeb_1234"
+ rnib1.global_nb_id.plmn_id = "plmn_1234"
+ rnib1.global_nb_id.nb_id = "nb_1234"
+ rnib1.connection_status = 1
+
+ rnib2 = NbIdentity()
+ rnib1.inventory_name = "nodeb_5678"
+ rnib1.global_nb_id.plmn_id = "plmn_5678"
+ rnib1.global_nb_id.nb_id = "nb_5678"
+ rnib1.connection_status = 6
+
+ return [rnib1.SerializeToString(), rnib2.SerializeToString()]