From 660e240eb7f553c893e2a31f21dd9798f80f3195 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sun, 13 Mar 2022 20:38:12 +0000 Subject: [PATCH] Add some more garbage fields and tpyoes --- unittest/error-schema-field2.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/unittest/error-schema-field2.yaml b/unittest/error-schema-field2.yaml index 13fb41d..391ebf0 100644 --- a/unittest/error-schema-field2.yaml +++ b/unittest/error-schema-field2.yaml @@ -3,7 +3,8 @@ test: errors: expected: - "yamale: .* is not a " - count: 9 + - "yamale: .*: Unexpected element" + count: 11 --- interfaces: GigabitEthernet1/0/0: @@ -16,3 +17,9 @@ interfaces: description: [ "a", "list" ] encapsulation: dot1q: "hello world" +garbage: + description: "There's no 'garbage' scope" + +loopback: + loop0: + description: "The toplevel scope is 'loopbacks' plural"