From 7fd2d1a5a3820bce4d59885fa0e7e963c9e271de Mon Sep 17 00:00:00 2001 From: Mariam Fahmy Date: Fri, 28 Jul 2023 11:02:50 +0300 Subject: [PATCH] fix: rename vap to its full name (#7929) Signed-off-by: Mariam Fahmy --- .../kubectl-kyverno/apply/apply_command_test.go | 16 ++++++++-------- .../check-deployments-replica/deployment1.yaml | 0 .../check-deployments-replica/deployment2.yaml | 0 .../check-deployments-replica/policy.yaml | 0 .../disallow-host-path/pod1.yaml | 0 .../disallow-host-path/pod2.yaml | 0 .../disallow-host-path/policy.yaml | 0 7 files changed, 8 insertions(+), 8 deletions(-) rename test/cli/{test-vap => test-validating-admission-policy}/check-deployments-replica/deployment1.yaml (100%) rename test/cli/{test-vap => test-validating-admission-policy}/check-deployments-replica/deployment2.yaml (100%) rename test/cli/{test-vap => test-validating-admission-policy}/check-deployments-replica/policy.yaml (100%) rename test/cli/{test-vap => test-validating-admission-policy}/disallow-host-path/pod1.yaml (100%) rename test/cli/{test-vap => test-validating-admission-policy}/disallow-host-path/pod2.yaml (100%) rename test/cli/{test-vap => test-validating-admission-policy}/disallow-host-path/policy.yaml (100%) diff --git a/cmd/cli/kubectl-kyverno/apply/apply_command_test.go b/cmd/cli/kubectl-kyverno/apply/apply_command_test.go index b5e4652b8d..d2f9bdb10e 100644 --- a/cmd/cli/kubectl-kyverno/apply/apply_command_test.go +++ b/cmd/cli/kubectl-kyverno/apply/apply_command_test.go @@ -176,8 +176,8 @@ func Test_Apply(t *testing.T) { }, { config: ApplyCommandConfig{ - PolicyPaths: []string{"../../../../test/cli/test-vap/check-deployments-replica/policy.yaml"}, - ResourcePaths: []string{"../../../../test/cli/test-vap/check-deployments-replica/deployment1.yaml"}, + PolicyPaths: []string{"../../../../test/cli/test-validating-admission-policy/check-deployments-replica/policy.yaml"}, + ResourcePaths: []string{"../../../../test/cli/test-validating-admission-policy/check-deployments-replica/deployment1.yaml"}, PolicyReport: true, }, expectedPolicyReports: []preport.PolicyReport{ @@ -194,8 +194,8 @@ func Test_Apply(t *testing.T) { }, { config: ApplyCommandConfig{ - PolicyPaths: []string{"../../../../test/cli/test-vap/check-deployments-replica/policy.yaml"}, - ResourcePaths: []string{"../../../../test/cli/test-vap/check-deployments-replica/deployment2.yaml"}, + PolicyPaths: []string{"../../../../test/cli/test-validating-admission-policy/check-deployments-replica/policy.yaml"}, + ResourcePaths: []string{"../../../../test/cli/test-validating-admission-policy/check-deployments-replica/deployment2.yaml"}, PolicyReport: true, }, expectedPolicyReports: []preport.PolicyReport{ @@ -212,8 +212,8 @@ func Test_Apply(t *testing.T) { }, { config: ApplyCommandConfig{ - PolicyPaths: []string{"../../../../test/cli/test-vap/disallow-host-path/policy.yaml"}, - ResourcePaths: []string{"../../../../test/cli/test-vap/disallow-host-path/pod1.yaml"}, + PolicyPaths: []string{"../../../../test/cli/test-validating-admission-policy/disallow-host-path/policy.yaml"}, + ResourcePaths: []string{"../../../../test/cli/test-validating-admission-policy/disallow-host-path/pod1.yaml"}, PolicyReport: true, }, expectedPolicyReports: []preport.PolicyReport{ @@ -230,8 +230,8 @@ func Test_Apply(t *testing.T) { }, { config: ApplyCommandConfig{ - PolicyPaths: []string{"../../../../test/cli/test-vap/disallow-host-path/policy.yaml"}, - ResourcePaths: []string{"../../../../test/cli/test-vap/disallow-host-path/pod2.yaml"}, + PolicyPaths: []string{"../../../../test/cli/test-validating-admission-policy/disallow-host-path/policy.yaml"}, + ResourcePaths: []string{"../../../../test/cli/test-validating-admission-policy/disallow-host-path/pod2.yaml"}, PolicyReport: true, }, expectedPolicyReports: []preport.PolicyReport{ diff --git a/test/cli/test-vap/check-deployments-replica/deployment1.yaml b/test/cli/test-validating-admission-policy/check-deployments-replica/deployment1.yaml similarity index 100% rename from test/cli/test-vap/check-deployments-replica/deployment1.yaml rename to test/cli/test-validating-admission-policy/check-deployments-replica/deployment1.yaml diff --git a/test/cli/test-vap/check-deployments-replica/deployment2.yaml b/test/cli/test-validating-admission-policy/check-deployments-replica/deployment2.yaml similarity index 100% rename from test/cli/test-vap/check-deployments-replica/deployment2.yaml rename to test/cli/test-validating-admission-policy/check-deployments-replica/deployment2.yaml diff --git a/test/cli/test-vap/check-deployments-replica/policy.yaml b/test/cli/test-validating-admission-policy/check-deployments-replica/policy.yaml similarity index 100% rename from test/cli/test-vap/check-deployments-replica/policy.yaml rename to test/cli/test-validating-admission-policy/check-deployments-replica/policy.yaml diff --git a/test/cli/test-vap/disallow-host-path/pod1.yaml b/test/cli/test-validating-admission-policy/disallow-host-path/pod1.yaml similarity index 100% rename from test/cli/test-vap/disallow-host-path/pod1.yaml rename to test/cli/test-validating-admission-policy/disallow-host-path/pod1.yaml diff --git a/test/cli/test-vap/disallow-host-path/pod2.yaml b/test/cli/test-validating-admission-policy/disallow-host-path/pod2.yaml similarity index 100% rename from test/cli/test-vap/disallow-host-path/pod2.yaml rename to test/cli/test-validating-admission-policy/disallow-host-path/pod2.yaml diff --git a/test/cli/test-vap/disallow-host-path/policy.yaml b/test/cli/test-validating-admission-policy/disallow-host-path/policy.yaml similarity index 100% rename from test/cli/test-vap/disallow-host-path/policy.yaml rename to test/cli/test-validating-admission-policy/disallow-host-path/policy.yaml