Skip to content

Commit

Permalink
go mod tidy & revise all testcase to fedcba
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchennn committed Aug 23, 2023
1 parent 171d7e9 commit 6f2972e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion test/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ require (
github.com/free5gc/smf v0.0.0
github.com/free5gc/udm v0.0.0
github.com/free5gc/udr v0.0.0
github.com/free5gc/util v1.0.5-0.20230511064842-2e120956883b
github.com/free5gc/util v1.0.5-0.20230823103219-e511c4fd20ef
github.com/gin-gonic/gin v1.9.0
github.com/go-ping/ping v0.0.0-20210506233800-ff8be3320020
github.com/google/uuid v1.3.0
Expand Down
3 changes: 2 additions & 1 deletion test/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ github.com/free5gc/pfcp v1.0.6/go.mod h1:WzpW7Zxhx5WONMumNKRWbPn7pl/iTYp2FqRLNiO
github.com/free5gc/tlv v1.0.2-0.20230131124215-8b6ebd69bf93 h1:QPSSI5zw4goiIfxem9doVyMqTO8iKLQ536pzpET5Y+Q=
github.com/free5gc/tlv v1.0.2-0.20230131124215-8b6ebd69bf93/go.mod h1:KbbQJIgGaA2jIwnTJgJ/lE3JSDEp3898S6c4TEq0Vyg=
github.com/free5gc/util v1.0.5-0.20230306071612-a52909216bd2/go.mod h1:fgV0hXf5arxAWs8D9LfrrfNByZ1IDCWYlgBzncy5GtE=
github.com/free5gc/util v1.0.5-0.20230511064842-2e120956883b h1:XMw3j+4AEXLeL/uyiZ7/qYE1X7Ul05RTwWBhzxCLi+0=
github.com/free5gc/util v1.0.5-0.20230511064842-2e120956883b/go.mod h1:l2Jrml4vojDomW5jdDJhIS60KdbrE9uPYhyAq/7OnF4=
github.com/free5gc/util v1.0.5-0.20230823103219-e511c4fd20ef h1:ne0EMnst7wbLoaY2Uvn/2Kvp/KkXKMQJcaIJQKFe+a4=
github.com/free5gc/util v1.0.5-0.20230823103219-e511c4fd20ef/go.mod h1:l2Jrml4vojDomW5jdDJhIS60KdbrE9uPYhyAq/7OnF4=
github.com/gin-contrib/cors v1.3.1 h1:doAsuITavI4IOcd0Y19U4B+O0dNWihRyX//nn4sEmgA=
github.com/gin-contrib/cors v1.3.1/go.mod h1:jjEJ4268OPZUcU7k9Pm653S7lXUGcqMADzFA61xsmDk=
github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
Expand Down
22 changes: 11 additions & 11 deletions test/registration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ func TestServiceRequest(t *testing.T) {

sNssai := models.Snssai{
Sst: 1,
Sd: "010203",
Sd: "fedcba",
}
pdu = nasTestpacket.GetUlNasTransport_PduSessionEstablishmentRequest(10, nasMessage.ULNASTransportRequestTypeInitialRequest, "internet", &sNssai)
pdu, err = test.EncodeNasPduWithSecurity(ue, pdu, nas.SecurityHeaderTypeIntegrityProtectedAndCiphered, true, false)
Expand Down Expand Up @@ -1199,7 +1199,7 @@ func TestPDUSessionReleaseRequest(t *testing.T) {

sNssai := models.Snssai{
Sst: 1,
Sd: "010203",
Sd: "fedcba",
}
pdu = nasTestpacket.GetUlNasTransport_PduSessionEstablishmentRequest(10, nasMessage.ULNASTransportRequestTypeInitialRequest, "internet", &sNssai)
pdu, err = test.EncodeNasPduWithSecurity(ue, pdu, nas.SecurityHeaderTypeIntegrityProtectedAndCiphered, true, false)
Expand Down Expand Up @@ -1412,7 +1412,7 @@ func TestPDUSessionReleaseAbnormal(t *testing.T) {

sNssai := models.Snssai{
Sst: 1,
Sd: "010203",
Sd: "fedcba",
}
pdu = nasTestpacket.GetUlNasTransport_PduSessionEstablishmentRequest(10, nasMessage.ULNASTransportRequestTypeInitialRequest, "internet", &sNssai)
pdu, err = test.EncodeNasPduWithSecurity(ue, pdu, nas.SecurityHeaderTypeIntegrityProtectedAndCiphered, true, false)
Expand Down Expand Up @@ -1663,7 +1663,7 @@ func TestXnHandover(t *testing.T) {

sNssai := models.Snssai{
Sst: 1,
Sd: "010203",
Sd: "fedcba",
}
pdu = nasTestpacket.GetUlNasTransport_PduSessionEstablishmentRequest(10, nasMessage.ULNASTransportRequestTypeInitialRequest, "internet", &sNssai)
pdu, err = test.EncodeNasPduWithSecurity(ue, pdu, nas.SecurityHeaderTypeIntegrityProtectedAndCiphered, true, false)
Expand Down Expand Up @@ -1861,7 +1861,7 @@ func TestPaging(t *testing.T) {
// send PduSessionEstablishmentRequest Msg
sNssai := models.Snssai{
Sst: 1,
Sd: "010203",
Sd: "fedcba",
}
pdu = nasTestpacket.GetUlNasTransport_PduSessionEstablishmentRequest(10, nasMessage.ULNASTransportRequestTypeInitialRequest, "internet", &sNssai)
pdu, err = test.EncodeNasPduWithSecurity(ue, pdu, nas.SecurityHeaderTypeIntegrityProtectedAndCiphered, true, false)
Expand Down Expand Up @@ -2143,7 +2143,7 @@ func TestN2Handover(t *testing.T) {
// send PduSessionEstablishmentRequest Msg
sNssai := models.Snssai{
Sst: 1,
Sd: "010203",
Sd: "fedcba",
}
pdu = nasTestpacket.GetUlNasTransport_PduSessionEstablishmentRequest(10, nasMessage.ULNASTransportRequestTypeInitialRequest, "internet", &sNssai)
pdu, err = test.EncodeNasPduWithSecurity(ue, pdu, nas.SecurityHeaderTypeIntegrityProtectedAndCiphered, true, false)
Expand Down Expand Up @@ -2481,7 +2481,7 @@ func TestDuplicateRegistration(t *testing.T) {

sNssai := models.Snssai{
Sst: 1,
Sd: "010203",
Sd: "fedcba",
}
pdu = nasTestpacket.GetUlNasTransport_PduSessionEstablishmentRequest(10, nasMessage.ULNASTransportRequestTypeInitialRequest, "internet", &sNssai)
pdu, err = test.EncodeNasPduWithSecurity(ue, pdu, nas.SecurityHeaderTypeIntegrityProtectedAndCiphered, true, false)
Expand Down Expand Up @@ -2751,7 +2751,7 @@ func TestAFInfluenceOnTrafficRouting(t *testing.T) {
// send GetPduSessionEstablishmentRequest Msg

pdu = nasTestpacket.GetUlNasTransport_PduSessionEstablishmentRequest(10, nasMessage.ULNASTransportRequestTypeInitialRequest, "internet",
&models.Snssai{Sst: 1, Sd: "010203"})
&models.Snssai{Sst: 1, Sd: "fedcba"})
pdu, err = test.EncodeNasPduWithSecurity(ue, pdu, nas.SecurityHeaderTypeIntegrityProtectedAndCiphered, true, false)
assert.Nil(t, err)
sendMsg, err = test.GetUplinkNASTransport(ue.AmfUeNgapId, ue.RanUeNgapId, pdu)
Expand Down Expand Up @@ -3037,7 +3037,7 @@ func TestReSynchronization(t *testing.T) {

sNssai := models.Snssai{
Sst: 1,
Sd: "010203",
Sd: "fedcba",
}
pdu = nasTestpacket.GetUlNasTransport_PduSessionEstablishmentRequest(10, nasMessage.ULNASTransportRequestTypeInitialRequest, "internet", &sNssai)
pdu, err = test.EncodeNasPduWithSecurity(ue, pdu, nas.SecurityHeaderTypeIntegrityProtectedAndCiphered, true, false)
Expand Down Expand Up @@ -3276,7 +3276,7 @@ func TestRequestTwoPDUSessions(t *testing.T) {

sNssai := models.Snssai{
Sst: 1,
Sd: "010203",
Sd: "fedcba",
}
pdu = nasTestpacket.GetUlNasTransport_PduSessionEstablishmentRequest(10, nasMessage.ULNASTransportRequestTypeInitialRequest, "internet", &sNssai)
pdu, err = test.EncodeNasPduWithSecurity(ue, pdu, nas.SecurityHeaderTypeIntegrityProtectedAndCiphered, true, false)
Expand Down Expand Up @@ -3612,7 +3612,7 @@ func TestEAPAKAPrimeAuthentication(t *testing.T) {

sNssai := models.Snssai{
Sst: 1,
Sd: "010203",
Sd: "fedcba",
}
pdu = nasTestpacket.GetUlNasTransport_PduSessionEstablishmentRequest(10, nasMessage.ULNASTransportRequestTypeInitialRequest, "internet", &sNssai)
pdu, err = test.EncodeNasPduWithSecurity(ue, pdu, nas.SecurityHeaderTypeIntegrityProtectedAndCiphered, true, false)
Expand Down

0 comments on commit 6f2972e

Please sign in to comment.