Skip to content

Commit adda483

Browse files
RUBY-3225 New spec test for timeseries (#2733)
1 parent dc0865c commit adda483

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

spec/spec_tests/data/collection_management/timeseries-collection.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,38 @@ tests:
127127
filter: {}
128128
sort: { time: 1 }
129129
databaseName: *database0Name
130+
131+
- description: "createCollection with bucketing options"
132+
runOnRequirements:
133+
- minServerVersion: "7.0"
134+
operations:
135+
- name: dropCollection
136+
object: *database0
137+
arguments:
138+
collection: *collection0Name
139+
- name: createCollection
140+
object: *database0
141+
arguments:
142+
collection: *collection0Name
143+
timeseries: &timeseries1
144+
timeField: "time"
145+
bucketMaxSpanSeconds: 3600
146+
bucketRoundingSeconds: 3600
147+
- name: assertCollectionExists
148+
object: testRunner
149+
arguments:
150+
databaseName: *database0Name
151+
collectionName: *collection0Name
152+
expectEvents:
153+
- client: *client0
154+
events:
155+
- commandStartedEvent:
156+
command:
157+
drop: *collection0Name
158+
databaseName: *database0Name
159+
- commandStartedEvent:
160+
command:
161+
create: *collection0Name
162+
timeseries: *timeseries1
163+
databaseName: *database0Name
164+

0 commit comments

Comments
 (0)