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
commit 824287d64a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
}