-
Notifications
You must be signed in to change notification settings - Fork 13
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
CARMA Cloud ambassador integration #200
Conversation
.../src/main/java/org/eclipse/mosaic/fed/carmacloud/ambassador/CarmaCloudMessageAmbassador.java
Show resolved
Hide resolved
*/ | ||
public class CarmaCloudRegistrationReceiver implements Runnable | ||
{ | ||
private static final int LISTEN_PORT = 1617; // which port for CARMA Cloud? |
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.
Is this comment still relevant?
...d/src/main/java/org/eclipse/mosaic/fed/carmacloud/configuration/CarmaCloudConfiguration.java
Show resolved
Hide resolved
private StringBuilder messageBuf = new StringBuilder(); | ||
private HttpServer oSrvr; | ||
|
||
class TimeSyncHandler implements HttpHandler { |
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.
Nit: We should probably leave a comment for the unit test to remove the HTTP Server and use mocks instead. Using an actual HttpServer for a unit test makes the unit test harder to maintain and likely causes the unit test to require more resources (time and processing). Not high priority right now but a TODO comment will help us track this technical debt.
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.
Left some small comments.
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.
Please remove comment/unused unit tests. Then I am good with this PR.
Quality Gate passedIssues Measures |
PR Details
Description
This PR primarily focuses on merging a branch into develop, which encompasses the integration testing of CARMA Cloud with CDASim. The purpose of this integration test was to assess the communication between CARMA Cloud and CDASim, ensuring that:
All components operate correctly within CDASim without encountering any significant problems.
CARMA Cloud successfully registers with Ambassador.
CARMA Cloud receives and processes time synchronization messages.
Related GitHub Issue
Related Jira Key
CXC-10
Motivation and Context
How Has This Been Tested?
Types of changes
Checklist: