@@ -102,6 +102,69 @@ Stream<DynamicTest> dynamicTestsFromCollection() {
102102 () -> assertEquals (OperationType .INVALIDATE , operationType ),
103103 () -> assertEquals (value , operationType .getValue ()));
104104 }),
105+ dynamicTest (
106+ "create" ,
107+ () -> {
108+ String value = "create" ;
109+ OperationType operationType = OperationType .fromString (value );
110+ assertAll (
111+ () -> assertEquals (OperationType .CREATE_COLLECTION , operationType ),
112+ () -> assertEquals (value , operationType .getValue ()));
113+ }),
114+ dynamicTest (
115+ "createIndexes" ,
116+ () -> {
117+ String value = "createIndexes" ;
118+ OperationType operationType = OperationType .fromString (value );
119+ assertAll (
120+ () -> assertEquals (OperationType .CREATE_INDEXES , operationType ),
121+ () -> assertEquals (value , operationType .getValue ()));
122+ }),
123+ dynamicTest (
124+ "refineCollectionShardKey" ,
125+ () -> {
126+ String value = "refineCollectionShardKey" ;
127+ OperationType operationType = OperationType .fromString (value );
128+ assertAll (
129+ () -> assertEquals (OperationType .REFINE_COLLECTION_SHARD_KEY , operationType ),
130+ () -> assertEquals (value , operationType .getValue ()));
131+ }),
132+ dynamicTest (
133+ "reshardCollection" ,
134+ () -> {
135+ String value = "reshardCollection" ;
136+ OperationType operationType = OperationType .fromString (value );
137+ assertAll (
138+ () -> assertEquals (OperationType .RESHARD_COLLECTION , operationType ),
139+ () -> assertEquals (value , operationType .getValue ()));
140+ }),
141+ dynamicTest (
142+ "shardCollection" ,
143+ () -> {
144+ String value = "shardCollection" ;
145+ OperationType operationType = OperationType .fromString (value );
146+ assertAll (
147+ () -> assertEquals (OperationType .SHARD_COLLECTION , operationType ),
148+ () -> assertEquals (value , operationType .getValue ()));
149+ }),
150+ dynamicTest (
151+ "modify" ,
152+ () -> {
153+ String value = "modify" ;
154+ OperationType operationType = OperationType .fromString (value );
155+ assertAll (
156+ () -> assertEquals (OperationType .MODIFY_COLLECTION , operationType ),
157+ () -> assertEquals (value , operationType .getValue ()));
158+ }),
159+ dynamicTest (
160+ "dropIndexes" ,
161+ () -> {
162+ String value = "dropIndexes" ;
163+ OperationType operationType = OperationType .fromString (value );
164+ assertAll (
165+ () -> assertEquals (OperationType .DROP_INDEXES , operationType ),
166+ () -> assertEquals (value , operationType .getValue ()));
167+ }),
105168 dynamicTest (
106169 "unknown" ,
107170 () -> {
0 commit comments