Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1381,10 +1381,10 @@ public OperationResult executeCreateCollection(final BsonDocument operation) {
// In Java driver there is a separate method for creating a view, but in the unified test CRUD format
// views and collections are both created with the createCollection operation. We use the createView
// method if the requisite arguments are present.
if (arguments.containsKey("viewOn") && arguments.containsKey("pipeline")) {
if (arguments.containsKey("viewOn")) {
String viewOn = arguments.getString("viewOn").getValue();
List<BsonDocument> pipeline =
arguments.getArray("pipeline").stream().map(BsonValue::asDocument).collect(toList());
arguments.getArray("pipeline", new BsonArray()).stream().map(BsonValue::asDocument).collect(toList());
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If no pipeline provided, use an empty one.


for (Map.Entry<String, BsonValue> cur : arguments.entrySet()) {
switch (cur.getKey()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ public static void applyCustomizations(final TestDef def) {
.test("change-streams", "change-streams-errors", "Change Stream should error when an invalid aggregation stage is passed in")
.test("change-streams", "change-streams-errors", "The watch helper must not throw a custom exception when executed against a single server topology, but instead depend on a server error");

def.skipJira("https://jira.mongodb.org/browse/JAVA-5769")
.test("change-streams", "change-streams-nsType", "nsType is present when creating views");

// client-side-operation-timeout (CSOT)

def.skipNoncompliantReactive("No good way to fulfill tryNext() requirement with a Publisher<T>")
Expand Down