From f7f57ac29de95aebfe92d9661de469ad8f81a799 Mon Sep 17 00:00:00 2001 From: Guilherme Cassolato Date: Fri, 18 Oct 2024 16:35:23 +0200 Subject: [PATCH] tests: fix integration tests - Istio WasmPlugin config with correct limit IDs and scopes Signed-off-by: Guilherme Cassolato --- tests/istio/extension_reconciler_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/istio/extension_reconciler_test.go b/tests/istio/extension_reconciler_test.go index 9248382d9..46cbe8a8c 100644 --- a/tests/istio/extension_reconciler_test.go +++ b/tests/istio/extension_reconciler_test.go @@ -1629,7 +1629,7 @@ var _ = Describe("Rate Limiting WasmPlugin controller", func() { Actions: []wasm.Action{ { ServiceName: wasm.RateLimitServiceName, - Scope: controllers.LimitsNamespaceFromRoute(httpRouteA), + Scope: controllers.LimitsNamespaceFromRoute(httpRouteB), Data: []wasm.DataType{ { Value: &wasm.Static{ @@ -2621,7 +2621,7 @@ var _ = Describe("Rate Limiting WasmPlugin controller", func() { g.Expect(testClient().Get(ctx, wasmPluginKey, existingWasmPlugin)).To(Succeed()) existingWASMConfig, err = wasm.ConfigFromStruct(existingWasmPlugin.Spec.PluginConfig) g.Expect(err).ToNot(HaveOccurred()) - g.Expect(existingWASMConfig).To(Equal(expectedWasmPluginConfig(httpRoute, controllers.LimitNameToLimitadorIdentifier(routeRLPKey, "gateway"), "*.example.com"))) + g.Expect(existingWASMConfig).To(Equal(expectedWasmPluginConfig(httpRoute, controllers.LimitNameToLimitadorIdentifier(gwRLPKey, "gateway"), "*.example.com"))) }).WithContext(ctx).Should(Succeed()) }, testTimeOut)