mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-15 17:51:20 +00:00
6d0ad5598e
* return err, if variable path could not be resolved Signed-off-by: Max Goncharenko <kacejot@fex.net> * fixed {{@}} behavior Signed-off-by: Max Goncharenko <kacejot@fex.net> * fix json merge logic Signed-off-by: Max Goncharenko <kacejot@fex.net> * add e2e tests for Flux use case Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>
17 lines
449 B
Go
17 lines
449 B
Go
package validate
|
|
|
|
// ValidateTests is E2E Test Config for validation
|
|
var ValidateTests = []struct {
|
|
//TestName - Name of the Test
|
|
TestName string
|
|
// Data - The Yaml file of the ClusterPolicy
|
|
Data []byte
|
|
// ResourceNamespace - Namespace of the Resource
|
|
ResourceNamespace string
|
|
}{
|
|
{
|
|
TestName: "test-validate-with-flux-and-variable-substitution",
|
|
Data: kyverno_2043_policy,
|
|
ResourceNamespace: "test-validate",
|
|
},
|
|
}
|