Skip to content

Commit

Permalink
chore(e2e): add envoy config e2e tests for MeshRateLimit (kumahq#12712)
Browse files Browse the repository at this point in the history
## Motivation

We need more tests before we add rules api for MeshRateLimit

<!--
> Changelog: skip
-->
<!--
Uncomment the above section to explicitly set a [`> Changelog:` entry
here](https://github.com/kumahq/kuma/blob/master/CONTRIBUTING.md#submitting-a-patch)?
-->

---------

Signed-off-by: Marcin Skalski <[email protected]>
  • Loading branch information
Automaat authored Jan 31, 2025
1 parent ddabd09 commit 655a651
Show file tree
Hide file tree
Showing 4 changed files with 1,022 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/e2e_env/universal/envoyconfig/envoyconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/kumahq/kuma/api/openapi/types"
api_common "github.com/kumahq/kuma/api/openapi/types/common"
meshaccesslog "github.com/kumahq/kuma/pkg/plugins/policies/meshaccesslog/api/v1alpha1"
meshratelimit "github.com/kumahq/kuma/pkg/plugins/policies/meshratelimit/api/v1alpha1"
meshtimeout "github.com/kumahq/kuma/pkg/plugins/policies/meshtimeout/api/v1alpha1"
"github.com/kumahq/kuma/pkg/test"
"github.com/kumahq/kuma/pkg/test/matchers"
Expand Down Expand Up @@ -67,6 +68,7 @@ func EnvoyConfigTest() {
meshName,
meshtimeout.MeshTimeoutResourceTypeDescriptor,
meshaccesslog.MeshAccessLogResourceTypeDescriptor,
meshratelimit.MeshRateLimitResourceTypeDescriptor,
)).To(Succeed())
})

Expand Down Expand Up @@ -108,6 +110,7 @@ func EnvoyConfigTest() {
},
test.EntriesForFolder("meshtimeout", "envoyconfig"),
test.EntriesForFolder("meshaccesslog", "envoyconfig"),
test.EntriesForFolder("meshratelimit", "envoyconfig"),
)
}

Expand Down
Loading

0 comments on commit 655a651

Please sign in to comment.