-
Notifications
You must be signed in to change notification settings - Fork 402
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
Fabric Gateway connector implementation: PeerGateway.js implementation + unit tests #1270
Conversation
@fraVlaca as per #1270 (comment) |
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.
Some initial comments
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-configuration/ConnectionProfileDefinition.js
Outdated
Show resolved
Hide resolved
5f269ff
to
d605b24
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.
Looking good, some minor points and improvements
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/test/sample-configs/NetworkConfigNotMutual.yaml
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/test/sample-configs/Org2ConnectionProfile.yaml
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/test/sample-configs/Org2ConnectionProfile.yaml
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/test/sample-configs/Org2ConnectionProfile.yaml
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/test/sample-configs/Org2ConnectionProfile.yaml
Outdated
Show resolved
Hide resolved
4418ebc
to
3ec0a95
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.
Sorry, some more changes required
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/test/sample-configs/Org2ConnectionProfile.yaml
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/test/sample-configs/Org2StaticConnProfile.yaml
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/test/sample-configs/NetworkConfigNotMutual.yaml
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/test/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/test/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
packages/caliper-fabric/lib/connector-versions/peer-gateway/PeerGateway.js
Outdated
Show resolved
Hide resolved
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.
Almost there
…ests + added minor changes to the connectionProfileDefinition Signed-off-by: fraVlaca <ocsenarf@outlook.com>
clock.restore(); | ||
}); | ||
|
||
it('should pass the default timeout in the gateway options', async () => { |
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.
duplicate test
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
Added main logic for the new peer-gateaway connector with unit tests