Skip to content

Conversation

@kmahar
Copy link
Contributor

@kmahar kmahar commented Aug 17, 2021

I think this is all the test runner changes we need for load balancer support, except perhaps support for reading in the load balancer URIs, but I think it makes sense to wait til I'm actually at the stage of running new load balancer tests to figure that part out.

Since the runner needed capability to assert on serviceID in command monitoring events, I added that property to the events as well here.

}
}

struct UnifiedCreateFindCursor: UnifiedOperationProtocol {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

guard let next = cs.next() else {
throw TestError(message: "Change stream unexpectedly exhausted")
let entity = try context.entities.getEntity(from: object)
switch entity {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this operation now supports multiple target types: https://github.com/mongodb/specifications/blob/master/source/unified-test-format/unified-test-format.rst#iterateuntildocumentorerror

accordingly, I renamed this file since the operations aren't just change stream specific anymore

}
}

struct UnifiedCloseCursor: UnifiedOperationProtocol {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kmahar kmahar marked this pull request as ready for review August 17, 2021 22:33
@kmahar kmahar requested a review from patrickfreed August 17, 2021 22:33
@kmahar kmahar merged commit 3d2bf27 into main Aug 18, 2021
@kmahar kmahar deleted the SWIFT-1310/lb-test-runner branch August 18, 2021 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants