upgrade to istio 1.19 (#1211)

Co-authored-by: CH3CHO <ch3cho@qq.com>
Co-authored-by: rinfx <893383980@qq.com>
This commit is contained in:
澄潭
2024-08-26 09:51:47 +08:00
committed by GitHub
parent a2c2d1d521
commit f7a419770d
401 changed files with 21171 additions and 7255 deletions

View File

@@ -19,6 +19,7 @@ import (
"testing"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
networking "istio.io/api/networking/v1alpha3"
)
@@ -401,10 +402,16 @@ func TestMatch_ApplyRoute(t *testing.T) {
},
}
unexportedIgnoredTypes := []interface{}{
networking.HTTPRoute{},
networking.HTTPMatchRequest{},
networking.StringMatch{},
}
for _, tt := range testCases {
t.Run("", func(t *testing.T) {
handler.ApplyRoute(tt.input, tt.config)
if diff := cmp.Diff(tt.expect, tt.input); diff != "" {
if diff := cmp.Diff(tt.expect, tt.input, cmpopts.IgnoreUnexported(unexportedIgnoredTypes...)); diff != "" {
t.Fatalf("TestMatch_Parse() mismatch (-want +got):\n%s", diff)
}
})