PYTHON-2033 Unified Test Format (#519)

This commit is contained in:
Prashant Mital 2020-12-21 19:22:29 -08:00 committed by GitHub
parent 2eecf525d9
commit 6b0123594a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
166 changed files with 8646 additions and 94 deletions

View File

@ -613,6 +613,16 @@ class ClientContext(object):
return True
if 'sharded' in topologies and self.is_mongos:
return True
if 'sharded-replicaset' in topologies and self.is_mongos:
shards = list(client_context.client.config.shards.find())
for shard in shards:
# For a 3-member RS-backed sharded cluster, shard['host']
# will be 'replicaName/ip1:port1,ip2:port2,ip3:port3'
# Otherwise it will be 'ip1:port1'
host_spec = shard['host']
if not len(host_spec.split('/')) > 1:
return False
return True
return False
def require_cluster_type(self, topologies=[]):

View File

@ -0,0 +1,73 @@
# Copyright 2020-present MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import sys
sys.path[0:0] = [""]
from bson import ObjectId
from test import unittest
from test.unified_format import generate_test_classes, MatchEvaluatorUtil
_TEST_PATH = os.path.join(
os.path.dirname(os.path.realpath(__file__)), 'unified-test-format')
globals().update(generate_test_classes(
os.path.join(_TEST_PATH, 'valid-pass'),
module=__name__,
class_name_prefix='UnifiedTestFormat',
expected_failures=[
'Client side error in command starting transaction', # PYTHON-1894
]))
globals().update(generate_test_classes(
os.path.join(_TEST_PATH, 'valid-fail'),
module=__name__,
class_name_prefix='UnifiedTestFormat',
bypass_test_generation_errors=True,
expected_failures=[
'.*', # All tests expected to fail
]))
class TestMatchEvaluatorUtil(unittest.TestCase):
def setUp(self):
self.match_evaluator = MatchEvaluatorUtil(self)
def test_unsetOrMatches(self):
spec = {'$$unsetOrMatches': {'y': {'$$unsetOrMatches': 2}}}
for actual in [{}, {'y': 2}, None]:
self.match_evaluator.match_result(spec, actual)
spec = {'x': {'$$unsetOrMatches': {'y': {'$$unsetOrMatches': 2}}}}
for actual in [{}, {'x': {}}, {'x': {'y': 2}}]:
self.match_evaluator.match_result(spec, actual)
def test_type(self):
self.match_evaluator.match_result(
{'operationType': 'insert',
'ns': {'db': 'change-stream-tests', 'coll': 'test'},
'fullDocument': {'_id': {'$$type': 'objectId'}, 'x': 1}},
{'operationType': 'insert',
'fullDocument': {'_id': ObjectId('5fc93511ac93941052098f0c'), 'x': 1},
'ns': {'db': 'change-stream-tests', 'coll': 'test'}})
if __name__ == "__main__":
unittest.main()

View File

@ -0,0 +1,100 @@
{
"description": "example-insertOne",
"schemaVersion": "1.0",
"runOnRequirements": [
{
"minServerVersion": "2.6"
}
],
"createEntities": [
{
"client": {
"id": "client0",
"observeEvents": [
"commandStartedEvent"
]
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "test"
}
},
{
"collection": {
"id": "collection0",
"database": "database0",
"collectionName": "coll"
}
}
],
"initialData": [
{
"collectionName": "coll",
"databaseName": "test",
"documents": [
{
"_id": 1
}
]
}
],
"tests": [
{
"description": "insertOne",
"operations": [
{
"object": "collection0",
"name": "insertOne",
"arguments": {
"document": {
"_id": 2
}
},
"expectResult": {
"insertedId": {
"$$unsetOrMatches": 2
}
}
}
],
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandStartedEvent": {
"commandName": "insert",
"databaseName": "test",
"command": {
"insert": "coll",
"documents": [
{
"_id": 2
}
]
}
}
}
]
}
],
"outcome": [
{
"collectionName": "coll",
"databaseName": "test",
"documents": [
{
"_id": 1
},
{
"_id": 2
}
]
}
]
}
]
}

View File

