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

MG-2136 - Generate mocks with mockery for Bootstrap service #2128

Closed

Conversation

nyagamunene
Copy link
Contributor

@nyagamunene nyagamunene commented Mar 27, 2024

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

@WashingtonKK
Copy link
Contributor

Please sign off your commits, check DCO report here and fix.

Copy link
Contributor

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

@WashingtonKK
Copy link
Contributor

Also update the mockery version used to use the latest version

@nyagamunene nyagamunene force-pushed the MG-1993-GenerateMocksPerService branch from 321c76e to 2b56793 Compare March 28, 2024 08:58
@nyagamunene nyagamunene changed the title MG-1993-Generate Mocks Per Service MG-1993-Generate mocks for bootstrap Apr 2, 2024
@arvindh123 arvindh123 changed the title MG-1993-Generate mocks for bootstrap MG-2136 - Generate mocks with mockery for Bootstrap service Apr 3, 2024
@@ -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"
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay

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.

3 participants