Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ncabatoff/flux-tester
Integration test for weaveworks/flux
https://github.com/ncabatoff/flux-tester
Last synced: about 1 month ago
JSON representation
Integration test for weaveworks/flux
- Host: GitHub
- URL: https://github.com/ncabatoff/flux-tester
- Owner: ncabatoff
- License: apache-2.0
- Created: 2018-05-22T22:17:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-19T19:20:39.000Z (over 6 years ago)
- Last Synced: 2024-10-15T13:31:02.785Z (3 months ago)
- Language: Go
- Size: 81.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flux integration tests
Integration tester for [flux](weaveworks/flux).This is a translation to Go of the bash script
[test-flux](https://github.com/weaveworks/flux/blob/master/test/bin/test-flux).# Usage
```
cd test && ./download-prereqs.sh && go test -tags integration_test -start-minikube=true
```WARNING: This will blow away your existing minikube "minikube" profile.
See below for why.## Current status
The main differences with test-flux:
- Not broken (see [#919](https://github.com/weaveworks/flux/issues/919))
- By default doesn't start/delete minikube, assumes one is already running
- Requires specific minikube and k8s versions
- Deploys flux via a helm chart
- Adds support for testing flux's helm-operator.## Background
There's a PR ([#921](https://github.com/weaveworks/flux/pull/921)) which
attempts to fix some of the brokenness in test-flux. I had many issues
trying to get it to work for me, mostly relating to minikube and k8s.
- the fix relies on subpath, which is broken in k8s 1.9 prior to 1.9.5
(see [#61076](https://github.com/kubernetes/kubernetes/issues/61076))
- minikube with the default options has various problems in recent
releases (0.26.0+)
- minikube has broken the -profile option in recent releases
(see [#2717](https://github.com/kubernetes/minikube/issues/2717))
- minikube with localkube doesn't support a 1.9 release >1.9.4
- if I'm going to run minikube without localkube, I'd like to use the
latest and greatestWhat it boiled down to was that any fix I tried to make to test-flux would've
been quiet disruptive already. Moreover, I was tired of the slow feedback
loop from doing a minikube delete/start for each invocation, and I wanted to
introduce more tests (e.g. for helm), and I've written enough shell to know
when it's a good idea to stop and rewrite in a better language.