Skip to content
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

test with sslcontext #205

Merged
merged 1 commit into from
Dec 27, 2023
Merged

test with sslcontext #205

merged 1 commit into from
Dec 27, 2023

Conversation

pjfanning
Copy link
Contributor

@pjfanning pjfanning commented Dec 27, 2023

The new tests in GrpcInteropIoWithPekkoNettyScalaWithSslContextSpec fail without the fix in #199

update tests
@pjfanning pjfanning added this to the v1.0.2 milestone Dec 27, 2023
@@ -41,21 +41,29 @@ import scala.util.control.NoStackTrace
* The same implementation is also be found as part of the 'scripted' tests at
* /sbt-plugin/src/sbt-test/gen-scala-server/00-interop/src/test/scala/org/apache/pekko/grpc/PekkoGrpcClientTester.scala
*/
class PekkoGrpcScalaClientTester(val settings: Settings, backend: String)(implicit system: ActorSystem)
extends ClientTester {
class PekkoGrpcScalaClientTester(val settings: Settings, backend: String, testWithSslContext: Boolean)(
Copy link
Member

Choose a reason for hiding this comment

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

maybe better with a trait
SslContextProvider, and the false can be expressed by returning None.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is test code. And the SSL context is created inside this class. Not outside.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When we have a use case for creating the SSL context outside - we can change then. Seems bad to overengineer test code

Copy link
Member

@He-Pin He-Pin left a comment

Choose a reason for hiding this comment

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

Lgtm

@pjfanning pjfanning merged commit 14a11e2 into apache:main Dec 27, 2023
17 checks passed
@pjfanning pjfanning deleted the test-sslcontext branch December 27, 2023 19:00
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.

2 participants