-
Notifications
You must be signed in to change notification settings - Fork 672
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
MG-2136 - Generate mocks with mockery for Bootstrap service #2128
MG-2136 - Generate mocks with mockery for Bootstrap service #2128
Conversation
Please sign off your commits, check DCO report here and fix. |
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.
We do not need mocks for the ws and coap services since they are not used. Only replace manually written mocks with generated mocks.
An example is bootstrap service, we have manually written mocks for the service but we need to have them generated instead.
Also update the mockery version used to use the latest version |
Signed-off-by: nyagamunene <[email protected]>
Signed-off-by: nyagamunene <[email protected]>
Signed-off-by: nyagamunene <[email protected]>
Signed-off-by: nyagamunene <[email protected]>
Signed-off-by: nyagamunene <[email protected]>
321c76e
to
2b56793
Compare
Signed-off-by: nyagamunene <[email protected]>
Signed-off-by: nyagamunene <[email protected]>
Signed-off-by: nyagamunene <[email protected]>
Signed-off-by: nyagamunene <[email protected]>
@@ -60,6 +60,8 @@ type ConfigsPage struct { | |||
} | |||
|
|||
// ConfigRepository specifies a Config persistence API. | |||
// | |||
//go:generate mockery --name ConfigRepository --output=./mocks --filename configs.go --quiet --note "Copyright (c) Abstract Machines" |
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.
Run
make mocks
to generate the mocks
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.
Okay
What type of PR is this?
This is a feature because its add the following functionality: generates mocks for bootstrap.
What does this do?
It generates the mocks for bootstrap service.
Which issue(s) does this PR fix/relate to?
Have you included tests for your changes?
Yes, I have included tests.
Did you document any new/modified feature?
No, I have not updated the documentation.
Notes