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

Enclave over WebSockets #623

Merged
merged 23 commits into from
Feb 12, 2019
Merged

Enclave over WebSockets #623

merged 23 commits into from
Feb 12, 2019

Conversation

melowe
Copy link
Contributor

@melowe melowe commented Feb 6, 2019

Currently dormant module enabling the remoting of enclave over WebSockets in the same way as enclave-jaxws remotes over rest/http. EnclaveEndpointTest fires up local WebSockets server and delegates to mocked enclave instance.

Move all enclave related config out of core into enclave api module . 
Add tactical workaround for handing null always sendto list in the form 
of a helper class.
integration test for enclave standalone.
Encode bytearrays to base64 and provide nessesary codecs. 
Use json as transport format rarher than object serialisation.
codec class name as discriminator value as all values being decoded
are encoded by the same object.
Leave default error handing for server errors until we require anything 
else.
@codecov-io
Copy link

codecov-io commented Feb 6, 2019

Codecov Report

Merging #623 into master will decrease coverage by 0.02%.
The diff coverage is 99.16%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #623      +/-   ##
============================================
- Coverage     99.45%   99.42%   -0.03%     
- Complexity     1731     1863     +132     
============================================
  Files           267      289      +22     
  Lines          5305     5783     +478     
  Branches        263      274      +11     
============================================
+ Hits           5276     5750     +474     
  Misses            5        5              
- Partials         24       28       +4
Impacted Files Coverage Δ Complexity Δ
...rc/main/java/com/quorum/tessera/config/Config.java 100% <ø> (ø) 28 <0> (-1) ⬇️
...pmorgan/quorum/tessera/sync/PartyInfoEndpoint.java 100% <100%> (ø) 6 <6> (?)
.../quorum/tessera/enclave/RawTransactionBuilder.java 100% <100%> (ø) 6 <6> (?)
...lave/websockets/EnclaveCommunicationException.java 100% <100%> (ø) 1 <1> (?)
.../quorum/tessera/enclave/EncodedPayloadBuilder.java 100% <100%> (ø) 9 <9> (?)
...om/jpmorgan/quorum/enclave/websockets/ArgType.java 100% <100%> (ø) 1 <1> (?)
...rgan/quorum/enclave/websockets/PublicKeyCodec.java 100% <100%> (ø) 3 <3> (?)
...rgan/quorum/enclave/websockets/EnclaveFactory.java 100% <100%> (ø) 1 <1> (?)
.../quorum/enclave/websockets/EnclaveRequestType.java 100% <100%> (ø) 3 <3> (?)
...rgan/quorum/enclave/websockets/EnclaveAdapter.java 100% <100%> (ø) 21 <21> (?)
... and 36 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 40d6cfd...38b0569. Read the comment docs.

@Krish1979 Krish1979 merged commit 3660efc into master Feb 12, 2019
@melowe melowe deleted the feature/enclave branch February 15, 2019 11:01
@prd-fox prd-fox added this to the 0.9 milestone Feb 21, 2019
@Krish1979 Krish1979 added 0.9 enhancement Non-user code enhancements labels Apr 9, 2019
@Krish1979 Krish1979 removed this from the 0.9 milestone Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.9 enhancement Non-user code enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants