mirror of
https://github.com/alibaba/higress.git
synced 2026-05-21 19:27:28 +08:00
feat: add e2e test for envoy filter (#710)
This commit is contained in:
@@ -31,6 +31,9 @@ const (
|
||||
EurekaConformanceFeature SupportedFeature = "eureka"
|
||||
ConsulConformanceFeature SupportedFeature = "consul"
|
||||
NacosConformanceFeature SupportedFeature = "nacos"
|
||||
|
||||
// extended: envoy config
|
||||
EnvoyConfigConformanceFeature SupportedFeature = "envoy-config"
|
||||
)
|
||||
|
||||
var AllFeatures = sets.Set{}.
|
||||
@@ -38,7 +41,8 @@ var AllFeatures = sets.Set{}.
|
||||
Insert(string(DubboConformanceFeature)).
|
||||
Insert(string(EurekaConformanceFeature)).
|
||||
Insert(string(ConsulConformanceFeature)).
|
||||
Insert(string(NacosConformanceFeature))
|
||||
Insert(string(NacosConformanceFeature)).
|
||||
Insert(string(EnvoyConfigConformanceFeature))
|
||||
|
||||
var ExperimentFeatures = sets.Set{}.
|
||||
Insert(string(WASMGoConformanceFeature)).
|
||||
|
||||
@@ -60,6 +60,9 @@ type Options struct {
|
||||
// resources such as Gateways should be cleaned up after the run.
|
||||
CleanupBaseResources bool
|
||||
TimeoutConfig config.TimeoutConfig
|
||||
|
||||
// IsEnvoyConfigTest indicates whether or not the test is for envoy config
|
||||
IsEnvoyConfigTest bool
|
||||
}
|
||||
|
||||
type WASMOptions struct {
|
||||
@@ -87,6 +90,8 @@ func New(s Options) *ConformanceTestSuite {
|
||||
} else {
|
||||
s.SupportedFeatures.Insert(string(WASMGoConformanceFeature))
|
||||
}
|
||||
} else if s.IsEnvoyConfigTest {
|
||||
s.SupportedFeatures.Insert(string(EnvoyConfigConformanceFeature))
|
||||
} else if s.EnableAllSupportedFeatures {
|
||||
s.SupportedFeatures = AllFeatures
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user