Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Improve testing in local environments other than linux-amd64 #1765

Merged
merged 2 commits into from
Feb 26, 2019

Conversation

2opremio
Copy link
Contributor

Unit tests rely on the helm binary and assume that the executing environment
is linux-amd64.

This makes tests fail in other environments like darwin, making development
unpleasant.

This change improves the situation by downloading and running test-specific
binaries from the local OS/architecture.

Apart from running the helm binary this change also downloads kubectl in
preparation for testing the parsing of kubectl config current-context in
#1442 .

Unit tests rely on the `helm` binary and assume that the executing environment
is `linux-amd64`.

This makes tests fail in other environments like `darwin`, making development
unpleasant.

This change improves the situation by downloading and running test-specific
binaries from the local OS/architecture.

Apart from running the `helm` binary this change also downloads `kubectl` in
preparation for testing the parsing of `kubectl config current-context` in
fluxcd#1442 .
@2opremio 2opremio requested a review from squaremo February 25, 2019 23:48
@2opremio 2opremio mentioned this pull request Feb 26, 2019
11 tasks
@2opremio 2opremio requested a review from hiddeco February 26, 2019 10:21
Copy link
Member

@hiddeco hiddeco left a comment

Choose a reason for hiding this comment

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

Looks technically OK to me and it still runs on my (non-Darwin/x86_64 GNU/Linux) system.

@hiddeco
Copy link
Member

hiddeco commented Feb 26, 2019

@2opremio having checked out to a different branch: test/bin/ should probably be added to .gitignore with an exclusion for test/bin/test-flux to prevent committing binaries.

@2opremio
Copy link
Contributor Author

2opremio commented Feb 26, 2019

Thanks for the review!

@2opremio having checked out to a different branch: test/bin/ should probably be added to .gitignore with an exclusion for test/bin/test-flux to prevent committing binaries.

Good one, will fix

@2opremio 2opremio merged commit 27a89fa into fluxcd:master Feb 26, 2019
@2opremio 2opremio deleted the extend-local-testing-systems branch February 26, 2019 12:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants