summaryrefslogtreecommitdiffstats
path: root/test/schemas/negative_test/playbooks/gather_facts.yml.md
diff options
context:
space:
mode:
Diffstat (limited to 'test/schemas/negative_test/playbooks/gather_facts.yml.md')
-rw-r--r--test/schemas/negative_test/playbooks/gather_facts.yml.md34
1 files changed, 33 insertions, 1 deletions
diff --git a/test/schemas/negative_test/playbooks/gather_facts.yml.md b/test/schemas/negative_test/playbooks/gather_facts.yml.md
index 0eb3a4b..6b8d90a 100644
--- a/test/schemas/negative_test/playbooks/gather_facts.yml.md
+++ b/test/schemas/negative_test/playbooks/gather_facts.yml.md
@@ -63,7 +63,25 @@
"params": {
"type": "boolean"
},
- "schemaPath": "#/properties/gather_facts/type"
+ "schemaPath": "#/oneOf/0/type"
+ },
+ {
+ "instancePath": "/0/gather_facts",
+ "keyword": "pattern",
+ "message": "must match pattern \"^\\{[\\{%](.|[\r\n])*[\\}%]\\}$\"",
+ "params": {
+ "pattern": "^\\{[\\{%](.|[\r\n])*[\\}%]\\}$"
+ },
+ "schemaPath": "#/$defs/full-jinja/pattern"
+ },
+ {
+ "instancePath": "/0/gather_facts",
+ "keyword": "oneOf",
+ "message": "must match exactly one schema in oneOf",
+ "params": {
+ "passingSchemas": null
+ },
+ "schemaPath": "#/oneOf"
},
{
"instancePath": "/0",
@@ -84,6 +102,7 @@ stdout:
```json
{
"status": "fail",
+ "successes": [],
"errors": [
{
"filename": "negative_test/playbooks/gather_facts.yml",
@@ -94,6 +113,11 @@ stdout:
"path": "$[0]",
"message": "'gather_facts', 'hosts', 'tasks' do not match any of the regexes: '^(ansible\\\\.builtin\\\\.)?import_playbook$', 'name', 'tags', 'vars', 'when'"
},
+ "best_deep_match": {
+ "path": "$[0].gather_facts",
+ "message": "'non' is not of type 'boolean'"
+ },
+ "num_sub_errors": 6,
"sub_errors": [
{
"path": "$[0]",
@@ -113,7 +137,15 @@ stdout:
},
{
"path": "$[0].gather_facts",
+ "message": "'non' is not valid under any of the given schemas"
+ },
+ {
+ "path": "$[0].gather_facts",
"message": "'non' is not of type 'boolean'"
+ },
+ {
+ "path": "$[0].gather_facts",
+ "message": "'non' does not match '^\\\\{[\\\\{%](.|[\\r\\n])*[\\\\}%]\\\\}$'"
}
]
}