Skip to content

Commit 89df8c4

Browse files
committed
Sync unified spec tests
1 parent 08e8303 commit 89df8c4

16 files changed

+4079
-2
lines changed

tests/UnifiedSpecTests/UnifiedSpecTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function testPassingTests(stdClass $test, string $schemaVersion, array $r
142142

143143
public function providePassingTests()
144144
{
145-
return $this->provideTests('/home/jmikola/workspace/mongodb/specifications/source/unified-test-format/tests/valid-pass');
145+
return $this->provideTests(__DIR__ . '/valid-pass');
146146
}
147147

148148
/**
@@ -164,7 +164,7 @@ public function testFailingTests(...$args)
164164

165165
public function provideFailingTests()
166166
{
167-
return $this->provideTests('/home/jmikola/workspace/mongodb/specifications/source/unified-test-format/tests/valid-fail');
167+
return $this->provideTests(__DIR__ . '/valid-fail');
168168
}
169169

170170
private function provideTests(string $dir)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"description": "entity-bucket-database-undefined",
3+
"schemaVersion": "1.0",
4+
"createEntities": [
5+
{
6+
"bucket": {
7+
"id": "bucket0",
8+
"database": "foo"
9+
}
10+
}
11+
],
12+
"tests": [
13+
{
14+
"description": "foo",
15+
"operations": []
16+
}
17+
]
18+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"description": "entity-collection-database-undefined",
3+
"schemaVersion": "1.0",
4+
"createEntities": [
5+
{
6+
"collection": {
7+
"id": "collection0",
8+
"database": "foo",
9+
"collectionName": "foo"
10+
}
11+
}
12+
],
13+
"tests": [
14+
{
15+
"description": "foo",
16+
"operations": []
17+
}
18+
]
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"description": "entity-database-client-undefined",
3+
"schemaVersion": "1.0",
4+
"createEntities": [
5+
{
6+
"database": {
7+
"id": "database0",
8+
"client": "foo",
9+
"databaseName": "foo"
10+
}
11+
}
12+
],
13+
"tests": [
14+
{
15+
"description": "foo",
16+
"operations": []
17+
}
18+
]
19+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"description": "entity-session-client-undefined",
3+
"schemaVersion": "1.0",
4+
"createEntities": [
5+
{
6+
"session": {
7+
"id": "session0",
8+
"client": "foo"
9+
}
10+
}
11+
],
12+
"tests": [
13+
{
14+
"description": "foo",
15+
"operations": []
16+
}
17+
]
18+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"description": "schemaVersion-unsupported",
3+
"schemaVersion": "0.1",
4+
"tests": [
5+
{
6+
"description": "foo",
7+
"operations": []
8+
}
9+
]
10+
}

0 commit comments

Comments
 (0)