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 }