@ -0,0 +1,40 @@
{
"description": "collectionData-additionalProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"collection": {
"id": "collection0",
"database": "database0",
"collectionName": "foo",
"foo": 0
}
}
],
"initialData": [
{
"collectionName": "foo",
"databaseName": "foo",
"documents": [],
"foo": 0
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,38 @@
{
"description": "collectionData-collectionName-required",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"collection": {
"id": "collection0",
"database": "database0",
"collectionName": "foo",
"foo": 0
}
}
],
"initialData": [
{
"databaseName": "foo",
"documents": []
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,39 @@
{
"description": "collectionData-collectionName-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"collection": {
"id": "collection0",
"database": "database0",
"collectionName": "foo",
"foo": 0
}
}
],
"initialData": [
{
"collectionName": 0,
"databaseName": "foo",
"documents": []
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,38 @@
{
"description": "collectionData-databaseName-required",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"collection": {
"id": "collection0",
"database": "database0",
"collectionName": "foo",
"foo": 0
}
}
],
"initialData": [
{
"collectionName": "foo",
"documents": []
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,39 @@
{
"description": "collectionData-databaseName-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"collection": {
"id": "collection0",
"database": "database0",
"collectionName": "foo",
"foo": 0
}
}
],
"initialData": [
{
"collectionName": "foo",
"databaseName": 0,
"documents": []
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,41 @@
{
"description": "collectionData-documents-items",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"collection": {
"id": "collection0",
"database": "database0",
"collectionName": "foo",
"foo": 0
}
}
],
"initialData": [
{
"collectionName": "foo",
"databaseName": "foo",
"documents": [
0
]
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,38 @@
{
"description": "collectionData-documents-required",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"collection": {
"id": "collection0",
"database": "database0",
"collectionName": "foo",
"foo": 0
}
}
],
"initialData": [
{
"collectionName": "foo",
"databaseName": "foo"
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,39 @@
{
"description": "collectionData-documents-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"collection": {
"id": "collection0",
"database": "database0",
"collectionName": "foo",
"foo": 0
}
}
],
"initialData": [
{
"collectionName": "foo",
"databaseName": "foo",
"documents": 0
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,27 @@
{
"description": "collectionOrDatabaseOptions-additionalProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo",
"databaseOptions": {
"foo": 0
}
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,27 @@
{
"description": "collectionOrDatabaseOptions-readConcern-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo",
"databaseOptions": {
"readConcern": 0
}
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,27 @@
{
"description": "collectionOrDatabaseOptions-readPreference-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo",
"databaseOptions": {
"readPreference": 0
}
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,27 @@
{
"description": "collectionOrDatabaseOptions-writeConcern-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo",
"databaseOptions": {
"writeConcern": 0
}
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,13 @@
{
"description": "createEntities-items",
"schemaVersion": "1.0",
"createEntities": [
0
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,11 @@
{
"description": "createEntities-minItems",
"schemaVersion": "1.0",
"createEntities": [],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,11 @@
{
"description": "createEntities-type",
"schemaVersion": "1.0",
"createEntities": 0,
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,9 @@
{
"schemaVersion": "1.0",
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,15 @@
{
"description": "entity-additionalProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"foo": 0
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,31 @@
{
"description": "entity-bucket-additionalProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"bucket": {
"id": "bucket0",
"database": "database0",
"foo": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,31 @@
{
"description": "entity-bucket-bucketOptions-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"bucket": {
"id": "bucket0",
"database": "database0",
"bucketOptions": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,29 @@
{
"description": "entity-bucket-database-required",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"bucket": {
"id": "bucket0"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,30 @@
{
"description": "entity-bucket-database-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"bucket": {
"id": "bucket0",
"database": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,29 @@
{
"description": "entity-bucket-id-required",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"bucket": {
"database": "database0"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,30 @@
{
"description": "entity-bucket-id-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"bucket": {
"id": 0,
"database": "database0"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,18 @@
{
"description": "entity-client-additionalProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0",
"foo": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,15 @@
{
"description": "entity-client-id-required",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,17 @@
{
"description": "entity-client-id-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,20 @@
{
"description": "entity-client-ignoreCommandMonitoringEvents-items",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0",
"ignoreCommandMonitoringEvents": [
0
]
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,18 @@
{
"description": "entity-client-ignoreCommandMonitoringEvents-minItems",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0",
"ignoreCommandMonitoringEvents": []
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,18 @@
{
"description": "entity-client-ignoreCommandMonitoringEvents-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0",
"ignoreCommandMonitoringEvents": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,20 @@
{
"description": "entity-client-observeEvents-enum",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0",
"observeEvents": [
"foo"
]
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,20 @@
{
"description": "entity-client-observeEvents-items",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0",
"observeEvents": [
0
]
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,18 @@
{
"description": "entity-client-observeEvents-minItems",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0",
"observeEvents": []
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,18 @@
{
"description": "entity-client-observeEvents-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0",
"observeEvents": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,18 @@
{
"description": "entity-client-uriOptions-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0",
"uriOptions": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,18 @@
{
"description": "entity-client-useMultipleMongoses-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0",
"useMultipleMongoses": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,32 @@
{
"description": "entity-collection-additionalProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"collection": {
"id": "collection0",
"database": "database0",
"collectionName": "foo",
"foo": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,30 @@
{
"description": "entity-collection-collectionName-required",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"collection": {
"id": "collection0",
"database": "database0"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,31 @@
{
"description": "entity-collection-collectionName-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"collection": {
"id": "collection0",
"database": "database0",
"collectionName": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,32 @@
{
"description": "entity-collection-collectionOptions-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"collection": {
"id": "collection0",
"database": "database0",
"collectionName": "foo",
"collectionOptions": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,30 @@
{
"description": "entity-collection-database-required",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"collection": {
"id": "collection0",
"collectionName": "foo"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,31 @@
{
"description": "entity-collection-database-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"collection": {
"id": "collection0",
"database": 0,
"collectionName": "foo"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,30 @@
{
"description": "entity-collection-id-required",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"collection": {
"database": "database0",
"collectionName": "foo"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,31 @@
{
"description": "entity-collection-id-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
},
{
"collection": {
"id": 0,
"database": "database0",
"collectionName": "foo"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,25 @@
{
"description": "entity-database-additionalProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo",
"foo": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,23 @@
{
"description": "entity-database-client-required",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"databaseName": "foo"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,24 @@
{
"description": "entity-database-client-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": 0,
"databaseName": "foo"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,23 @@
{
"description": "entity-database-databaseName-required",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,24 @@
{
"description": "entity-database-databaseName-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,25 @@
{
"description": "entity-database-databaseOptions-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo",
"databaseOptions": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,23 @@
{
"description": "entity-database-id-required",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"client": "client0",
"databaseName": "foo"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,24 @@
{
"description": "entity-database-id-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"database": {
"id": 0,
"client": "client0",
"databaseName": "foo"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,22 @@
{
"description": "entity-maxProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
},
"database": {
"id": "database0",
"client": "client0",
"databaseName": "foo"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,13 @@
{
"description": "entity-minProperties",
"schemaVersion": "1.0",
"createEntities": [
{}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,24 @@
{
"description": "entity-session-additionalProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"session": {
"id": "session0",
"client": "client0",
"foo": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,22 @@
{
"description": "entity-session-client-required",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"session": {
"id": "session0"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,23 @@
{
"description": "entity-session-client-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"session": {
"id": "session0",
"client": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,22 @@
{
"description": "entity-session-id-required",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"session": {
"client": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,23 @@
{
"description": "entity-session-id-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"session": {
"id": 0,
"client": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,24 @@
{
"description": "entity-session-sessionOptions-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
},
{
"session": {
"id": "session0",
"client": "client0",
"sessionOptions": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,19 @@
{
"description": "entity-stream-additionalProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"stream": {
"id": "stream0",
"hexBytes": "FF",
"foo": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,18 @@
{
"description": "entity-stream-hexBytes-pattern",
"schemaVersion": "1.0",
"createEntities": [
{
"stream": {
"id": "stream0",
"hexBytes": "FFF"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,17 @@
{
"description": "entity-stream-hexBytes-required",
"schemaVersion": "1.0",
"createEntities": [
{
"stream": {
"id": "stream0"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,18 @@
{
"description": "entity-stream-hexBytes-type",
"schemaVersion": "1.0",
"createEntities": [
{
"stream": {
"id": "stream0",
"hexBytes": 0
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,17 @@
{
"description": "entity-stream-id-required",
"schemaVersion": "1.0",
"createEntities": [
{
"stream": {
"hexBytes": "FF"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,18 @@
{
"description": "entity-stream-id-type",
"schemaVersion": "1.0",
"createEntities": [
{
"stream": {
"id": 0,
"hexBytes": "FF"
}
}
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,25 @@
{
"description": "expectedError-additionalProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectError": {
"foo": 0
}
}
]
}
]
}

View File

@ -0,0 +1,25 @@
{
"description": "expectedError-errorCode-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectError": {
"errorCode": "foo"
}
}
]
}
]
}

View File

@ -0,0 +1,25 @@
{
"description": "expectedError-errorCodeName-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectError": {
"errorCodeName": 0
}
}
]
}
]
}

View File

@ -0,0 +1,25 @@
{
"description": "expectedError-errorContains-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectError": {
"errorContains": 0
}
}
]
}
]
}

View File

@ -0,0 +1,27 @@
{
"description": "expectedError-errorLabelsContain-items",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectError": {
"errorLabelsContain": [
0
]
}
}
]
}
]
}

View File

@ -0,0 +1,25 @@
{
"description": "expectedError-errorLabelsContain-minItems",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectError": {
"errorLabelsContain": []
}
}
]
}
]
}

View File

@ -0,0 +1,25 @@
{
"description": "expectedError-errorLabelsContain-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectError": {
"errorLabelsContain": 0
}
}
]
}
]
}

View File

@ -0,0 +1,27 @@
{
"description": "expectedError-errorLabelsOmit-items",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectError": {
"errorLabelsOmit": [
0
]
}
}
]
}
]
}

View File

@ -0,0 +1,25 @@
{
"description": "expectedError-errorLabelsOmit-minItems",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectError": {
"errorLabelsOmit": []
}
}
]
}
]
}

View File

@ -0,0 +1,25 @@
{
"description": "expectedError-errorLabelsOmit-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectError": {
"errorLabelsOmit": 0
}
}
]
}
]
}

View File

@ -0,0 +1,25 @@
{
"description": "expectedError-isClientError-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectError": {
"isClientError": 0
}
}
]
}
]
}

View File

@ -0,0 +1,25 @@
{
"description": "expectedError-isError-const",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectError": {
"isError": false
}
}
]
}
]
}

View File

@ -0,0 +1,25 @@
{
"description": "expectedError-isError-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectError": {
"isError": 0
}
}
]
}
]
}

View File

@ -0,0 +1,23 @@
{
"description": "expectedError-minProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectError": {}
}
]
}
]
}

View File

@ -0,0 +1,32 @@
{
"description": "expectedEvent-additionalProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0",
"events": [
{
"foo": 0
}
]
}
]
}
]
}
]
}

View File

@ -0,0 +1,34 @@
{
"description": "expectedEvent-commandFailedEvent-commandName-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandFailedEvent": {
"commandName": 0
}
}
]
}
]
}
]
}
]
}

View File

@ -0,0 +1,34 @@
{
"description": "expectedEvent-commandStartedEvent-additionalProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandStartedEvent": {
"foo": 0
}
}
]
}
]
}
]
}
]
}

View File

@ -0,0 +1,34 @@
{
"description": "expectedEvent-commandStartedEvent-command-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandStartedEvent": {
"command": 0
}
}
]
}
]
}
]
}
]
}

