Skip to content

Commit

Permalink
Add YAML specification test files
Browse files Browse the repository at this point in the history
  • Loading branch information
prashantmital committed Feb 20, 2020
1 parent 9d4b0db commit 34b2897
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 0 deletions.
37 changes: 37 additions & 0 deletions specification_tests/retryReads-resizeCluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
maintenancePlan:
initial:
clusterConfiguration:
clusterType: REPLICASET
providerSettings:
providerName: AWS
regionName: US_WEST_1
instanceSizeName: M10
processArgs: {}
final:
clusterConfiguration:
providerSettings:
providerName: AWS
regionName: US_WEST_1
instanceSizeName: M20
processArgs: {}
uriOptions:
retryReads: true
driverWorkload:
database: test_database
collection: test_collection
testData:
- {_id: 1, x: 11}
- {_id: 2, x: 22}
- {_id: 3, x: 33}
operations:
-
object: collection
name: find
arguments:
filter:
_id: {$gt: 1}
sort:
_id: 1
result:
- {_id: 2, x: 22}
- {_id: 3, x: 33}
36 changes: 36 additions & 0 deletions specification_tests/retryReads-toggleServerSideJS.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
maintenancePlan:
initial:
clusterConfiguration:
clusterType: REPLICASET
providerSettings:
providerName: AWS
regionName: US_WEST_1
instanceSizeName: M10
processArgs:
javascriptEnabled: false
final:
clusterConfiguration:
providerSettings: {}
processArgs:
javascriptEnabled: true
uriOptions:
retryReads: true
driverWorkload:
database: test_database
collection: test_collection
testData:
- {_id: 1, x: 11}
- {_id: 2, x: 22}
- {_id: 3, x: 33}
operations:
-
object: collection
name: find
arguments:
filter:
_id: {$gt: 1}
sort:
_id: 1
result:
- {_id: 2, x: 22}
- {_id: 3, x: 33}
27 changes: 27 additions & 0 deletions specification_tests/retryWrites-resizeCluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
maintenancePlan:
initial:
clusterConfiguration:
clusterType: REPLICASET
providerSettings:
providerName: AWS
regionName: US_WEST_1
instanceSizeName: M10
processArgs: {}
final:
clusterConfiguration:
providerSettings:
providerName: AWS
regionName: US_WEST_1
instanceSizeName: M20
processArgs: {}
uriOptions:
retryWrites: true
driverWorkload:
database: test_database
collection: test_collection
operations:
-
object: collection
name: insertOne
arguments:
document: {data: 100}
26 changes: 26 additions & 0 deletions specification_tests/retryWrites-toggleServerSideJS.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
maintenancePlan:
initial:
clusterConfiguration:
clusterType: REPLICASET
providerSettings:
providerName: AWS
regionName: US_WEST_1
instanceSizeName: M10
processArgs:
javascriptEnabled: false
final:
clusterConfiguration:
providerSettings: {}
processArgs:
javascriptEnabled: true
uriOptions:
retryWrites: true
driverWorkload:
database: test_database
collection: test_collection
operations:
-
object: collection
name: insertOne
arguments:
document: {data: 100}

0 comments on commit 34b2897

Please sign in to comment.