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

test(konnect): Add SDKWrapper to allow using mock SDK in reconcilers #543

Merged
merged 9 commits into from
Sep 5, 2024
5 changes: 5 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,8 @@ issues:
linters:
- revive
text: "exported: exported"
# Generated mock SDKs does not need comments on generated methods.
- path: controller/konnect/ops/.*_mock\.go
linters:
- revive
text: "exported: exported"
7 changes: 6 additions & 1 deletion .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ inpackage: True
disable-version-string: True
with-expecter: True

filename: "{{ trimSuffix .InterfaceFile \".go\" | base | lower }}_mock_test.go"
filename: "{{ trimSuffix .InterfaceFile \".go\" | base | lower }}_mock.go"
dir: "{{ .InterfaceDir }}"
mockname: "Mock{{ .InterfaceName }}"
outpkg: "{{ .PackageName }}"
Expand All @@ -13,3 +13,8 @@ packages:
interfaces:
ControlPlaneSDK:
ServicesSDK:
RoutesSDK:
ConsumersSDK:
ConsumerGroupSDK:
PluginSDK:
MeSDK:
264 changes: 264 additions & 0 deletions controller/konnect/ops/kongconsumer_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading