tests: k8s-policy-pod.bats: test unspecified initdata path

use auto_generate_policy_no_added_flags, so we don't pass --initdata-path to genpolicy

Signed-off-by: Saul Paredes <saulparedes@microsoft.com>
This commit is contained in:
Saul Paredes
2025-10-10 14:52:45 -07:00
parent 395f237fc2
commit ba7a5953c8

View File

@@ -47,7 +47,7 @@ setup() {
cp "${correct_pod_yaml}" "${pre_generate_pod_yaml}" cp "${correct_pod_yaml}" "${pre_generate_pod_yaml}"
# Add policy to the correct pod yaml file # Add policy to the correct pod yaml file
auto_generate_policy "${policy_settings_dir}" "${correct_pod_yaml}" "${correct_configmap_yaml}" auto_generate_policy_no_added_flags "${policy_settings_dir}" "${correct_pod_yaml}" "${correct_configmap_yaml}"
fi fi
# Start each test case with a copy of the correct yaml files. # Start each test case with a copy of the correct yaml files.