...
1{
2 "description": "createCollection-pre_and_post_images",
3 "schemaVersion": "1.4",
4 "runOnRequirements": [
5 {
6 "minServerVersion": "6.0",
7 "serverless": "forbid"
8 }
9 ],
10 "createEntities": [
11 {
12 "client": {
13 "id": "client0",
14 "observeEvents": [
15 "commandStartedEvent"
16 ]
17 }
18 },
19 {
20 "database": {
21 "id": "database0",
22 "client": "client0",
23 "databaseName": "papi-tests"
24 }
25 },
26 {
27 "collection": {
28 "id": "collection0",
29 "database": "database0",
30 "collectionName": "test"
31 }
32 }
33 ],
34 "tests": [
35 {
36 "description": "createCollection with changeStreamPreAndPostImages enabled",
37 "operations": [
38 {
39 "name": "dropCollection",
40 "object": "database0",
41 "arguments": {
42 "collection": "test"
43 }
44 },
45 {
46 "name": "createCollection",
47 "object": "database0",
48 "arguments": {
49 "collection": "test",
50 "changeStreamPreAndPostImages": {
51 "enabled": true
52 }
53 }
54 },
55 {
56 "name": "assertCollectionExists",
57 "object": "testRunner",
58 "arguments": {
59 "databaseName": "papi-tests",
60 "collectionName": "test"
61 }
62 }
63 ],
64 "expectEvents": [
65 {
66 "client": "client0",
67 "events": [
68 {
69 "commandStartedEvent": {
70 "command": {
71 "drop": "test"
72 },
73 "databaseName": "papi-tests"
74 }
75 },
76 {
77 "commandStartedEvent": {
78 "command": {
79 "create": "test",
80 "changeStreamPreAndPostImages": {
81 "enabled": true
82 }
83 },
84 "databaseName": "papi-tests"
85 }
86 }
87 ]
88 }
89 ]
90 }
91 ]
92}
View as plain text