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

Experimental/jsonrpc: _WIP_Implement JSONRPC as wire protocol #67

Draft
wants to merge 58 commits into
base: experimental/jsonrpc
Choose a base branch
from
Draft

Experimental/jsonrpc: _WIP_Implement JSONRPC as wire protocol #67

wants to merge 58 commits into from

Conversation

nbrendah
Copy link

Motivation: Implement JSONRPC as wire protocol #56

Explain here the context, and why you're making that change, what is the problem you're trying to solve.
The is need to continue with work about implementing JSON-RPC

Conformance: Work is still in progress

Your commits should be signed and you should have signed the Eclipse Contributor Agreement as explained in https://github.com/eclipse/vert.x/blob/master/CONTRIBUTING.md
Please also make sure you adhere to the code style guidelines: https://github.com/vert-x3/wiki/wiki/Vert.x-code-style-guidelines

dependabot bot and others added 30 commits October 28, 2021 13:18
Introduce SSLKeyPairCerts to generate SSL key pairs and certificates instead of having the keystore files
new Buffer(num) decprecated due to security issues, the new method Buffer.alloc(num) was introduced to fix the problem, an update was made to refix the security problem.
import static io.vertx.ext.eventbus.bridge.tcp.impl.protocol.JsonRPCHelper.request;

@RunWith(VertxUnitRunner.class)
public class JsonRPCIntegrationTest {
Copy link
Author

@nbrendah nbrendah Oct 29, 2021

Choose a reason for hiding this comment

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

@pmlopes The rest aren't worth looking at. They came as a result of a rebase, to the curerent changes on master.
However, i have majorly done a copy and paste though i tried to understand the logic.

// There is now way to know that the register actually happened, wait a bit before sending.
vertx.setTimer(500L, timerId -> {
vertx.eventBus().<JsonObject>request(address, new JsonObject().put("value", "Vert.x"), respMessage -> {
context.assertTrue(respMessage.failed());
Copy link
Author

@nbrendah nbrendah Oct 29, 2021

Choose a reason for hiding this comment

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

The response message is null currently i had to just assert that the message response fails so that i get a green light, push here as i look more into this issue. I am still looking into this. My major aim is to find out how to do something like:

if(responseMessage.isExpected()){
  assertTrue(respMessage == null);
}

I am still banging my head on the wall. I believe by late November, i won't be as blind as i am now.

@@ -166,6 +167,7 @@ public void testErrorReply(TestContext should) {
}

@Test(timeout = 10_000L)
@Ignore
Copy link
Author

Choose a reason for hiding this comment

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

I have ignored all the failing methods in JsonRPCStreamEventBusBridgeTest.java class.

I was thinking of ignoring this whole test class. If its a prettier alternative, i am willing to alter.

@nbrendah
Copy link
Author

@pmlopes This is just a draft and most logic is still in progress. I majorly created this for discussion.
Please i am looking for your suggestions.
I have been following the discussions on Discord, but however, i don't know the right channel to post in questions.
I would also wish to join your weekly, monthly calls.

Thank you so much @pmlopes

@nbrendah nbrendah changed the title Experimental/jsonrpc: Implement JSONRPC as wire protocol Experimental/jsonrpc: _WIP_Implement JSONRPC as wire protocol Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants