mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-31 23:36:12 +00:00
Merge pull request #9844 from microsoft/danmihai1/k8s-policy-pvc
tests: fix yq command line in k8s-policy-pvc
This commit is contained in:
commit
824287d64a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user