Skip to content

Commit

Permalink
fix: add gNB NodeID to failing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Laura Henning committed Sep 20, 2024
1 parent 4d1fc68 commit 5559271
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions internal/context/sm_context_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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{
Expand Down
4 changes: 2 additions & 2 deletions internal/context/user_plane_information.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion internal/sbi/consumer/pcf_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
5 changes: 3 additions & 2 deletions internal/sbi/processor/pdu_session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 5559271

Please sign in to comment.