mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-18 15:28:10 +00:00
tests: fix yq command line in k8s-policy-pvc
Fix the collision between: - https://github.com/kata-containers/kata-containers/pull/9377 - https://github.com/kata-containers/kata-containers/pull/9706 One enabled a newer yq command line format and the other used the older format. Both passed CI because they were not tested together. Signed-off-by: Dan Mihai <dmihai@microsoft.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user