From 55592717b4c8ade831160c3d1215520e529ff27e Mon Sep 17 00:00:00 2001 From: Laura Henning Date: Fri, 20 Sep 2024 12:20:47 +0000 Subject: [PATCH] fix: add gNB NodeID to failing test cases --- internal/context/sm_context_policy_test.go | 5 +++-- internal/context/user_plane_information.go | 4 ++-- internal/sbi/consumer/pcf_service_test.go | 2 +- internal/sbi/processor/pdu_session_test.go | 5 +++-- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/internal/context/sm_context_policy_test.go b/internal/context/sm_context_policy_test.go index 1961a4cd..5c17fa2a 100644 --- a/internal/context/sm_context_policy_test.go +++ b/internal/context/sm_context_policy_test.go @@ -13,7 +13,8 @@ import ( var userPlaneConfig = factory.UserPlaneInformation{ UPNodes: map[string]*factory.UPNode{ "GNodeB": { - Type: "AN", + Type: "AN", + NodeID: "192.168.1.1", }, "UPF1": { Type: "UPF", @@ -94,7 +95,7 @@ var userPlaneConfig = factory.UserPlaneInformation{ var testConfig = factory.Config{ Info: &factory.Info{ Version: "1.0.0", - Description: "SMF procdeure test configuration", + Description: "SMF procedure test configuration", }, Configuration: &factory.Configuration{ Sbi: &factory.Sbi{ diff --git a/internal/context/user_plane_information.go b/internal/context/user_plane_information.go index 87a1c609..f965b395 100644 --- a/internal/context/user_plane_information.go +++ b/internal/context/user_plane_information.go @@ -168,7 +168,7 @@ func NewUserPlaneInformation(upTopology *factory.UserPlaneInformation) *UserPlan for name, node := range upTopology.UPNodes { nodeID, err := ConfigToNodeID(node.NodeID) if err != nil { - logger.InitLog.Fatalf("Cannot parse NodeID from config: %+v", err) + logger.InitLog.Fatalf("[NewUserPlaneInformation] cannot parse %s NodeID from config: %+v", name, err) } upNode := &UPNode{ Name: name, @@ -413,7 +413,7 @@ func (upi *UserPlaneInformation) UpNodesFromConfiguration(upTopology *factory.Us } nodeID, err := ConfigToNodeID(node.NodeID) if err != nil { - logger.InitLog.Fatalf("Cannot parse NodeID from config: %+v", err) + logger.InitLog.Fatalf("[UpNodesFromConfiguration] cannot parse NodeID from config: %+v", err) } upNode := &UPNode{ Name: name, diff --git a/internal/sbi/consumer/pcf_service_test.go b/internal/sbi/consumer/pcf_service_test.go index 252d70aa..df119e9a 100644 --- a/internal/sbi/consumer/pcf_service_test.go +++ b/internal/sbi/consumer/pcf_service_test.go @@ -18,7 +18,7 @@ import ( var testConfig = factory.Config{ Info: &factory.Info{ Version: "1.0.0", - Description: "SMF procdeure test configuration", + Description: "SMF procedure test configuration", }, Configuration: &factory.Configuration{ Sbi: &factory.Sbi{ diff --git a/internal/sbi/processor/pdu_session_test.go b/internal/sbi/processor/pdu_session_test.go index 681a79bf..62712ee8 100644 --- a/internal/sbi/processor/pdu_session_test.go +++ b/internal/sbi/processor/pdu_session_test.go @@ -33,7 +33,8 @@ import ( var userPlaneConfig = factory.UserPlaneInformation{ UPNodes: map[string]*factory.UPNode{ "GNodeB": { - Type: "AN", + Type: "AN", + NodeID: "192.168.1.1", }, "UPF1": { Type: "UPF", @@ -76,7 +77,7 @@ var userPlaneConfig = factory.UserPlaneInformation{ var testConfig = factory.Config{ Info: &factory.Info{ Version: "1.0.0", - Description: "SMF procdeure test configuration", + Description: "SMF procedure test configuration", }, Configuration: &factory.Configuration{ SmfName: "SMF Procedure Test",