Skip to content

Commit

Permalink
tests: fix integration tests - Istio WasmPlugin config with correct l…
Browse files Browse the repository at this point in the history
…imit IDs and scopes

Signed-off-by: Guilherme Cassolato <[email protected]>
  • Loading branch information
guicassolato committed Oct 18, 2024
1 parent 3f6871b commit f7f57ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/istio/extension_reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f7f57ac

Please sign in to comment.