From 56f9e23710b998032f2db150680a83725e023694 Mon Sep 17 00:00:00 2001 From: Dan Mihai Date: Thu, 13 Jun 2024 16:05:01 +0000 Subject: [PATCH] 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 --- tests/integration/kubernetes/k8s-policy-pvc.bats | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/integration/kubernetes/k8s-policy-pvc.bats b/tests/integration/kubernetes/k8s-policy-pvc.bats index 7495e6efbf..129de00908 100644 --- a/tests/integration/kubernetes/k8s-policy-pvc.bats +++ b/tests/integration/kubernetes/k8s-policy-pvc.bats @@ -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 }