- public static final String RAN_NAME_1 = "Connected RAN";
- public static final String RAN_NAME_2 = "Unknown RAN";
-
- private final List<NodebIdentity> nodebIdList;
- private final Map<String, GetNodebResponse> nodebResponseMap;
- private final NodebIdentityGlobalNbId globalNbId;
-
- public E2ManagerMockConfiguration() {
- logger.info("Configuring mock E2 Manager");
- globalNbId = new NodebIdentityGlobalNbId().nbId("mockNbId").plmnId("mockPlmId");
- nodebIdList = new ArrayList<>();
- nodebResponseMap = new HashMap<>();
- // Complete entry
- nodebIdList.add(new NodebIdentity().inventoryName(RAN_NAME_1).globalNbId(globalNbId));
- nodebResponseMap.put(RAN_NAME_1, new GetNodebResponse().connectionStatus("CONNECTED").failureType("")
- .ip("127.0.0.1").nodeType("mockNodeType").port(123).ranName(RAN_NAME_1));
- // Partial entry
- // [{"nodebIdentity":{"globalNbId":null,"inventoryName":"AAAA123456"},
- // "nodebStatus":{"connectionStatus":"CONNECTING","enb":null,"failureType":null,
- // "globalNbId":null,"gnb":null,"ip":"10.2.0.6","nodeType":null,"port":36444,
- // "ranName":"AAAA123456","setupFailure":null}}]
- nodebIdList.add(new NodebIdentity().inventoryName(RAN_NAME_2));
- nodebResponseMap.put(RAN_NAME_2,
- new GetNodebResponse().connectionStatus("CONNECTING").ip("127.0.0.2").port(456).ranName(RAN_NAME_2));