Skip to content

Commit

Permalink
add mocks for hcloud client
Browse files Browse the repository at this point in the history
this commit adds mocks to cloud client and updates the Makefile for the
same.

Signed-off-by: Anurag <81210977+kranurag7@users.noreply.github.com>
  • Loading branch information
kranurag7 committed Oct 18, 2023
1 parent cb8f745 commit c839bca
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 c839bca

Please sign in to comment.