-
Notifications
You must be signed in to change notification settings - Fork 34
Use Conformance repo proto files #165
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
Tests/ConnectLibraryTests/ConnectConformance/AsyncAwaitConformance.swift
Outdated
Show resolved
Hide resolved
| try await self.executeTestWithClients { client in | ||
| let expectedErrorDetail = Grpc_Testing_ErrorDetail.with { proto in | ||
| proto.reason = "soirée 🎉" | ||
| proto.domain = "connect-crosstest" |
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.
Is this correct?
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.
It is yeah. This didn't change until the repo was moved. This updates to the commit right before that (follow-up PR will address this).
Tests/ConnectLibraryTests/ConnectConformance/CallbackConformance.swift
Outdated
Show resolved
Hide resolved
| try self.executeTestWithClients { client in | ||
| let expectedErrorDetail = Grpc_Testing_ErrorDetail.with { proto in | ||
| proto.reason = "soirée 🎉" | ||
| proto.domain = "connect-crosstest" |
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.
Same here
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.
Yep, see above.
Tests/ConnectLibraryTests/ConnectConformance/CallbackConformance.swift
Outdated
Show resolved
Hide resolved
…ce.swift Co-authored-by: Michael Rebello <me@michaelrebello.com>
This adds some improvements and updates to the Connect Conformance Tests. Namely:
failServerStreamingchanged here to inspect response parameters and return that amount of responses before failing so that users could test trailers-only responses. This fixes the current test so that it doesn't send any response parameters and expects an error straightaway. In addition, it adds another test to test that some messages are received before the error.Note that this updates Connect-Swift to use commit 6ce5b0, but this is not the current commit. This is because all commits afterwards cause two additional tests to fail (
failUnaryandfailServerStreaming) due to issues with parsing ErrorDetails. Those will be fixed in a follow-up PR.