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

DATAGO-89836: Support Scan for Public CEMA #228

Merged
merged 5 commits into from
Jan 30, 2025

Conversation

rudraneel-chakraborty
Copy link
Contributor

@rudraneel-chakraborty rudraneel-chakraborty commented Jan 27, 2025

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

@rudraneel-chakraborty rudraneel-chakraborty marked this pull request as ready for review January 28, 2025 21:27
@@ -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())
Copy link
Contributor Author

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

Copy link
Collaborator

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");
Copy link
Collaborator

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?

Copy link
Collaborator

@moodiRealist moodiRealist left a 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.

Copy link

@rudraneel-chakraborty rudraneel-chakraborty merged commit 3b74e50 into main Jan 30, 2025
6 checks passed
@rudraneel-chakraborty rudraneel-chakraborty deleted the DATAGO-89836-public-cema-scan branch January 30, 2025 19:30
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.

2 participants