-
Notifications
You must be signed in to change notification settings - Fork 49
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
[MNEDC]Resolving: SonarCloud defects for hardcoded IP #280
Conversation
123b535
to
a912638
Compare
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.
Thank you very much for your efforts!
Please take a look at my comments.
internal/controller/discoverymgr/mnedc/server/mocks/mocks_server.go
Outdated
Show resolved
Hide resolved
internal/controller/discoverymgr/mnedc/server/mocks/mocks_server.go
Outdated
Show resolved
Hide resolved
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 refer to my comment! 😄
internal/controller/discoverymgr/mnedc/server/mocks/mocks_server.go
Outdated
Show resolved
Hide resolved
81c590e
to
85f88a2
Compare
Thanks for the review! Pushed the review changes, PTAL. |
1. To avoid hardcoding of MNEDC server IP : - Generated a random virtual IP for the server of the type 10.<RANDOM>.<RANDOM>.1 2. To avoid same Numbers being assigned on every run, Seed for the pseudo-random generator has been randomized according to current time 3. In case of a clash between the Actual(Private) IP and the Virtual IP a new random Virtual IP had been generated. 4. Fixed the Test cased and Generated new mocks as Function Signatures have changed Signed-off-by: Sunchit Sharma <sun.sharma@samsung.com>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
LGTM. Thanks!
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.
LGTM
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.
+1
Signed-off-by: Sunchit Sharma sun.sharma@samsung.com
Description
Fixes #273
Type of change
How Has This Been Tested?
#Logs
Main System
Sub System
Successively, in all runs different IPs were assigned.
Test environment configuration:
Checklist: