feat(metadata)!: replace REST device validation callback with MessageBus#4366
Merged
lenny-goodell merged 2 commits intoedgexfoundry:mainfrom Feb 22, 2023
chr1shung:issue-4236
Merged
feat(metadata)!: replace REST device validation callback with MessageBus#4366lenny-goodell merged 2 commits intoedgexfoundry:mainfrom chr1shung:issue-4236
lenny-goodell merged 2 commits intoedgexfoundry:mainfrom
chr1shung:issue-4236
Conversation
Merged
5 tasks
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #4366 +/- ##
=======================================
Coverage 43.71% 43.71%
=======================================
Files 116 116
Lines 10713 10712 -1
=======================================
Hits 4683 4683
+ Misses 5610 5609 -1
Partials 420 420
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
lenny-goodell
requested changes
Feb 21, 2023
|
|
||
| var responseEnvelope types.MessageEnvelope | ||
| mockMessaging := &messagingMocks.MessageClient{} | ||
| mockMessaging.On("Publish", mock.Anything, mock.Anything).Return(nil) |
Member
There was a problem hiding this comment.
Why is mock on Publish needed here? Request encapsulates it, should mocking Request will keep it from actually being called.
Author
There was a problem hiding this comment.
This is called in valid case for publishing system event.
I added ffb0bc6 to better test this behavior
added 2 commits
February 22, 2023 12:04
BREAKING CHANGE: adding new device requires device service running closes #4236 Signed-off-by: Chris Hung <chris@iotechsys.com>
to actually test the message bus behavior Signed-off-by: Chris Hung <chris@iotechsys.com>
|
Kudos, SonarCloud Quality Gate passed! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








BREAKING CHANGE: adding new device requires device service running
closes #4236
If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:
BREAKING CHANGE:describing the break)Testing Instructions
See edgexfoundry/device-sdk-go#1325
New Dependency Instructions (If applicable)