From 19c7cc80c360aa83c74601e25fc926086fe7e40c Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Tue, 31 Mar 2026 15:54:30 -0400 Subject: [PATCH 1/3] tests: duplicates additional tests that would be beneficial to earlier versions of the specification Signed-off-by: Vincent Biret --- tests/v1.0/fail/action-remove-invalid-type.yaml | 7 +++++++ tests/v1.0/fail/action-target-invalid-type.yaml | 6 ++++++ tests/v1.0/fail/actions-invalid-type.yaml | 5 +++++ tests/v1.0/fail/info-invalid-type.yaml | 4 ++++ tests/v1.0/fail/info-title-invalid-type.yaml | 6 ++++++ tests/v1.0/fail/info-version-invalid-type.yaml | 6 ++++++ tests/v1.0/fail/overlay-invalid-pattern.yaml | 6 ++++++ tests/v1.0/fail/root-invalid-property.yaml | 7 +++++++ tests/v1.1/fail/action-copy-invalid-type.yaml | 7 +++++++ tests/v1.1/fail/action-remove-invalid-type.yaml | 7 +++++++ tests/v1.1/fail/action-target-invalid-type.yaml | 6 ++++++ tests/v1.1/fail/actions-invalid-type.yaml | 5 +++++ tests/v1.1/fail/info-description-invalid-type.yaml | 7 +++++++ tests/v1.1/fail/info-invalid-type.yaml | 4 ++++ tests/v1.1/fail/info-title-invalid-type.yaml | 6 ++++++ tests/v1.1/fail/info-version-invalid-type.yaml | 6 ++++++ tests/v1.1/fail/overlay-invalid-pattern.yaml | 6 ++++++ tests/v1.1/fail/root-invalid-property.yaml | 7 +++++++ 18 files changed, 108 insertions(+) create mode 100644 tests/v1.0/fail/action-remove-invalid-type.yaml create mode 100644 tests/v1.0/fail/action-target-invalid-type.yaml create mode 100644 tests/v1.0/fail/actions-invalid-type.yaml create mode 100644 tests/v1.0/fail/info-invalid-type.yaml create mode 100644 tests/v1.0/fail/info-title-invalid-type.yaml create mode 100644 tests/v1.0/fail/info-version-invalid-type.yaml create mode 100644 tests/v1.0/fail/overlay-invalid-pattern.yaml create mode 100644 tests/v1.0/fail/root-invalid-property.yaml create mode 100644 tests/v1.1/fail/action-copy-invalid-type.yaml create mode 100644 tests/v1.1/fail/action-remove-invalid-type.yaml create mode 100644 tests/v1.1/fail/action-target-invalid-type.yaml create mode 100644 tests/v1.1/fail/actions-invalid-type.yaml create mode 100644 tests/v1.1/fail/info-description-invalid-type.yaml create mode 100644 tests/v1.1/fail/info-invalid-type.yaml create mode 100644 tests/v1.1/fail/info-title-invalid-type.yaml create mode 100644 tests/v1.1/fail/info-version-invalid-type.yaml create mode 100644 tests/v1.1/fail/overlay-invalid-pattern.yaml create mode 100644 tests/v1.1/fail/root-invalid-property.yaml diff --git a/tests/v1.0/fail/action-remove-invalid-type.yaml b/tests/v1.0/fail/action-remove-invalid-type.yaml new file mode 100644 index 0000000..7972cf6 --- /dev/null +++ b/tests/v1.0/fail/action-remove-invalid-type.yaml @@ -0,0 +1,7 @@ +overlay: 1.0.0 +info: + title: Action remove must be a boolean + version: 1.0.0 +actions: + - target: '$' + remove: maybe \ No newline at end of file diff --git a/tests/v1.0/fail/action-target-invalid-type.yaml b/tests/v1.0/fail/action-target-invalid-type.yaml new file mode 100644 index 0000000..0da31e5 --- /dev/null +++ b/tests/v1.0/fail/action-target-invalid-type.yaml @@ -0,0 +1,6 @@ +overlay: 1.0.0 +info: + title: Action target must be a string + version: 1.0.0 +actions: + - target: 100 \ No newline at end of file diff --git a/tests/v1.0/fail/actions-invalid-type.yaml b/tests/v1.0/fail/actions-invalid-type.yaml new file mode 100644 index 0000000..3c476b4 --- /dev/null +++ b/tests/v1.0/fail/actions-invalid-type.yaml @@ -0,0 +1,5 @@ +overlay: 1.0.0 +info: + title: Actions must be an array + version: 1.0.0 +actions: {} \ No newline at end of file diff --git a/tests/v1.0/fail/info-invalid-type.yaml b/tests/v1.0/fail/info-invalid-type.yaml new file mode 100644 index 0000000..5acf19a --- /dev/null +++ b/tests/v1.0/fail/info-invalid-type.yaml @@ -0,0 +1,4 @@ +overlay: 1.0.0 +info: invalid +actions: + - target: '$' \ No newline at end of file diff --git a/tests/v1.0/fail/info-title-invalid-type.yaml b/tests/v1.0/fail/info-title-invalid-type.yaml new file mode 100644 index 0000000..c7eae3b --- /dev/null +++ b/tests/v1.0/fail/info-title-invalid-type.yaml @@ -0,0 +1,6 @@ +overlay: 1.0.0 +info: + title: 100 + version: 1.0.0 +actions: + - target: '$' \ No newline at end of file diff --git a/tests/v1.0/fail/info-version-invalid-type.yaml b/tests/v1.0/fail/info-version-invalid-type.yaml new file mode 100644 index 0000000..adf0bc8 --- /dev/null +++ b/tests/v1.0/fail/info-version-invalid-type.yaml @@ -0,0 +1,6 @@ +overlay: 1.0.0 +info: + title: Invalid info version type + version: false +actions: + - target: '$' \ No newline at end of file diff --git a/tests/v1.0/fail/overlay-invalid-pattern.yaml b/tests/v1.0/fail/overlay-invalid-pattern.yaml new file mode 100644 index 0000000..2c6f4cc --- /dev/null +++ b/tests/v1.0/fail/overlay-invalid-pattern.yaml @@ -0,0 +1,6 @@ +overlay: '1.0' +info: + title: Overlay version must match 1.0.x + version: 1.0.0 +actions: + - target: '$' \ No newline at end of file diff --git a/tests/v1.0/fail/root-invalid-property.yaml b/tests/v1.0/fail/root-invalid-property.yaml new file mode 100644 index 0000000..5ff6a15 --- /dev/null +++ b/tests/v1.0/fail/root-invalid-property.yaml @@ -0,0 +1,7 @@ +overlay: 1.0.0 +info: + title: Root invalid property + version: 1.0.0 +actions: + - target: '$' +invalidProperty: true \ No newline at end of file diff --git a/tests/v1.1/fail/action-copy-invalid-type.yaml b/tests/v1.1/fail/action-copy-invalid-type.yaml new file mode 100644 index 0000000..9bdd807 --- /dev/null +++ b/tests/v1.1/fail/action-copy-invalid-type.yaml @@ -0,0 +1,7 @@ +overlay: 1.1.0 +info: + title: Action copy must be a string + version: 1.0.0 +actions: + - target: '$' + copy: 100 \ No newline at end of file diff --git a/tests/v1.1/fail/action-remove-invalid-type.yaml b/tests/v1.1/fail/action-remove-invalid-type.yaml new file mode 100644 index 0000000..7ea38de --- /dev/null +++ b/tests/v1.1/fail/action-remove-invalid-type.yaml @@ -0,0 +1,7 @@ +overlay: 1.1.0 +info: + title: Action remove must be a boolean + version: 1.0.0 +actions: + - target: '$' + remove: maybe \ No newline at end of file diff --git a/tests/v1.1/fail/action-target-invalid-type.yaml b/tests/v1.1/fail/action-target-invalid-type.yaml new file mode 100644 index 0000000..baed0b8 --- /dev/null +++ b/tests/v1.1/fail/action-target-invalid-type.yaml @@ -0,0 +1,6 @@ +overlay: 1.1.0 +info: + title: Action target must be a string + version: 1.0.0 +actions: + - target: 100 \ No newline at end of file diff --git a/tests/v1.1/fail/actions-invalid-type.yaml b/tests/v1.1/fail/actions-invalid-type.yaml new file mode 100644 index 0000000..e32590d --- /dev/null +++ b/tests/v1.1/fail/actions-invalid-type.yaml @@ -0,0 +1,5 @@ +overlay: 1.1.0 +info: + title: Actions must be an array + version: 1.0.0 +actions: {} \ No newline at end of file diff --git a/tests/v1.1/fail/info-description-invalid-type.yaml b/tests/v1.1/fail/info-description-invalid-type.yaml new file mode 100644 index 0000000..65a180d --- /dev/null +++ b/tests/v1.1/fail/info-description-invalid-type.yaml @@ -0,0 +1,7 @@ +overlay: 1.1.0 +info: + title: Invalid info description type + version: 1.0.0 + description: 100 +actions: + - target: '$' \ No newline at end of file diff --git a/tests/v1.1/fail/info-invalid-type.yaml b/tests/v1.1/fail/info-invalid-type.yaml new file mode 100644 index 0000000..2e33ea9 --- /dev/null +++ b/tests/v1.1/fail/info-invalid-type.yaml @@ -0,0 +1,4 @@ +overlay: 1.1.0 +info: invalid +actions: + - target: '$' \ No newline at end of file diff --git a/tests/v1.1/fail/info-title-invalid-type.yaml b/tests/v1.1/fail/info-title-invalid-type.yaml new file mode 100644 index 0000000..2d130ef --- /dev/null +++ b/tests/v1.1/fail/info-title-invalid-type.yaml @@ -0,0 +1,6 @@ +overlay: 1.1.0 +info: + title: 100 + version: 1.0.0 +actions: + - target: '$' \ No newline at end of file diff --git a/tests/v1.1/fail/info-version-invalid-type.yaml b/tests/v1.1/fail/info-version-invalid-type.yaml new file mode 100644 index 0000000..1073805 --- /dev/null +++ b/tests/v1.1/fail/info-version-invalid-type.yaml @@ -0,0 +1,6 @@ +overlay: 1.1.0 +info: + title: Invalid info version type + version: false +actions: + - target: '$' \ No newline at end of file diff --git a/tests/v1.1/fail/overlay-invalid-pattern.yaml b/tests/v1.1/fail/overlay-invalid-pattern.yaml new file mode 100644 index 0000000..063a86b --- /dev/null +++ b/tests/v1.1/fail/overlay-invalid-pattern.yaml @@ -0,0 +1,6 @@ +overlay: '1.1' +info: + title: Overlay version must match 1.1.x + version: 1.0.0 +actions: + - target: '$' \ No newline at end of file diff --git a/tests/v1.1/fail/root-invalid-property.yaml b/tests/v1.1/fail/root-invalid-property.yaml new file mode 100644 index 0000000..2d85c0a --- /dev/null +++ b/tests/v1.1/fail/root-invalid-property.yaml @@ -0,0 +1,7 @@ +overlay: 1.1.0 +info: + title: Root invalid property + version: 1.0.0 +actions: + - target: '$' +invalidProperty: true \ No newline at end of file From 056b475cec06c416a08955a38e0dd3add742e1f7 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Tue, 31 Mar 2026 15:58:26 -0400 Subject: [PATCH 2/3] tests: adds additional coverage for the 1.2 version of the specification --- tests/v1.2-dev/fail/action-copy-invalid-type.yaml | 7 +++++++ tests/v1.2-dev/fail/action-remove-invalid-type.yaml | 7 +++++++ tests/v1.2-dev/fail/actions-invalid-type.yaml | 5 +++++ tests/v1.2-dev/fail/actions-item-invalid-type.yaml | 6 ++++++ tests/v1.2-dev/fail/info-description-invalid-type.yaml | 7 +++++++ tests/v1.2-dev/fail/info-invalid-property.yaml | 7 +++++++ tests/v1.2-dev/fail/info-invalid-type.yaml | 4 ++++ tests/v1.2-dev/fail/info-title-invalid-type.yaml | 6 ++++++ tests/v1.2-dev/fail/info-version-invalid-type.yaml | 6 ++++++ tests/v1.2-dev/fail/root-invalid-property.yaml | 7 +++++++ 10 files changed, 62 insertions(+) create mode 100644 tests/v1.2-dev/fail/action-copy-invalid-type.yaml create mode 100644 tests/v1.2-dev/fail/action-remove-invalid-type.yaml create mode 100644 tests/v1.2-dev/fail/actions-invalid-type.yaml create mode 100644 tests/v1.2-dev/fail/actions-item-invalid-type.yaml create mode 100644 tests/v1.2-dev/fail/info-description-invalid-type.yaml create mode 100644 tests/v1.2-dev/fail/info-invalid-property.yaml create mode 100644 tests/v1.2-dev/fail/info-invalid-type.yaml create mode 100644 tests/v1.2-dev/fail/info-title-invalid-type.yaml create mode 100644 tests/v1.2-dev/fail/info-version-invalid-type.yaml create mode 100644 tests/v1.2-dev/fail/root-invalid-property.yaml diff --git a/tests/v1.2-dev/fail/action-copy-invalid-type.yaml b/tests/v1.2-dev/fail/action-copy-invalid-type.yaml new file mode 100644 index 0000000..f1682bf --- /dev/null +++ b/tests/v1.2-dev/fail/action-copy-invalid-type.yaml @@ -0,0 +1,7 @@ +overlay: 1.2.0 +info: + title: Action copy must be a string + version: 1.0.0 +actions: + - target: '$' + copy: 100 \ No newline at end of file diff --git a/tests/v1.2-dev/fail/action-remove-invalid-type.yaml b/tests/v1.2-dev/fail/action-remove-invalid-type.yaml new file mode 100644 index 0000000..c783475 --- /dev/null +++ b/tests/v1.2-dev/fail/action-remove-invalid-type.yaml @@ -0,0 +1,7 @@ +overlay: 1.2.0 +info: + title: Action remove must be a boolean + version: 1.0.0 +actions: + - target: '$' + remove: maybe \ No newline at end of file diff --git a/tests/v1.2-dev/fail/actions-invalid-type.yaml b/tests/v1.2-dev/fail/actions-invalid-type.yaml new file mode 100644 index 0000000..8e39270 --- /dev/null +++ b/tests/v1.2-dev/fail/actions-invalid-type.yaml @@ -0,0 +1,5 @@ +overlay: 1.2.0 +info: + title: Actions must be an array + version: 1.0.0 +actions: {} \ No newline at end of file diff --git a/tests/v1.2-dev/fail/actions-item-invalid-type.yaml b/tests/v1.2-dev/fail/actions-item-invalid-type.yaml new file mode 100644 index 0000000..378fc74 --- /dev/null +++ b/tests/v1.2-dev/fail/actions-item-invalid-type.yaml @@ -0,0 +1,6 @@ +overlay: 1.2.0 +info: + title: Action items must be objects + version: 1.0.0 +actions: + - 123 \ No newline at end of file diff --git a/tests/v1.2-dev/fail/info-description-invalid-type.yaml b/tests/v1.2-dev/fail/info-description-invalid-type.yaml new file mode 100644 index 0000000..d3aae07 --- /dev/null +++ b/tests/v1.2-dev/fail/info-description-invalid-type.yaml @@ -0,0 +1,7 @@ +overlay: 1.2.0 +info: + title: Invalid info description type + version: 1.0.0 + description: 100 +actions: + - target: '$' \ No newline at end of file diff --git a/tests/v1.2-dev/fail/info-invalid-property.yaml b/tests/v1.2-dev/fail/info-invalid-property.yaml new file mode 100644 index 0000000..ebcd100 --- /dev/null +++ b/tests/v1.2-dev/fail/info-invalid-property.yaml @@ -0,0 +1,7 @@ +overlay: 1.2.0 +info: + title: Info invalid property + version: 1.0.0 + invalidProperty: true +actions: + - target: '$' \ No newline at end of file diff --git a/tests/v1.2-dev/fail/info-invalid-type.yaml b/tests/v1.2-dev/fail/info-invalid-type.yaml new file mode 100644 index 0000000..32d1ab9 --- /dev/null +++ b/tests/v1.2-dev/fail/info-invalid-type.yaml @@ -0,0 +1,4 @@ +overlay: 1.2.0 +info: invalid +actions: + - target: '$' \ No newline at end of file diff --git a/tests/v1.2-dev/fail/info-title-invalid-type.yaml b/tests/v1.2-dev/fail/info-title-invalid-type.yaml new file mode 100644 index 0000000..e52b3c1 --- /dev/null +++ b/tests/v1.2-dev/fail/info-title-invalid-type.yaml @@ -0,0 +1,6 @@ +overlay: 1.2.0 +info: + title: 100 + version: 1.0.0 +actions: + - target: '$' \ No newline at end of file diff --git a/tests/v1.2-dev/fail/info-version-invalid-type.yaml b/tests/v1.2-dev/fail/info-version-invalid-type.yaml new file mode 100644 index 0000000..af2f7be --- /dev/null +++ b/tests/v1.2-dev/fail/info-version-invalid-type.yaml @@ -0,0 +1,6 @@ +overlay: 1.2.0 +info: + title: Invalid info version type + version: false +actions: + - target: '$' \ No newline at end of file diff --git a/tests/v1.2-dev/fail/root-invalid-property.yaml b/tests/v1.2-dev/fail/root-invalid-property.yaml new file mode 100644 index 0000000..f1d841a --- /dev/null +++ b/tests/v1.2-dev/fail/root-invalid-property.yaml @@ -0,0 +1,7 @@ +overlay: 1.2.0 +info: + title: Root invalid property + version: 1.0.0 +actions: + - target: '$' +invalidProperty: true \ No newline at end of file From 9df098227e0c83e0972ed92a618a806b60218d92 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Tue, 31 Mar 2026 16:03:10 -0400 Subject: [PATCH 3/3] tests: removes invalid fail test for now Signed-off-by: Vincent Biret --- tests/v1.2-dev/fail/actions-item-invalid-type.yaml | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 tests/v1.2-dev/fail/actions-item-invalid-type.yaml diff --git a/tests/v1.2-dev/fail/actions-item-invalid-type.yaml b/tests/v1.2-dev/fail/actions-item-invalid-type.yaml deleted file mode 100644 index 378fc74..0000000 --- a/tests/v1.2-dev/fail/actions-item-invalid-type.yaml +++ /dev/null @@ -1,6 +0,0 @@ -overlay: 1.2.0 -info: - title: Action items must be objects - version: 1.0.0 -actions: - - 123 \ No newline at end of file