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 Feb 12, 2024
1 parent 7d81bd2 commit f6857dd
Show file tree
Hide file tree
Showing 5 changed files with 835 additions and 9 deletions.
9 changes: 8 additions & 1 deletion controllers/pkg/.mockery.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
with-expecter: true
packages:
github.com/nephio-project/nephio/controllers/pkg/giteaclient:
interfaces:
GiteaClient:
config:
dir: "{{.InterfaceDir}}"
dir: "{{.InterfaceDir}}"
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
Loading

0 comments on commit f6857dd

Please sign in to comment.