View File

@ -0,0 +1,34 @@
{
"description": "expectedEvent-commandStartedEvent-commandName-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandStartedEvent": {
"commandName": 0
}
}
]
}
]
}
]
}
]
}

View File

@ -0,0 +1,34 @@
{
"description": "expectedEvent-commandStartedEvent-databaseName-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandStartedEvent": {
"databaseName": 0
}
}
]
}
]
}
]
}
]
}

View File

@ -0,0 +1,34 @@
{
"description": "expectedEvent-commandSucceededEvent-commandName-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandSucceededEvent": {
"commandName": 0
}
}
]
}
]
}
]
}
]
}

View File

@ -0,0 +1,34 @@
{
"description": "expectedEvent-commandSucceededEvent-reply-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandSucceededEvent": {
"reply": 0
}
}
]
}
]
}
]
}
]
}

View File

@ -0,0 +1,33 @@
{
"description": "expectedEvent-maxProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandStartedEvent": {},
"commandSucceededEvent": {}
}
]
}
]
}
]
}
]
}

View File

@ -0,0 +1,30 @@
{
"description": "expectedEvent-minProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0",
"events": [
{}
]
}
]
}
]
}
]
}

View File

@ -0,0 +1,29 @@
{
"description": "expectedEventsForClient-additionalProperties",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0",
"events": [],
"foo": 0
}
]
}
]
}
]
}

