Skip to content

Commit

Permalink
e2e: modify GTPU proxy test to verify a session w/o PFCP_CLASSIFY
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan4th authored and sergeymatov committed Dec 6, 2022
1 parent 84d90b8 commit 8359486
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/e2e/framework/sessionconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ type SessionConfig struct {
NatPoolName string
IMSI string
IPFIXTemplate string
SkipSDFFilter bool
}

const (
Expand Down Expand Up @@ -232,7 +233,7 @@ func (cfg SessionConfig) forwardPDR(pdrID uint16, farID, urrID, precedence uint3
panic("bad UPGMode")
}

if appID == "" {
if appID == "" && !cfg.SkipSDFFilter {
if sdfFilter == "" {
sdfFilter = "permit out ip from any to assigned"
}
Expand Down Expand Up @@ -274,7 +275,7 @@ func (cfg SessionConfig) reversePDR(pdrID uint16, farID, urrID, precedence uint3
ie.NewSourceInterface(ie.SrcInterfaceCore))
}

if appID == "" {
if appID == "" && !cfg.SkipSDFFilter {
if sdfFilter == "" {
sdfFilter = "permit out ip from any to assigned"
}
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/upg_e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -1642,6 +1642,9 @@ func describeGTPProxy(title string, ipMode framework.UPGIPMode) {
ProxyCoreTEID: framework.ProxyCoreTEID,
ProxyAccessIP: f.VPPCfg.GetVPPAddress("access").IP,
ProxyCoreIP: f.VPPCfg.GetVPPAddress("core").IP,
// Make sure PFCP_CLASSIFY is not set for the session.
// That's an important edge case
SkipSDFFilter: true,
}
var err error
seid, err = f.PFCP.EstablishSession(f.Context, 0, cfg.SessionIEs()...)
Expand Down

0 comments on commit 8359486

Please sign in to comment.