Skip to content

Commit

Permalink
Fix test_multiUPF.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ShouheiNishi committed Apr 23, 2024
1 parent dc3642e commit a19128d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 35 deletions.
1 change: 1 addition & 0 deletions config/multiUPF/smfcfg.ulcl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ configuration:
- A: gNB1
B: UPF6
nrfUri: http://127.0.0.10:8000
nrfCertPem: cert/nrf.pem # NRF Certificate
ulcl: true

# retransmission timer for pdu session modification command
Expand Down
35 changes: 1 addition & 34 deletions test/ulclsession_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func testULCLSessionBase(t *testing.T, ueCount int, upfNum int) {
servingPlmnId := "20893"
sNssai := models.Snssai{
Sst: 1,
Sd: "112233",
Sd: "010203",
}

for i := 0; i < ueCount; i++ {
Expand All @@ -85,39 +85,6 @@ func testULCLSessionBase(t *testing.T, ueCount int, upfNum int) {
// insert UE data to MongoDB
test.InsertUeToMongoDB(t, ue, servingPlmnId)

getData := test.GetAuthSubscriptionFromMongoDB(ue.Supi)
assert.NotNil(t, getData)
{
amData := test.GetAccessAndMobilitySubscriptionData()
test.InsertAccessAndMobilitySubscriptionDataToMongoDB(ue.Supi, amData, servingPlmnId)
getData := test.GetAccessAndMobilitySubscriptionDataFromMongoDB(ue.Supi, servingPlmnId)
assert.NotNil(t, getData)
}
{
smfSelData := test.GetSmfSelectionSubscriptionData()
test.InsertSmfSelectionSubscriptionDataToMongoDB(ue.Supi, smfSelData, servingPlmnId)
getData := test.GetSmfSelectionSubscriptionDataFromMongoDB(ue.Supi, servingPlmnId)
assert.NotNil(t, getData)
}
{
smSelData := test.GetSessionManagementSubscriptionData()
test.InsertSessionManagementSubscriptionDataToMongoDB(ue.Supi, servingPlmnId, smSelData)
getData := test.GetSessionManagementDataFromMongoDB(ue.Supi, servingPlmnId)
assert.NotNil(t, getData)
}
{
amPolicyData := test.GetAmPolicyData()
test.InsertAmPolicyDataToMongoDB(ue.Supi, amPolicyData)
getData := test.GetAmPolicyDataFromMongoDB(ue.Supi)
assert.NotNil(t, getData)
}
{
smPolicyData := test.GetSmPolicyData()
test.InsertSmPolicyDataToMongoDB(ue.Supi, smPolicyData)
getData := test.GetSmPolicyDataFromMongoDB(ue.Supi)
assert.NotNil(t, getData)
}

// send InitialUeMessage(Registration Request)
//i%100
i_e2 := 16*((i%100)%10) + ((i % 100) / 10)
Expand Down
2 changes: 1 addition & 1 deletion test_multiUPF.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ if [ ${DUMP_NS} ]; then
sudo tcpdump -i any 'sctp port 38412 || tcp port 8000 || udp port 8805' -w 'control_plane.pcap' &
fi

NF_LIST="nrf udr udm ausf nssf amf pcf"
NF_LIST="nrf udr udm ausf chf nssf amf pcf"
F5GC_DIR="$(cd "$( dirname "$0" )" && pwd -P)"
for NF in ${NF_LIST}; do
"${F5GC_DIR}/bin/${NF}" -c "${CONF_DIR}/${NF}cfg.yaml"&
Expand Down

0 comments on commit a19128d

Please sign in to comment.