fix(connector-ethereum): additional properties to deployContract does not throw error #3507
Labels
bug
Something isn't working
good-first-issue
Good for newcomers
good-first-issue-400-expert
P4
Priority 4: Low
Tests
Anything related to tests be that automatic or manual, integration or unit, etc.
Milestone
Describe the bug
The deployContract function in cactus-plugin-ledger-connector-ethereum takes DeployContractV1Request as an argument, which already declares additional properties as forbidden in the Open API spec as can be seen here:
However in various tests that input additional properties, and expect an error to be thrown, the test actually passes.
To Reproduce
Run the test beginning on this line.
The test should throw an error, but it passes without an error.
Expected behavior
The test should throw an error saying additional properties are forbidden.
Logs/Stack traces
Run the test this way, with the fail statement commented out, as that was actually causing the test to fail rather than the additional parameters provided (fake: 4 is the additional parameter):
And it will return this in the log:
Full log here:
testPassed.txt
Hyperledger Cactus Plugins/Connectors Used
Additional context
The text was updated successfully, but these errors were encountered: