diff --git a/internal/sbi/consumer/nf_management.go b/internal/sbi/consumer/nf_management.go index 1274e46..f6d4bdf 100644 --- a/internal/sbi/consumer/nf_management.go +++ b/internal/sbi/consumer/nf_management.go @@ -93,7 +93,7 @@ func SendDeregisterNFInstance() (*models.ProblemDetails, error) { var err error - ctx, pd, err := nssf_context.GetSelf().GetTokenCtx("nnrf-nfm", models.NfType_NRF) + ctx, pd, err := nssf_context.GetSelf().GetTokenCtx(models.ServiceName_NNRF_NFM, models.NfType_NRF) if err != nil { return pd, err } diff --git a/internal/util/router_auth_check_test.go b/internal/util/router_auth_check_test.go index 1d684a7..0d6ec07 100644 --- a/internal/util/router_auth_check_test.go +++ b/internal/util/router_auth_check_test.go @@ -5,9 +5,10 @@ import ( "net/http/httptest" "testing" - "github.com/free5gc/openapi/models" "github.com/gin-gonic/gin" "github.com/pkg/errors" + + "github.com/free5gc/openapi/models" ) const (