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

fix: openapi-validation test for quorum plugin #1287

Merged

Conversation

elenaizaguirre
Copy link
Contributor

@elenaizaguirre elenaizaguirre commented Aug 31, 2021

Includes tests for endpoints deployContractSolBytecodeV1,
invokeContractV1 and runTransactionV1, each of them
with test cases:

  • Right request
  • Request including an invalid parameter
  • Request without a required parameter

Closes: #1286

Relationed with #847

Signed-off-by: Elena Izaguirre e.izaguirre.equiza@accenture.com

@elenaizaguirre elenaizaguirre force-pushed the openapi-validation-quorum branch from b548765 to f2b6d8f Compare September 1, 2021 07:42
@codecov-commenter
Copy link

codecov-commenter commented Sep 1, 2021

Codecov Report

Merging #1287 (4ef11fe) into main (5bf13e9) will increase coverage by 0.11%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1287      +/-   ##
==========================================
+ Coverage   67.83%   67.95%   +0.11%     
==========================================
  Files         301      301              
  Lines       10948    10948              
  Branches     1347     1347              
==========================================
+ Hits         7427     7440      +13     
+ Misses       2832     2817      -15     
- Partials      689      691       +2     
Impacted Files Coverage Δ
...-services/install-open-api-validator-middleware.ts 80.00% <0.00%> (+5.00%) ⬆️
...g/src/main/typescript/quorum/quorum-test-ledger.ts 75.00% <0.00%> (+7.31%) ⬆️

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 5bf13e9...4ef11fe. Read the comment docs.

Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

@elenaizaguirre Same requests/questions here as in the other OpenAPI validation PR

@elenaizaguirre elenaizaguirre force-pushed the openapi-validation-quorum branch from f2b6d8f to 0ecadc3 Compare September 2, 2021 11:02
Includes tests for endpoints deployContractSolBytecodeV1,
invokeContractV1 and runTransactionV1, each of them
with test cases:
  - Right request
  - Request including an invalid parameter
  - Request without a required parameter

Closes hyperledger-cacti#1286

Relationed with hyperledger-cacti#847

Signed-off-by: Elena Izaguirre <e.izaguirre.equiza@accenture.com>
@elenaizaguirre elenaizaguirre force-pushed the openapi-validation-quorum branch from 0ecadc3 to ea61f3e Compare September 14, 2021 07:38
@elenaizaguirre elenaizaguirre changed the title fix: openapi-validation for quorum plugin fix: openapi-validation test for quorum plugin Sep 14, 2021
@petermetz petermetz marked this pull request as ready for review September 14, 2021 19:41
Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

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

LGTM

@petermetz petermetz removed the request for review from jonathan-m-hamilton September 14, 2021 19:41
@petermetz petermetz merged commit 8a4222a into hyperledger-cacti:main Sep 16, 2021
@petermetz petermetz deleted the openapi-validation-quorum branch September 16, 2021 22:24
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.

fix(plugin-ledger-connector-quorum): OpenAPI spec validation missing from plugin REST endpoints
4 participants