-
Notifications
You must be signed in to change notification settings - Fork 3
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
DATAGO-89836: Support Scan for Public CEMA #228
Conversation
@@ -45,6 +48,7 @@ public void runScan(String messagingServiceId, String filePathAndName) throws In | |||
.messagingServiceId(messagingServiceId) | |||
.scanId(idGenerator.generateRandomUniqueId()) | |||
.destinations(List.of("FILE_WRITER")) | |||
.orgId(eventPortalProperties.getOrganizationId()) |
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.
for command line scan, pass in the org_id from application.yaml
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.
ok
ScanStatus status) { | ||
|
||
Validate.notBlank(orgId, "Organization ID cannot be null or empty"); |
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.
I see that this error message have been used in many places. Can we add a CONSTANT for it plz?
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.
Approved with a minor comment about using a Constant variable instead of hardcoded strings.
SonarQube Quality Gate |
What is the purpose of this change?
Implement the asks of https://sol-jira.atlassian.net/browse/DATAGO-89836
There is an ep-core component to this ticket : https://github.com/SolaceDev/maas-ep-core/pull/3392
How was this change implemented?
Java
How was this change tested?
IT, Manually in local/cloud environment
Is there anything the reviewers should focus on/be aware of?
We mostly have Unit tests written for the scan functionality and not many IT tests. Due to the complexity introduced because of camel I am guessing. As a result, tne unit tests are scattered all over the place and the reafactoring required to have a cohesive IT test setup for scan is beyond the scope.
As a result, I tried to add tests but the coverage and test setup MUST be improved