From b557e7cbf93679afc4fffa1438fc33a4e41ec3ee Mon Sep 17 00:00:00 2001 From: Yann Hamon Date: Sun, 22 Jan 2023 18:49:36 +0100 Subject: [PATCH] fix tests --- acceptance.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acceptance.bats b/acceptance.bats index a8525ad..08f4e9b 100755 --- a/acceptance.bats +++ b/acceptance.bats @@ -287,14 +287,14 @@ resetCacheFolder() { @test "Fail when parsing a List that contains an invalid resource" { run bin/kubeconform -summary fixtures/list_invalid.yaml [ "$status" -eq 1 ] - [ "${lines[0]}" == 'fixtures/list_invalid.yaml - ReplicationController bob is invalid: For field spec.replicas: Invalid type. Expected: [integer,null], given: string' ] + [ "${lines[0]}" == 'fixtures/list_invalid.yaml - ReplicationController bob is invalid: problem validating schema. Check JSON formatting: jsonschema: '\''/spec/replicas'\'' does not validate with https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master-standalone/replicationcontroller-v1.json#/properties/spec/properties/replicas/type: expected integer or null, but got string' ] [ "${lines[1]}" == 'Summary: 2 resources found in 1 file - Valid: 1, Invalid: 1, Errors: 0, Skipped: 0' ] } @test "Fail when parsing a List that contains an invalid resource from stdin" { run bash -c "cat fixtures/list_invalid.yaml | bin/kubeconform -summary -" [ "$status" -eq 1 ] - [ "${lines[0]}" == 'stdin - ReplicationController bob is invalid: For field spec.replicas: Invalid type. Expected: [integer,null], given: string' ] + [ "${lines[0]}" == 'stdin - ReplicationController bob is invalid: problem validating schema. Check JSON formatting: jsonschema: '\''/spec/replicas'\'' does not validate with https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/master-standalone/replicationcontroller-v1.json#/properties/spec/properties/replicas/type: expected integer or null, but got string' ] [ "${lines[1]}" == 'Summary: 2 resources found parsing stdin - Valid: 1, Invalid: 1, Errors: 0, Skipped: 0' ] }