Skip to content

Commit 8a0c8e7

Browse files
committed
update tests
1 parent ace53b1 commit 8a0c8e7

File tree

8 files changed

+24
-4
lines changed

8 files changed

+24
-4
lines changed

source/open-telemetry/tests/operation/drop_collection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"description": "operation drop collection",
33
"schemaVersion": "1.27",
4+
"runOnRequirements": [
5+
{
6+
"minServerVersion": "7.0"
7+
}
8+
],
49
"createEntities": [
510
{
611
"client": {

source/open-telemetry/tests/operation/drop_collection.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
description: operation drop collection
22
schemaVersion: '1.27'
3+
4+
runOnRequirements:
5+
- minServerVersion: "7.0"
6+
37
createEntities:
48
- client:
59
id: &client0 client0

source/open-telemetry/tests/operation/find_and_modify.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
"tests": [
3030
{
3131
"description": "findOneAndUpdate",
32+
"runOnRequirements": [
33+
{
34+
"minServerVersion": "4.4"
35+
}
36+
],
3237
"operations": [
3338
{
3439
"name": "findOneAndUpdate",

source/open-telemetry/tests/operation/find_and_modify.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ createEntities:
1717

1818
tests:
1919
- description: findOneAndUpdate
20+
runOnRequirements:
21+
- minServerVersion: "4.4"
2022
operations:
2123
- name: findOneAndUpdate
2224
object: *collection0

source/open-telemetry/tests/operation/insert.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@
8585
"$$matchAsRoot": {
8686
"insert": "test",
8787
"ordered": true,
88-
"txnNumber": 1,
88+
"txnNumber": {
89+
"$$unsetOrMatches": 1
90+
},
8991
"documents": [
9092
{
9193
"_id": 1

source/open-telemetry/tests/operation/insert.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ tests:
5050
$$matchAsRoot:
5151
insert: test
5252
ordered: true
53-
txnNumber: 1
53+
txnNumber: { $$unsetOrMatches: 1 }
5454
documents:
5555
- _id: 1
5656

source/open-telemetry/tests/operation/update.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@
8080
"$$matchAsRoot": {
8181
"update": "test",
8282
"ordered": true,
83-
"txnNumber": 1,
83+
"txnNumber": {
84+
"$$unsetOrMatches": 1
85+
},
8486
"updates": [
8587
{
8688
"q": {

source/open-telemetry/tests/operation/update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ tests:
4949
$$matchAsRoot:
5050
update: test
5151
ordered: true
52-
txnNumber: 1
52+
txnNumber: { $$unsetOrMatches: 1 }
5353
updates: [ { "q": { "_id": 1 }, "u": { "$inc": { "x": 1 } } } ]

0 commit comments

Comments
 (0)