From 6037735484d764fb6009383863c5d59f822bdaa7 Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Thu, 31 Oct 2024 15:10:18 -0400 Subject: [PATCH] DRIVERS-1593: test.operations array may be empty --- .../tests/valid-pass/operation-empty_array.json | 10 ++++++++++ .../tests/valid-pass/operation-empty_array.yml | 7 +++++++ source/unified-test-format/unified-test-format.md | 5 +++-- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 source/unified-test-format/tests/valid-pass/operation-empty_array.json create mode 100644 source/unified-test-format/tests/valid-pass/operation-empty_array.yml diff --git a/source/unified-test-format/tests/valid-pass/operation-empty_array.json b/source/unified-test-format/tests/valid-pass/operation-empty_array.json new file mode 100644 index 0000000000..93b25c983c --- /dev/null +++ b/source/unified-test-format/tests/valid-pass/operation-empty_array.json @@ -0,0 +1,10 @@ +{ + "description": "operation-empty_array", + "schemaVersion": "1.0", + "tests": [ + { + "description": "Empty operations array", + "operations": [] + } + ] +} diff --git a/source/unified-test-format/tests/valid-pass/operation-empty_array.yml b/source/unified-test-format/tests/valid-pass/operation-empty_array.yml new file mode 100644 index 0000000000..35d5ba3711 --- /dev/null +++ b/source/unified-test-format/tests/valid-pass/operation-empty_array.yml @@ -0,0 +1,7 @@ +description: "operation-empty_array" + +schemaVersion: "1.0" + +tests: + - description: "Empty operations array" + operations: [] diff --git a/source/unified-test-format/unified-test-format.md b/source/unified-test-format/unified-test-format.md index 6cb8d6d35a..2eb36557d2 100644 --- a/source/unified-test-format/unified-test-format.md +++ b/source/unified-test-format/unified-test-format.md @@ -775,8 +775,7 @@ The structure of this object is as follows: -- `operations`: Required array of one or more [operation](#operation) objects. List of operations to be executed for the - test case. +- `operations`: Required array of [operation](#operation) objects. List of operations to be executed for the test case. @@ -3551,6 +3550,8 @@ other specs *and* collating spec changes developed in parallel or during the sam ## Changelog +- 2024-10-31: Test operations array may be empty. + - 2024-10-29: List more examples of root-level documents - 2024-10-24: Document `namespace` option for `failCommand` fail point.