-
Notifications
You must be signed in to change notification settings - Fork 244
DRIVERS-555 Unified test format changes for CSOT #959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ShaneHarvey
merged 14 commits into
mongodb:master
from
divjotarora:csot-test-format-changes
Apr 27, 2022
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d4aa44e
DRIVERS-555 Unified test format changes for CSOT
c2ca520
DRIVERS-555 rename schema-1.8.json
ShaneHarvey 716f9c4
Merge branch 'master' into divjotarora-csot-test-format-changes
ShaneHarvey 48136ee
DRIVERS-555 Restore schema-1.4.json
ShaneHarvey c80874d
DRIVERS-555 Require 3.6 for collStats test
ShaneHarvey ff0b3c9
DRIVERS-555 Add valid-pass test for createEntities operation
ShaneHarvey 8ff24ee
DRIVERS-555 Fix createEntities test
ShaneHarvey f60cc1a
DRIVERS-555 Merge outcomeCollectionData and initialCollectionData, ma…
ShaneHarvey 39d3f34
DRIVERS-555 bump 1.9
ShaneHarvey 103f6c1
Merge branch 'master' into csot-test-format-changes
ShaneHarvey a6b5745
DRIVERS-555 rename initialCollectionData -> collectionData
ShaneHarvey 92e26af
Merge branch 'master' into csot-test-format-changes
ShaneHarvey f5ef38a
DRIVERS-555 Use anchors
ShaneHarvey 3f4d7ca
DRIVERS-555 Remove redundant createEntities and initialData
ShaneHarvey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
source/unified-test-format/tests/invalid/collectionOrDatabaseOptions-timeoutMS-type.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"description": "collectionOrDatabaseOptions-timeoutMS-type", | ||
"schemaVersion": "1.5", | ||
"createEntities": [ | ||
{ | ||
"client": { | ||
"id": "client0" | ||
} | ||
}, | ||
{ | ||
"database": { | ||
"id": "database0", | ||
"client": "client0", | ||
"databaseName": "foo", | ||
"databaseOptions": { | ||
"timeoutMS": {} | ||
} | ||
} | ||
} | ||
], | ||
"tests": [ | ||
{ | ||
"description": "foo", | ||
"operations": [] | ||
} | ||
] | ||
} |
17 changes: 17 additions & 0 deletions
17
source/unified-test-format/tests/invalid/collectionOrDatabaseOptions-timeoutMS-type.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
description: "collectionOrDatabaseOptions-timeoutMS-type" | ||
|
||
schemaVersion: "1.5" | ||
|
||
createEntities: | ||
- client: | ||
id: &client0 "client0" | ||
- database: | ||
id: &database0 "database0" | ||
client: *client0 | ||
databaseName: "foo" | ||
databaseOptions: | ||
timeoutMS: {} | ||
jmikola marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
tests: | ||
- description: "foo" | ||
operations: [] |
25 changes: 25 additions & 0 deletions
25
source/unified-test-format/tests/invalid/expectedError-isTimeoutError-type.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"description": "expectedError-isTimeoutError-type", | ||
"schemaVersion": "1.5", | ||
"createEntities": [ | ||
{ | ||
"client": { | ||
"id": "client0" | ||
} | ||
} | ||
], | ||
"tests": [ | ||
{ | ||
"description": "foo", | ||
"operations": [ | ||
{ | ||
"name": "foo", | ||
"object": "client0", | ||
"expectError": { | ||
"isTimeoutError": 0 | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
source/unified-test-format/tests/invalid/expectedError-isTimeoutError-type.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
description: "expectedError-isTimeoutError-type" | ||
|
||
schemaVersion: "1.5" | ||
|
||
createEntities: | ||
- client: | ||
id: &client0 "client0" | ||
|
||
tests: | ||
- description: "foo" | ||
operations: | ||
- name: "foo" | ||
object: *client0 | ||
expectError: | ||
isTimeoutError: 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
source/unified-test-format/tests/invalid/initialCollectionData-collectionOptions-type.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"description": "initialCollectionData-collectionOptions-type", | ||
"schemaVersion": "1.5", | ||
"createEntities": [ | ||
{ | ||
"client": { | ||
"id": "client0" | ||
} | ||
}, | ||
{ | ||
"database": { | ||
"id": "database0", | ||
"client": "client0", | ||
"databaseName": "foo" | ||
} | ||
}, | ||
{ | ||
"collection": { | ||
"id": "collection0", | ||
"database": "database0", | ||
"collectionName": "foo" | ||
} | ||
} | ||
], | ||
"initialData": [ | ||
{ | ||
"collectionName": "foo", | ||
"databaseName": "foo", | ||
"collectionOptions": 0, | ||
"documents": [] | ||
} | ||
], | ||
"tests": [ | ||
{ | ||
"description": "foo", | ||
"operations": [] | ||
} | ||
] | ||
} |
25 changes: 25 additions & 0 deletions
25
source/unified-test-format/tests/invalid/initialCollectionData-collectionOptions-type.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
description: "initialCollectionData-collectionOptions-type" | ||
|
||
schemaVersion: "1.5" | ||
|
||
createEntities: | ||
- client: | ||
id: &client0 "client0" | ||
- database: | ||
id: &database0 "database0" | ||
client: *client0 | ||
databaseName: &database0Name "foo" | ||
- collection: | ||
id: &collection0 "collection0" | ||
database: *database0 | ||
collectionName: &collection0Name "foo" | ||
|
||
initialData: | ||
- collectionName: *collection0Name | ||
databaseName: *database0Name | ||
collectionOptions: 0 | ||
documents: [] | ||
|
||
tests: | ||
- description: "foo" | ||
operations: [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.