-
Notifications
You must be signed in to change notification settings - Fork 0
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
Samples: 04.1-file-transfer-listener: add automated test in sample 04.1 #317
Samples: 04.1-file-transfer-listener: add automated test in sample 04.1 #317
Conversation
* reused from branch feature/1269-automated-tests-sample-040 * adjusted to module :samples:04.1-file-transfer-listener:integration-tests
…automated-test-sample-041
Codecov Report
@@ Coverage Diff @@
## feature/1535-automated-tests-sample-041 #317 +/- ##
========================================================================
Coverage 67.31% 67.31%
========================================================================
Files 771 771
Lines 16599 16599
Branches 1050 1050
========================================================================
Hits 11173 11173
Misses 4945 4945
Partials 481 481 Continue to review full report at Codecov.
|
…automated-test-sample-041
…automated-test-sample-041
* chore: add adoption_request.md * chore: apply feedback
…-test-400' into feature/1535/254-automated-test-sample-041
…automated-test-sample-041
…-test-400' into feature/1535/254-automated-test-sample-041 # Conflicts: # samples/04.0-file-transfer/integration-tests/src/testFixtures/java/org/eclipse/dataspaceconnector/extension/sample/test/FileTransferSampleTestCommon.java
public static int getInt(@NotNull DescriptionRequestMessage message, String propertyName, int defaultValue) { | ||
return ofNullable(message.getProperties()) | ||
.map(map -> map.get(propertyName)) | ||
.map(v -> Integer.parseInt(v.toString())) |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
+ change module name
…om:agera-edc/DataSpaceConnector into feature/1535/254-automated-test-sample-041
…ple-041' into feature/1535/254-automated-test-sample-041
What this PR changes/adds
This PR adds automated integration tests that run in CI to prevent the samples breaking due to changes in the EDC. The scope of this story is to add automated integration tests for sample 04.1.
FileTransferListenerSampleTest.java
.Why it does that
Every step from sample readme is reproduced in the automated tests to reduce the risk from sample guidance diverging from actual code base.
Further notes
samples/04.1-file-transfer-listener/README.md
fixing changed references.Linked Issue(s)
Predecessor: #319
Closes #254
Checklist
no-changelog
)