summaryrefslogtreecommitdiffstats
path: root/test/schemas/negative_test/playbooks/tasks
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 06:24:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 06:24:58 +0000
commitba233a0cbad76b4783a03893e7bf4716fbc0f0ec (patch)
treead369728c1edbe3631c8150585659078ae5d7d0b /test/schemas/negative_test/playbooks/tasks
parentReleasing progress-linux version 6.17.2-3~progress7.99u1. (diff)
downloadansible-lint-ba233a0cbad76b4783a03893e7bf4716fbc0f0ec.tar.xz
ansible-lint-ba233a0cbad76b4783a03893e7bf4716fbc0f0ec.zip
Merging upstream version 24.6.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/schemas/negative_test/playbooks/tasks')
-rw-r--r--test/schemas/negative_test/playbooks/tasks/args_integer.yml.md6
-rw-r--r--test/schemas/negative_test/playbooks/tasks/args_string.yml.md6
-rw-r--r--test/schemas/negative_test/playbooks/tasks/become_method_invalid.yml.md6
-rw-r--r--test/schemas/negative_test/playbooks/tasks/ignore_errors.yml.md6
-rw-r--r--test/schemas/negative_test/playbooks/tasks/invalid_block.yml.md6
-rw-r--r--test/schemas/negative_test/playbooks/tasks/local_action.yml.md6
-rw-r--r--test/schemas/negative_test/playbooks/tasks/loop.yml.md6
-rw-r--r--test/schemas/negative_test/playbooks/tasks/loop2.yml.md6
-rw-r--r--test/schemas/negative_test/playbooks/tasks/no_log_number.yml.md6
-rw-r--r--test/schemas/negative_test/playbooks/tasks/no_log_string.yml.md6
-rw-r--r--test/schemas/negative_test/playbooks/tasks/tags-mapping.yml.md6
-rw-r--r--test/schemas/negative_test/playbooks/tasks/tags-string.yml.md6
-rw-r--r--test/schemas/negative_test/playbooks/tasks/when_integer.yml.md6
-rw-r--r--test/schemas/negative_test/playbooks/tasks/when_object.yml.md6
-rw-r--r--test/schemas/negative_test/playbooks/tasks/with_items_boolean.yml.md6
-rw-r--r--test/schemas/negative_test/playbooks/tasks/with_items_untemplated_string.yml.md6
16 files changed, 96 insertions, 0 deletions
diff --git a/test/schemas/negative_test/playbooks/tasks/args_integer.yml.md b/test/schemas/negative_test/playbooks/tasks/args_integer.yml.md
index 8820251..25000f8 100644
--- a/test/schemas/negative_test/playbooks/tasks/args_integer.yml.md
+++ b/test/schemas/negative_test/playbooks/tasks/args_integer.yml.md
@@ -64,6 +64,7 @@ stdout:
```json
{
"status": "fail",
+ "successes": [],
"errors": [
{
"filename": "negative_test/playbooks/tasks/args_integer.yml",
@@ -74,6 +75,11 @@ stdout:
"path": "$[0]",
"message": "'block' is a required property"
},
+ "best_deep_match": {
+ "path": "$[0].args",
+ "message": "123 is not of type 'object'"
+ },
+ "num_sub_errors": 3,
"sub_errors": [
{
"path": "$[0]",
diff --git a/test/schemas/negative_test/playbooks/tasks/args_string.yml.md b/test/schemas/negative_test/playbooks/tasks/args_string.yml.md
index 6359a14..b1bf502 100644
--- a/test/schemas/negative_test/playbooks/tasks/args_string.yml.md
+++ b/test/schemas/negative_test/playbooks/tasks/args_string.yml.md
@@ -55,6 +55,7 @@ stdout:
```json
{
"status": "fail",
+ "successes": [],
"errors": [
{
"filename": "negative_test/playbooks/tasks/args_string.yml",
@@ -65,6 +66,11 @@ stdout:
"path": "$[0]",
"message": "'block' is a required property"
},
+ "best_deep_match": {
+ "path": "$[0].args",
+ "message": "'{{ }}123' is not of type 'object'"
+ },
+ "num_sub_errors": 3,
"sub_errors": [
{
"path": "$[0]",
diff --git a/test/schemas/negative_test/playbooks/tasks/become_method_invalid.yml.md b/test/schemas/negative_test/playbooks/tasks/become_method_invalid.yml.md
index fc1e692..b94527a 100644
--- a/test/schemas/negative_test/playbooks/tasks/become_method_invalid.yml.md
+++ b/test/schemas/negative_test/playbooks/tasks/become_method_invalid.yml.md
@@ -140,6 +140,7 @@ stdout:
```json
{
"status": "fail",
+ "successes": [],
"errors": [
{
"filename": "negative_test/playbooks/tasks/become_method_invalid.yml",
@@ -150,6 +151,11 @@ stdout:
"path": "$[0]",
"message": "'block' is a required property"
},
+ "best_deep_match": {
+ "path": "$[0].become_method",
+ "message": "True is not one of ['ansible.builtin.sudo', 'ansible.builtin.su', 'community.general.pbrun', 'community.general.pfexec', 'ansible.builtin.runas', 'community.general.dzdo', 'community.general.ksu', 'community.general.doas', 'community.general.machinectl', 'community.general.pmrun', 'community.general.sesu', 'community.general.sudosu']"
+ },
+ "num_sub_errors": 10,
"sub_errors": [
{
"path": "$[0].become_method",
diff --git a/test/schemas/negative_test/playbooks/tasks/ignore_errors.yml.md b/test/schemas/negative_test/playbooks/tasks/ignore_errors.yml.md
index 559a200..abd8968 100644
--- a/test/schemas/negative_test/playbooks/tasks/ignore_errors.yml.md
+++ b/test/schemas/negative_test/playbooks/tasks/ignore_errors.yml.md
@@ -82,6 +82,7 @@ stdout:
```json
{
"status": "fail",
+ "successes": [],
"errors": [
{
"filename": "negative_test/playbooks/tasks/ignore_errors.yml",
@@ -92,6 +93,11 @@ stdout:
"path": "$[0]",
"message": "'block' is a required property"
},
+ "best_deep_match": {
+ "path": "$[0].ignore_errors",
+ "message": "'should_ignore_errors' is not of type 'boolean'"
+ },
+ "num_sub_errors": 6,
"sub_errors": [
{
"path": "$[0].ignore_errors",
diff --git a/test/schemas/negative_test/playbooks/tasks/invalid_block.yml.md b/test/schemas/negative_test/playbooks/tasks/invalid_block.yml.md
index bf4b30e..f952161 100644
--- a/test/schemas/negative_test/playbooks/tasks/invalid_block.yml.md
+++ b/test/schemas/negative_test/playbooks/tasks/invalid_block.yml.md
@@ -35,6 +35,7 @@ stdout:
```json
{
"status": "fail",
+ "successes": [],
"errors": [
{
"filename": "negative_test/playbooks/tasks/invalid_block.yml",
@@ -45,6 +46,11 @@ stdout:
"path": "$[0]",
"message": "{'block': {}} should not be valid under {'required': ['block']}"
},
+ "best_deep_match": {
+ "path": "$[0].block",
+ "message": "{} is not of type 'array'"
+ },
+ "num_sub_errors": 1,
"sub_errors": [
{
"path": "$[0].block",
diff --git a/test/schemas/negative_test/playbooks/tasks/local_action.yml.md b/test/schemas/negative_test/playbooks/tasks/local_action.yml.md
index cf67e7b..0b1151b 100644
--- a/test/schemas/negative_test/playbooks/tasks/local_action.yml.md
+++ b/test/schemas/negative_test/playbooks/tasks/local_action.yml.md
@@ -40,6 +40,7 @@ stdout:
```json
{
"status": "fail",
+ "successes": [],
"errors": [
{
"filename": "negative_test/playbooks/tasks/local_action.yml",
@@ -50,6 +51,11 @@ stdout:
"path": "$[0]",
"message": "'block' is a required property"
},
+ "best_deep_match": {
+ "path": "$[0].local_action",
+ "message": "[] is not of type 'string', 'object'"
+ },
+ "num_sub_errors": 1,
"sub_errors": [
{
"path": "$[0]",
diff --git a/test/schemas/negative_test/playbooks/tasks/loop.yml.md b/test/schemas/negative_test/playbooks/tasks/loop.yml.md
index de8277f..45a1908 100644
--- a/test/schemas/negative_test/playbooks/tasks/loop.yml.md
+++ b/test/schemas/negative_test/playbooks/tasks/loop.yml.md
@@ -40,6 +40,7 @@ stdout:
```json
{
"status": "fail",
+ "successes": [],
"errors": [
{
"filename": "negative_test/playbooks/tasks/loop.yml",
@@ -50,6 +51,11 @@ stdout:
"path": "$[0]",
"message": "'block' is a required property"
},
+ "best_deep_match": {
+ "path": "$[0].loop",
+ "message": "{} is not of type 'string', 'array'"
+ },
+ "num_sub_errors": 1,
"sub_errors": [
{
"path": "$[0]",
diff --git a/test/schemas/negative_test/playbooks/tasks/loop2.yml.md b/test/schemas/negative_test/playbooks/tasks/loop2.yml.md
index c36d7c9..e29af19 100644
--- a/test/schemas/negative_test/playbooks/tasks/loop2.yml.md
+++ b/test/schemas/negative_test/playbooks/tasks/loop2.yml.md
@@ -40,6 +40,7 @@ stdout:
```json
{
"status": "fail",
+ "successes": [],
"errors": [
{
"filename": "negative_test/playbooks/tasks/loop2.yml",
@@ -50,6 +51,11 @@ stdout:
"path": "$[0]",
"message": "'block' is a required property"
},
+ "best_deep_match": {
+ "path": "$[0].loop",
+ "message": "123 is not of type 'string', 'array'"
+ },
+ "num_sub_errors": 1,
"sub_errors": [
{
"path": "$[0]",
diff --git a/test/schemas/negative_test/playbooks/tasks/no_log_number.yml.md b/test/schemas/negative_test/playbooks/tasks/no_log_number.yml.md
index 4b9516c..bc85fd7 100644
--- a/test/schemas/negative_test/playbooks/tasks/no_log_number.yml.md
+++ b/test/schemas/negative_test/playbooks/tasks/no_log_number.yml.md
@@ -100,6 +100,7 @@ stdout:
```json
{
"status": "fail",
+ "successes": [],
"errors": [
{
"filename": "negative_test/playbooks/tasks/no_log_number.yml",
@@ -110,6 +111,11 @@ stdout:
"path": "$[0]",
"message": "'block' is a required property"
},
+ "best_deep_match": {
+ "path": "$[0].no_log",
+ "message": "123 is not of type 'boolean'"
+ },
+ "num_sub_errors": 6,
"sub_errors": [
{
"path": "$[0].no_log",
diff --git a/test/schemas/negative_test/playbooks/tasks/no_log_string.yml.md b/test/schemas/negative_test/playbooks/tasks/no_log_string.yml.md
index 6742175..ec88c66 100644
--- a/test/schemas/negative_test/playbooks/tasks/no_log_string.yml.md
+++ b/test/schemas/negative_test/playbooks/tasks/no_log_string.yml.md
@@ -82,6 +82,7 @@ stdout:
```json
{
"status": "fail",
+ "successes": [],
"errors": [
{
"filename": "negative_test/playbooks/tasks/no_log_string.yml",
@@ -92,6 +93,11 @@ stdout:
"path": "$[0]",
"message": "'block' is a required property"
},
+ "best_deep_match": {
+ "path": "$[0].no_log",
+ "message": "'some_var' is not of type 'boolean'"
+ },
+ "num_sub_errors": 6,
"sub_errors": [
{
"path": "$[0].no_log",
diff --git a/test/schemas/negative_test/playbooks/tasks/tags-mapping.yml.md b/test/schemas/negative_test/playbooks/tasks/tags-mapping.yml.md
index d860605..998d783 100644
--- a/test/schemas/negative_test/playbooks/tasks/tags-mapping.yml.md
+++ b/test/schemas/negative_test/playbooks/tasks/tags-mapping.yml.md
@@ -78,6 +78,7 @@ stdout:
```json
{
"status": "fail",
+ "successes": [],
"errors": [
{
"filename": "negative_test/playbooks/tasks/tags-mapping.yml",
@@ -88,6 +89,11 @@ stdout:
"path": "$[0]",
"message": "'block' is a required property"
},
+ "best_deep_match": {
+ "path": "$[0].tags",
+ "message": "{} is not of type 'string'"
+ },
+ "num_sub_errors": 6,
"sub_errors": [
{
"path": "$[0].tags",
diff --git a/test/schemas/negative_test/playbooks/tasks/tags-string.yml.md b/test/schemas/negative_test/playbooks/tasks/tags-string.yml.md
index 0bb7ed0..cdf421d 100644
--- a/test/schemas/negative_test/playbooks/tasks/tags-string.yml.md
+++ b/test/schemas/negative_test/playbooks/tasks/tags-string.yml.md
@@ -78,6 +78,7 @@ stdout:
```json
{
"status": "fail",
+ "successes": [],
"errors": [
{
"filename": "negative_test/playbooks/tasks/tags-string.yml",
@@ -88,6 +89,11 @@ stdout:
"path": "$[0]",
"message": "'block' is a required property"
},
+ "best_deep_match": {
+ "path": "$[0].tags",
+ "message": "123 is not of type 'string'"
+ },
+ "num_sub_errors": 6,
"sub_errors": [
{
"path": "$[0].tags",
diff --git a/test/schemas/negative_test/playbooks/tasks/when_integer.yml.md b/test/schemas/negative_test/playbooks/tasks/when_integer.yml.md
index bc59cc4..8acb890 100644
--- a/test/schemas/negative_test/playbooks/tasks/when_integer.yml.md
+++ b/test/schemas/negative_test/playbooks/tasks/when_integer.yml.md
@@ -100,6 +100,7 @@ stdout:
```json
{
"status": "fail",
+ "successes": [],
"errors": [
{
"filename": "negative_test/playbooks/tasks/when_integer.yml",
@@ -110,6 +111,11 @@ stdout:
"path": "$[0]",
"message": "'block' is a required property"
},
+ "best_deep_match": {
+ "path": "$[0].when",
+ "message": "123 is not of type 'boolean'"
+ },
+ "num_sub_errors": 8,
"sub_errors": [
{
"path": "$[0].when",
diff --git a/test/schemas/negative_test/playbooks/tasks/when_object.yml.md b/test/schemas/negative_test/playbooks/tasks/when_object.yml.md
index 6c28d0c..4ea653b 100644
--- a/test/schemas/negative_test/playbooks/tasks/when_object.yml.md
+++ b/test/schemas/negative_test/playbooks/tasks/when_object.yml.md
@@ -100,6 +100,7 @@ stdout:
```json
{
"status": "fail",
+ "successes": [],
"errors": [
{
"filename": "negative_test/playbooks/tasks/when_object.yml",
@@ -110,6 +111,11 @@ stdout:
"path": "$[0]",
"message": "'block' is a required property"
},
+ "best_deep_match": {
+ "path": "$[0].when",
+ "message": "{} is not of type 'boolean'"
+ },
+ "num_sub_errors": 8,
"sub_errors": [
{
"path": "$[0].when",
diff --git a/test/schemas/negative_test/playbooks/tasks/with_items_boolean.yml.md b/test/schemas/negative_test/playbooks/tasks/with_items_boolean.yml.md
index ffc8ef8..92340d2 100644
--- a/test/schemas/negative_test/playbooks/tasks/with_items_boolean.yml.md
+++ b/test/schemas/negative_test/playbooks/tasks/with_items_boolean.yml.md
@@ -53,6 +53,7 @@ stdout:
```json
{
"status": "fail",
+ "successes": [],
"errors": [
{
"filename": "negative_test/playbooks/tasks/with_items_boolean.yml",
@@ -63,6 +64,11 @@ stdout:
"path": "$[0]",
"message": "'block' is a required property"
},
+ "best_deep_match": {
+ "path": "$[0].with_items",
+ "message": "True is not of type 'string'"
+ },
+ "num_sub_errors": 3,
"sub_errors": [
{
"path": "$[0]",
diff --git a/test/schemas/negative_test/playbooks/tasks/with_items_untemplated_string.yml.md b/test/schemas/negative_test/playbooks/tasks/with_items_untemplated_string.yml.md
index 158b0ee..8ecd7bf 100644
--- a/test/schemas/negative_test/playbooks/tasks/with_items_untemplated_string.yml.md
+++ b/test/schemas/negative_test/playbooks/tasks/with_items_untemplated_string.yml.md
@@ -53,6 +53,7 @@ stdout:
```json
{
"status": "fail",
+ "successes": [],
"errors": [
{
"filename": "negative_test/playbooks/tasks/with_items_untemplated_string.yml",
@@ -63,6 +64,11 @@ stdout:
"path": "$[0]",
"message": "'block' is a required property"
},
+ "best_deep_match": {
+ "path": "$[0].with_items",
+ "message": "'foobar' does not match '^\\\\{[\\\\{%](.|[\\r\\n])*[\\\\}%]\\\\}$'"
+ },
+ "num_sub_errors": 3,
"sub_errors": [
{
"path": "$[0]",