View File

@ -0,0 +1,27 @@
{
"description": "expectedEventsForClient-client-required",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"events": []
}
]
}
]
}
]
}

View File

@ -0,0 +1,28 @@
{
"description": "expectedEventsForClient-client-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": 0,
"events": []
}
]
}
]
}
]
}

View File

@ -0,0 +1,30 @@
{
"description": "expectedEventsForClient-events-items",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0",
"events": [
0
]
}
]
}
]
}
]
}

View File

@ -0,0 +1,27 @@
{
"description": "expectedEventsForClient-events-required",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0"
}
]
}
]
}
]
}

View File

@ -0,0 +1,28 @@
{
"description": "expectedEventsForClient-events-type",
"schemaVersion": "1.0",
"createEntities": [
{
"client": {
"id": "client0"
}
}
],
"tests": [
{
"description": "foo",
"operations": [
{
"name": "foo",
"object": "client0",
"expectEvents": [
{
"client": "client0",
"events": 0
}
]
}
]
}
]
}

View File

@ -0,0 +1,13 @@
{
"description": "initialData-items",
"schemaVersion": "1.0",
"initialData": [
0
],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

View File

@ -0,0 +1,11 @@
{
"description": "initialData-minItems",
"schemaVersion": "1.0",
"initialData": [],
"tests": [
{
"description": "foo",
"operations": []
}
]
}

Some files were not shown because too many files have changed in this diff Show More