-
Notifications
You must be signed in to change notification settings - Fork 295
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
feat(cmd-socketio-server): support multiple BLP in single server #2103
Conversation
@jagpreetsinghsasan @izuru0 Please review (only the last commit) |
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.
LGTM
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.
LGTM
This PR/issue depends on:
|
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.
@outSH LGTM, thank you!
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.
@outSH Please resolve the merge conflict and then we are good to go!
a3e20fb
to
b3e9abf
Compare
@petermetz Resolved |
b3e9abf
to
0305f53
Compare
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.
@outSH Thank you! LGTM
At the same time though, I see this test failure which does not look like a flake. Could you please take a look?
FAIL packages/cactus-cmd-socketio-server/src/test/typescript/unit/cmd-socketio-blp-plugin.test.ts
● Test suite failed to run
ENOENT: no such file or directory, open '/etc/cactus/validator-registry-config.yaml'
67 |
68 | constructor(path: string) {
> 69 | const yamlText = fs.readFileSync(path, "utf8");
| ^
70 | const yamlObj = yaml.safeLoad(yamlText);
71 | this.ledgerPluginInfo = yamlObj.ledgerPluginInfo;
72 | this.signTxInfo = yamlObj.signTxInfo;
at new ValidatorRegistry (packages/cactus-cmd-socketio-server/src/main/typescript/verifier/validator-registry.ts:69:25)
at Object.<anonymous> (packages/cactus-cmd-socketio-server/src/main/typescript/routing-interface/util/DBAccess.ts:18:43)
at Object.<anonymous> (packages/cactus-cmd-socketio-server/src/main/typescript/routing-interface/util/LPInfoHolder.ts:8:1)
0305f53
to
742fe49
Compare
@petermetz Oh yes. sorry I've missed that - should be fixed now :) |
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.
@outSH Please fix the merge conflict and then pass it back for review!
742fe49
to
46dbd01
Compare
@petermetz Rebased and tested - ready to merge |
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.
@outSH LGTM, thank you!
- Add support for starting Cactus CMD SocketIO server with multiple Bussiness Logic Plugins (BLP). All required TransactionManagement request should be routed to the correct BLP. - Add optional onListening callback when starting the cactus cmd socketio server, to simplify tests. - Fix some bugs and hard-coded BLP Ids in TransactionManagement. - Add new unit tests to check newly added functionalities. Closes hyperledger-cacti#2102 Depends on hyperledger-cacti#2030 Signed-off-by: Michal Bajer <[email protected]>
46dbd01
to
1df78e3
Compare
All required TransactionManagement request should be routed to the correct BLP.
Closes #2102
Depends on #2030
Signed-off-by: Michal Bajer [email protected]