X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=tests%2Fconftest.py;h=dbff888c5a055155585e62bdf918a7c442453d77;hb=61c6508543204e10aa105b1a8e940c8c7d604fac;hp=eead2c468d76c0ec98ab2247ff69d727f447273b;hpb=61270901cda095afdd3ce147bf0dfd628c84cf99;p=ric-plt%2Fxapp-frame-py.git 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 @@ def expected_states(): 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()]