Skip to content

Commit

Permalink
venconn: add integration tests using envtest
Browse files Browse the repository at this point in the history
Note that I should probably have gone with a fake of the
ConnectionHandler instead of an envtest. We will move to the fake later
on.

I added the venaficonnection CRDs manually for now. I have a PR to
automate pulling these CRDs from the venafi-connection-lib project:
#556

For now, I added these manifests manually with the following commands:

  gh pr checkout 556
  git checkout -
  git checkout step1-makefile-modules -- deploy/charts/venafi-kubernetes-agent/templates/venafi-connection-crd{,.without-validations}.yaml
  • Loading branch information
maelvls committed Aug 20, 2024
1 parent 67d34d2 commit f0b7805
Show file tree
Hide file tree
Showing 5 changed files with 2,260 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ predicate.json
*.pub
*.tgz

_bin
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ build:
install:
cd $(ROOT_DIR) && $(GO_INSTALL)

test:
export KUBEBUILDER_ASSETS=$(ROOT_DIR)/_bin/tools
test: _bin/tools/etcd _bin/tools/kube-apiserver
cd $(ROOT_DIR) && go test ./...

vet:
Expand Down
Loading

0 comments on commit f0b7805

Please sign in to comment.