Merge pull request #9844 from microsoft/danmihai1/k8s-policy-pvc

tests: fix yq command line in k8s-policy-pvc
This commit is contained in:
Dan Mihai
2024-06-13 15:07:15 -07:00
committed by GitHub

View File

@@ -45,10 +45,9 @@ test_pod_policy_error() {
@test "Policy failure: unexpected device mount" {
# Changing the location of a mounted device after policy generation should fail the policy check.
yq write -i \
yq -i \
'.spec.containers[0].volumeDevices.[0].devicePath = "/dev/unexpected"' \
"${incorrect_pod_yaml}" \
"spec.containers[0].volumeDevices.[0].devicePath" \
"/dev/unexpected"
test_pod_policy_error
}