Skip to content

Commit

Permalink
Add mockery test for approval rec
Browse files Browse the repository at this point in the history
  • Loading branch information
efiacor committed Jan 12, 2024
1 parent 96b08ff commit 15ba45f
Show file tree
Hide file tree
Showing 6 changed files with 836 additions and 8 deletions.
8 changes: 8 additions & 0 deletions controllers/pkg/.mockery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
with-expecter: true
packages:
sigs.k8s.io/controller-runtime/pkg/client:
interfaces:
Client:
config:
dir: "mocks/external/{{ .InterfaceName | lower }}"
outpkg: "mocks"
2 changes: 1 addition & 1 deletion controllers/pkg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ include ../../default-mockery.mk
generate-mocks:
ifeq ($(CONTAINER_RUNNABLE), 0)
echo ${PWD}
$(CONTAINER_RUNTIME) run --security-opt label=disable -v ${PWD}:/src -w /src/controllers/pkg docker.io/vektra/mockery:v${MOCKERY_VERSION}
$(CONTAINER_RUNTIME) run --security-opt label=disable -v ${PWD}:/src -w /src docker.io/vektra/mockery:v${MOCKERY_VERSION}
else
mockery
endif
1 change: 1 addition & 0 deletions controllers/pkg/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ require (
github.com/prometheus/common v0.44.0 // indirect
github.com/prometheus/procfs v0.10.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/xlab/treeprint v1.2.0 // indirect
go4.org/netipx v0.0.0-20230303233057-f1b76eb4bb35 // indirect
golang.org/x/crypto v0.9.0 // indirect
Expand Down
Loading

0 comments on commit 15ba45f

Please sign in to comment.