Skip to content

Commit

Permalink
Merge pull request #1009 from syself/kr/hcloud-mocks
Browse files Browse the repository at this point in the history
✨ add mocks for hcloud client
  • Loading branch information
kranurag7 authored Oct 19, 2023
2 parents cb8f745 + c839bca commit 80c067b
Show file tree
Hide file tree
Showing 4 changed files with 698 additions and 0 deletions.
1 change: 1 addition & 0 deletions .boilerplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"api/v1beta1/zz_generated.deepcopy.go",
"pkg/services/baremetal/client/mocks/robot",
"pkg/services/baremetal/client/mocks/ssh",
"pkg/services/hcloud/client/mocks",
"hack/ci-e2e-get-token.sh",
"hack/ci-e2e-delete-token.sh",
"hack/tools/",
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ format: format-starlark format-golang format-yaml ## Format Codebase
.PHONY: generate-mocks
generate-mocks: ## Generate Mocks
cd pkg/services/baremetal/client; go run github.com/vektra/mockery/v2@v2.35.3
cd pkg/services/hcloud/client; go run github.com/vektra/mockery/v2@v2.35.3 --all

.PHONY: generate
generate: generate-manifests generate-go-deepcopy generate-boilerplate generate-modules generate-mocks ## Generate Files
Expand Down
Loading

0 comments on commit 80c067b

Please sign in to comment.