Skip to content

Commit

Permalink
[test] Has the correct TargetRef
Browse files Browse the repository at this point in the history
  • Loading branch information
didierofrivia committed May 13, 2024
1 parent e6d700d commit 5f72dcf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/rate_limiting_wasmplugin_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ var _ = Describe("Rate Limiting WasmPlugin controller", Ordered, func() {
err = k8sClient.Get(ctx, wasmPluginKey, existingWasmPlugin)
// must exist
Expect(err).ToNot(HaveOccurred())
// has the correct target ref
Expect(existingWasmPlugin.Spec.TargetRef.Group).To(Equal("gateway.networking.k8s.io"))
Expect(existingWasmPlugin.Spec.TargetRef.Kind).To(Equal("Gateway"))
Expect(existingWasmPlugin.Spec.TargetRef.Name).To(Equal(gateway.Name))
existingWASMConfig, err := rlptools.WASMPluginFromStruct(existingWasmPlugin.Spec.PluginConfig)
Expect(err).ToNot(HaveOccurred())
Expect(existingWASMConfig).To(Equal(&wasm.Plugin{
Expand Down

0 comments on commit 5f72dcf

Please sign in to comment.