Skip to content

Commit c6f23a0

Browse files
authored
DRIVERS-1593: test.operations array may be empty (#1709)
1 parent b1b5a7f commit c6f23a0

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

source/unified-test-format/tests/valid-pass/operation-empty_array.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
description: "operation-empty_array"
2+
3+
schemaVersion: "1.0"
4+
5+
tests:
6+
- description: "Empty operations array"
7+
operations: []

source/unified-test-format/unified-test-format.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,8 +775,7 @@ The structure of this object is as follows:
775775

776776
<span id="test_operations"></span>
777777

778-
- `operations`: Required array of one or more [operation](#operation) objects. List of operations to be executed for the
779-
test case.
778+
- `operations`: Required array of [operation](#operation) objects. List of operations to be executed for the test case.
780779

781780
<span id="test_expectEvents"></span>
782781

@@ -3551,6 +3550,8 @@ other specs *and* collating spec changes developed in parallel or during the sam
35513550

35523551
## Changelog
35533552

3553+
- 2024-10-31: Test operations array may be empty.
3554+
35543555
- 2024-10-29: List more examples of root-level documents
35553556

35563557
- 2024-10-24: Document `namespace` option for `failCommand` fail point.

0 commit comments

Comments
 (0)