-
Notifications
You must be signed in to change notification settings - Fork 67
SWIFT-1310, SWIFT-1307: Make unified test runner changes needed for load balancer testing, expose serviceID in command monitoring events #662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| } | ||
| } | ||
|
|
||
| struct UnifiedCreateFindCursor: UnifiedOperationProtocol { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.