Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding instructions for running end to end tests on macOS #19

Merged
merged 2 commits into from
Oct 14, 2021

Conversation

dgkanatsios
Copy link
Collaborator

Closes #18

## Running end to end tests on macOS

First of all, end to end tests require `envsubst` utility, assuming that you have Homebrew installed you can get it via `brew install gettext &&brew link --force gettext`.
We assume that you have installed Go, then you should install kind with `go install sigs.k8s.io/kind@latest`. Kind will be installed in `$(go env GOPATH)/bin` directory. Then, you should move kind to the `<projectRoot>/operator/testbin/bin/` folder with a command like `mv $(go env GOPATH)/bin/kind ./operator/testbin/bin/kind`. You can run end to end tests with `make builddockerlocal createkindcluster e2elocal`.
Copy link
Collaborator

@khaines khaines Oct 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of mv, I would suggest cp so that kind use outside of this project doesn't break on the particular mac without a re-run of installing kind.

Copy link
Collaborator

@khaines khaines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM & validated with my own mac, with only 1 minor suggestion.

@dgkanatsios dgkanatsios merged commit 30d1207 into master Oct 14, 2021
@dgkanatsios dgkanatsios deleted the dev/digkanat/macose2e branch October 14, 2021 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

end to end tests on macOS
2 participants