Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions source/open-telemetry/tests/operation/atlas_search.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@
"string"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "createSearchIndexes operation-atlas-search.test",
"db.query.text": {
"$$matchAsDocument": {
Expand Down Expand Up @@ -173,9 +170,6 @@
"string"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "updateSearchIndex operation-atlas-search.test",
"db.query.text": {
"$$matchAsDocument": {
Expand Down Expand Up @@ -215,9 +209,6 @@
"string"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "dropSearchIndex operation-atlas-search.test",
"db.query.text": {
"$$matchAsDocument": {
Expand Down
3 changes: 0 additions & 3 deletions source/open-telemetry/tests/operation/atlas_search.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ tests:
db.collection.name: test
server.address: { $$type: string }
server.port: { $$type: [ long, string ] }
server.type: { $$type: string }
db.query.summary: createSearchIndexes operation-atlas-search.test
db.query.text:
$$matchAsDocument:
Expand All @@ -106,7 +105,6 @@ tests:
db.collection.name: test
server.address: { $$type: string }
server.port: { $$type: [ long, string ] }
server.type: { $$type: string }
db.query.summary: updateSearchIndex operation-atlas-search.test
db.query.text:
$$matchAsDocument:
Expand All @@ -130,7 +128,6 @@ tests:
db.collection.name: test
server.address: { $$type: string }
server.port: { $$type: [ long, string ] }
server.type: { $$type: string }
db.query.summary: dropSearchIndex operation-atlas-search.test
db.query.text:
$$matchAsDocument:
Expand Down
3 changes: 0 additions & 3 deletions source/open-telemetry/tests/operation/bulk_write.json
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,6 @@
"long"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "bulkWrite admin",
"db.query.text": {
"$$matchAsDocument": {
Expand Down
1 change: 0 additions & 1 deletion source/open-telemetry/tests/operation/bulk_write.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ tests:
exception.stacktrace: { $$exists: false }
server.address: { $$type: string }
server.port: { $$type: [ int, long ] }
server.type: { $$type: string }
db.query.summary: bulkWrite admin
db.query.text:
$$matchAsDocument:
Expand Down
5 changes: 5 additions & 0 deletions source/open-telemetry/tests/operation/drop_collection.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"description": "operation drop collection",
"schemaVersion": "1.27",
"runOnRequirements": [
{
"minServerVersion": "7.0"
}
],
"createEntities": [
{
"client": {
Expand Down
4 changes: 4 additions & 0 deletions source/open-telemetry/tests/operation/drop_collection.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
description: operation drop collection
schemaVersion: '1.27'

runOnRequirements:
- minServerVersion: "7.0"

createEntities:
- client:
id: &client0 client0
Expand Down
9 changes: 0 additions & 9 deletions source/open-telemetry/tests/operation/find.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@
"long"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "find operation-find.test",
"db.query.text": {
"$$matchAsDocument": {
Expand Down Expand Up @@ -208,9 +205,6 @@
"string"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "find operation-find.test",
"db.query.text": {
"$$matchAsDocument": {
Expand Down Expand Up @@ -268,9 +262,6 @@
"long"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "find operation-find.test",
"db.query.text": {
"$$matchAsDocument": {
Expand Down
3 changes: 0 additions & 3 deletions source/open-telemetry/tests/operation/find.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ tests:
exception.stacktrace: { $$exists: false }
server.address: { $$type: string }
server.port: { $$type: [int, long] }
server.type: { $$type: string }
db.query.summary: find operation-find.test
db.query.text:
$$matchAsDocument:
Expand Down Expand Up @@ -108,7 +107,6 @@ tests:
exception.stacktrace: { $$type: string }
server.address: { $$type: string }
server.port: { $$type: [ long, string ] }
server.type: { $$type: string }
db.query.summary: find operation-find.test
db.query.text:
$$matchAsDocument:
Expand All @@ -134,7 +132,6 @@ tests:
exception.stacktrace: { $$exists: false }
server.address: { $$type: string }
server.port: { $$type: [ int, long ] }
server.type: { $$type: string }
db.query.summary: find operation-find.test
db.query.text:
$$matchAsDocument:
Expand Down
5 changes: 5 additions & 0 deletions source/open-telemetry/tests/operation/find_and_modify.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
"tests": [
{
"description": "findOneAndUpdate",
"runOnRequirements": [
{
"minServerVersion": "4.4"
}
],
"operations": [
{
"name": "findOneAndUpdate",
Expand Down
2 changes: 2 additions & 0 deletions source/open-telemetry/tests/operation/find_and_modify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ createEntities:

tests:
- description: findOneAndUpdate
runOnRequirements:
- minServerVersion: "4.4"
operations:
- name: findOneAndUpdate
object: *collection0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@
"long"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "find operation-find.test",
"db.query.text": {
"$$exists": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,5 @@ tests:
exception.stacktrace: { $$exists: false }
server.address: { $$type: string }
server.port: { $$type: [int, long] }
server.type: { $$type: string }
db.query.summary: find operation-find.test
db.query.text: { $$exists: false }
7 changes: 3 additions & 4 deletions source/open-telemetry/tests/operation/insert.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,15 @@
"string"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "insert operation-insert.test",
"db.query.text": {
"$$matchAsDocument": {
"$$matchAsRoot": {
"insert": "test",
"ordered": true,
"txnNumber": 1,
"txnNumber": {
"$$unsetOrMatches": 1
},
"documents": [
{
"_id": 1
Expand Down
3 changes: 1 addition & 2 deletions source/open-telemetry/tests/operation/insert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,13 @@ tests:
db.namespace: operation-insert
server.address: { $$type: string }
server.port: { $$type: [ long, string ] }
server.type: { $$type: string }
db.query.summary: insert operation-insert.test
db.query.text:
$$matchAsDocument:
$$matchAsRoot:
insert: test
ordered: true
txnNumber: 1
txnNumber: { $$unsetOrMatches: 1 }
documents:
- _id: 1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@
"db.query.text": {
"$$matchAsDocument": {
"$$matchAsRoot": {
"listCollections": 1,
"cursor": {}
"listCollections": 1
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ tests:
$$matchAsDocument:
$$matchAsRoot:
listCollections: 1
cursor: {}
db.mongodb.server_connection_id:
$$type: [ int, long ]
db.mongodb.driver_connection_id:
Expand Down
3 changes: 0 additions & 3 deletions source/open-telemetry/tests/operation/map_reduce.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@
"long"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "mapReduce operation-map-reduce.test",
"db.query.text": {
"$$matchAsDocument": {
Expand Down
1 change: 0 additions & 1 deletion source/open-telemetry/tests/operation/map_reduce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ tests:
exception.stacktrace: { $$exists: false }
server.address: { $$type: string }
server.port: { $$type: [ int, long ] }
server.type: { $$type: string }
db.query.summary: mapReduce operation-map-reduce.test
db.query.text:
$$matchAsDocument:
Expand Down
4 changes: 3 additions & 1 deletion source/open-telemetry/tests/operation/update.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@
"$$matchAsRoot": {
"update": "test",
"ordered": true,
"txnNumber": 1,
"txnNumber": {
"$$unsetOrMatches": 1
},
"updates": [
{
"q": {
Expand Down
2 changes: 1 addition & 1 deletion source/open-telemetry/tests/operation/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ tests:
$$matchAsRoot:
update: test
ordered: true
txnNumber: 1
txnNumber: { $$unsetOrMatches: 1 }
updates: [ { "q": { "_id": 1 }, "u": { "$inc": { "x": 1 } } } ]
6 changes: 0 additions & 6 deletions source/open-telemetry/tests/transaction/convenient.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@
"string"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "insert convenient-transaction-tests.test",
"db.mongodb.lsid": {
"$$sessionLsid": "session"
Expand Down Expand Up @@ -210,9 +207,6 @@
"string"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "find convenient-transaction-tests.test"
}
}
Expand Down
2 changes: 0 additions & 2 deletions source/open-telemetry/tests/transaction/convenient.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ tests:
db.collection.name: *collectionName
server.address: { $$type: string }
server.port: { $$type: [ 'long', 'string' ] }
server.type: { $$type: string }
db.query.summary: insert convenient-transaction-tests.test
db.mongodb.lsid: { $$sessionLsid: *session }
db.mongodb.txn_number: 1
Expand Down Expand Up @@ -122,7 +121,6 @@ tests:
db.command.name: find
server.address: { $$type: string }
server.port: { $$type: [ 'long', 'string' ] }
server.type: { $$type: string }
db.query.summary: find convenient-transaction-tests.test

outcome:
Expand Down
9 changes: 0 additions & 9 deletions source/open-telemetry/tests/transaction/core_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@
"string"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "insert transaction-tests.test",
"db.mongodb.lsid": {
"$$sessionLsid": "session0"
Expand Down Expand Up @@ -216,9 +213,6 @@
"string"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "find transaction-tests.test"
}
}
Expand Down Expand Up @@ -297,9 +291,6 @@
"string"
]
},
"server.type": {
"$$type": "string"
},
"db.query.summary": "insert transaction-tests.test",
"db.mongodb.lsid": {
"$$sessionLsid": "session0"
Expand Down
3 changes: 0 additions & 3 deletions source/open-telemetry/tests/transaction/core_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ tests:
db.collection.name: test
server.address: { $$type: string }
server.port: { $$type: ['long', 'string'] }
server.type: { $$type: string }
db.query.summary: insert transaction-tests.test
db.mongodb.lsid: { $$sessionLsid: *session0 }
db.mongodb.txn_number: 1
Expand Down Expand Up @@ -121,7 +120,6 @@ tests:
db.command.name: find
server.address: { $$type: string }
server.port: { $$type: ['long', 'string'] }
server.type: { $$type: string }
db.query.summary: find transaction-tests.test
outcome:
- collectionName: test
Expand Down Expand Up @@ -165,7 +163,6 @@ tests:
db.collection.name: test
server.address: { $$type: string }
server.port: { $$type: ['long', 'string'] }
server.type: { $$type: string }
db.query.summary: insert transaction-tests.test
db.mongodb.lsid: { $$sessionLsid: *session0 }
db.mongodb.txn_number: 1
Expand Down
Loading