Skip to content

Commit

Permalink
chore(MeshFaultInjection): add envoy config e2e test (#12725)
Browse files Browse the repository at this point in the history
## Motivation

We need to add more e2e tests before we implement rules api for
MeshFaultIjection

<!--
> 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 5b01851 commit 149a12a
Show file tree
Hide file tree
Showing 4 changed files with 1,031 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"
meshfaultinjection "github.com/kumahq/kuma/pkg/plugins/policies/meshfaultinjection/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"
Expand Down Expand Up @@ -68,6 +69,7 @@ func EnvoyConfigTest() {
meshName,
meshtimeout.MeshTimeoutResourceTypeDescriptor,
meshaccesslog.MeshAccessLogResourceTypeDescriptor,
meshfaultinjection.MeshFaultInjectionResourceTypeDescriptor,
meshratelimit.MeshRateLimitResourceTypeDescriptor,
)).To(Succeed())
})
Expand Down Expand Up @@ -110,6 +112,7 @@ func EnvoyConfigTest() {
},
test.EntriesForFolder("meshtimeout", "envoyconfig"),
test.EntriesForFolder("meshaccesslog", "envoyconfig"),
test.EntriesForFolder("meshfaultinjection", "envoyconfig"),
test.EntriesForFolder("meshratelimit", "envoyconfig"),
)
}
Expand Down
Loading

0 comments on commit 149a12a

Please sign in to comment.