Skip to content

Commit

Permalink
add minor test case to envoy filter sort (istio#36242)
Browse files Browse the repository at this point in the history
Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
  • Loading branch information
ramaraochavali committed Nov 26, 2021
1 parent cd903e0 commit 558b091
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion pilot/pkg/model/push_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,24 @@ func TestEnvoyFilterOrder(t *testing.T) {
},
},
},
{
Meta: config.Meta{Name: "super-high-priority", Namespace: "testns", GroupVersionKind: gvk.EnvoyFilter},
Spec: &networking.EnvoyFilter{
Priority: -10,
ConfigPatches: []*networking.EnvoyFilter_EnvoyConfigObjectPatch{
{
Patch: &networking.EnvoyFilter_Patch{},
Match: &networking.EnvoyFilter_EnvoyConfigObjectMatch{
Proxy: &networking.EnvoyFilter_ProxyMatch{ProxyVersion: `foobar`},
},
},
},
},
},
}

expectedns := []string{
"testns/high-priority", "testns/default-priority", "testns/a-medium-priority",
"testns/super-high-priority", "testns/high-priority", "testns/default-priority", "testns/a-medium-priority",
"testns/b-medium-priority", "testns/b-low-priority", "testns/a-low-priority",
}

Expand Down

0 comments on commit 558b091

Please sign in to comment.