mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 12:47:28 +08:00
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:
@@ -18,8 +18,8 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/gogo/protobuf/proto"
|
||||
"github.com/gogo/protobuf/types"
|
||||
"github.com/golang/protobuf/ptypes/duration"
|
||||
"github.com/golang/protobuf/ptypes/wrappers"
|
||||
networking "istio.io/api/networking/v1alpha3"
|
||||
)
|
||||
|
||||
@@ -216,10 +216,10 @@ func TestCorsApplyRoute(t *testing.T) {
|
||||
AllowMethods: []string{"GET", "POST"},
|
||||
AllowHeaders: []string{"test", "unique"},
|
||||
ExposeHeaders: []string{"hello", "bye"},
|
||||
AllowCredentials: &types.BoolValue{
|
||||
AllowCredentials: &wrappers.BoolValue{
|
||||
Value: true,
|
||||
},
|
||||
MaxAge: &types.Duration{
|
||||
MaxAge: &duration.Duration{
|
||||
Seconds: defaultMaxAge,
|
||||
},
|
||||
},
|
||||
@@ -260,10 +260,10 @@ func TestCorsApplyRoute(t *testing.T) {
|
||||
AllowMethods: []string{"GET", "POST"},
|
||||
AllowHeaders: []string{"test", "unique"},
|
||||
ExposeHeaders: []string{"hello", "bye"},
|
||||
AllowCredentials: &types.BoolValue{
|
||||
AllowCredentials: &wrappers.BoolValue{
|
||||
Value: true,
|
||||
},
|
||||
MaxAge: &types.Duration{
|
||||
MaxAge: &duration.Duration{
|
||||
Seconds: defaultMaxAge,
|
||||
},
|
||||
},
|
||||
@@ -274,7 +274,7 @@ func TestCorsApplyRoute(t *testing.T) {
|
||||
for _, testCase := range testCases {
|
||||
t.Run("", func(t *testing.T) {
|
||||
cors.ApplyRoute(testCase.route, testCase.config)
|
||||
if !proto.Equal(testCase.route, testCase.expect) {
|
||||
if !reflect.DeepEqual(testCase.route, testCase.expect) {
|
||||
t.Fatal("Must be equal.")
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user