Commit Graph

64 Commits (63602348a46dae777038be34470c0d7d025420fe)

Author SHA1 Message Date
k8s-merge-robot be5e98fafd Merge pull request #28959 from asalkeld/e2e-isup
Automatic merge from submit-queue

e2e.go --isup should also check the version

Just move the setenv up to include --isup

fixes #18667
2016-07-22 01:59:18 -07:00
Matt Liggett c342d8fc12 Only run federation tests if FEDERATION==true.
This is the same test we make everywhere else.  Only here were we
checking against the empty string.
2016-07-15 16:31:27 -07:00
Angus Salkeld 5c3eea15eb e2e.go --isup should also check the version
fixes #18667
2016-07-14 16:20:30 +02:00
David McMahon ef0c9f0c5b Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
Colin Hom a092fd2dd4 Federation build and e2e test integration
Federation components are now buildable and e2e-testable via e2e.go.
2016-05-25 15:07:27 -07:00
Dan Lorenc 7e9cae85fe Add a flag that lets e2e tests be run against single-node clusters. 2016-05-17 09:18:20 -07:00
Jeff Grafton d70c516d4f Remove log collection code in cluster/gce/util.sh.
Also update some docs to mention cluster/log-dump.sh.
2016-03-03 15:28:33 -08:00
Joe Finney 930291588c Remove PrepareVersion from hack/e2e.go. 2016-02-24 13:08:22 -08:00
Joe Finney 2b756ca56d Move E2E kube-up call into test-setup from e2e-internal. 2016-02-17 16:49:07 -08:00
Joe Finney 98981ac3ec Remove unused functions from hack/e2e.go. 2016-02-17 11:23:33 -08:00
Janet Kuo 2874f30c05 Enable Deployments by default 2016-02-12 12:29:14 -08:00
Brad Erickson e67667f1b5 Minion->Node rename: comments and vars for e2e.go and e2e.sh 2015-12-01 16:00:47 -08:00
nikhiljindal d61ed52799 Adding an e2e test for deployment 2015-09-25 17:14:31 -07:00
Jeff Grafton 170962becb Explicitly log how long each step of e2e setup/test/teardown takes. 2015-09-15 15:04:05 -07:00
Veres Lajos 9f77e49109 typofix - https://github.com/vlajos/misspell_fixer 2015-08-08 22:31:48 +01:00
Shawn Smith ecce796ee8 Use Fatalf 2015-05-10 13:08:55 +09:00
BenTheElder 129d7f8d26 Fix typo in e2e
Correct comment in e2e.go ’…at least 3 minions running’ -> ‘…at least minMinionCount
minions running’.
2015-05-04 04:42:07 -04:00
Eric Paris 6b3a6e6b98 Make copyright ownership statement generic
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Tim Hockin f9a3315367 Remove useless e2e noise 2015-04-07 17:52:32 -07:00
Jeff Grafton ef801875ab Add --test_args flag to hack/e2e.go.
Add a flag to allow passing options to the Ginkgo test runner, for
example to pass --ginkgo.focus to run only particular specs.
2015-02-17 17:40:32 -08:00
Filipe Brandenburger 70d37800b7 Simplify usage of os/exec
For now, keep the finishRunning() wrapper but use a straight cmd.Run()
call instead of the convoluted goroutine trying to catch signals.

It turns out that Unix process group handling is enough to interrupt
pending processes when stopping the run with something like a Ctrl+C
which should be enough.

Tested:
- Full e2e run with hack/e2e-test.sh, two tests failed but looks like
  they've been failing before this change.
- Started a hack/e2e.go -v -build and interrupted it with Ctrl+C,
  confirmed that build-release.sh was killed in the process.
2015-02-13 14:53:42 -08:00
Filipe Brandenburger 43543faaa7 Simplify ValidateClusterSize() to use cmd.Output() directly
This is a first step towards getting rid of finishRunningWithOutputs and
using the native os/exec methods directly where possible.
2015-02-11 15:02:24 -08:00
Filipe Brandenburger 55e8357c0f Merge pull request #4339 from zmerlynn/issue_4177
Fix hack/e2e.go exit status for -test
2015-02-11 13:21:37 -08:00
Zach Loafman f08f7e6972 Clean up output handling in hack/e2e.go
Dovetail stdout/stderr and remove escaping for TAP.
2015-02-11 13:12:48 -08:00
Zach Loafman ab38a78d70 Test() was mis-tracked. Change the variable name / handling here, and
also just make it unset so that if it's ever uninitialized it's
obvious.

Fixes #4177
2015-02-11 13:11:03 -08:00
Zach Loafman 9257b58e68 Fix e2e-internal scripts for cluster-size and watch-events
Fixes #4340
2015-02-11 12:46:31 -08:00
Filipe Brandenburger 162d7a00b3 Fix hack/e2e.go --ctl output
Export the KUBE_CONFIG_FILE environment variable pointing to the test
output when calling cluster/kubectl.sh directly.

Tested by running:
$ go run ./hack/e2e.go -v -ctl='version --match-server-version=false'
2015-02-06 14:36:35 -08:00
Filipe Brandenburger e63ccfff6c Reintroduce "Turn the hack/e2e.go commands into standalone scripts."
This reverts commit 2765660101,
which reverted a commit 0c7dce77dd, so
we're reintroducing the same code from that commit here.
2015-02-06 14:35:43 -08:00
Zach Loafman 2765660101 Revert "Turn the hack/e2e.go commands into standalone scripts." 2015-02-06 14:13:00 -08:00
Filipe Brandenburger 0c7dce77dd Turn the hack/e2e.go commands into standalone scripts.
This gets rid of bashWrap() and of running bash -s passing it a script
on stdin. Also get rid of most of the runBash*() helpers.

In particular, `go run hack/e2e.go -build` will now work when it needs
to ask whether it is OK to download a large docker image, it used to
fail since stdin was not available for the bash script using the `read`
command.

Tested by running a full `hack/e2e-test.sh` run including the build
stage without the docker image loaded, which used to fail before this
change.
2015-02-06 11:18:14 -08:00
Zach Loafman 688f96cd33 Run shell tests under Ginkgo, changing all reporting to JUnit
* Add a test/e2e/shell.go that slurps up everything in hack/e2e-suite
and runs it as a bash test, borrowing all the code from hack/e2e.go.

* Rip out all the crap in hack/e2e.go that deal with multiple tests

* Move hack/e2e-suite/goe2e.sh to hack/ginkgo-e2e.sh so that it
doesn't get slurped up.
2015-02-05 07:24:05 -08:00
Filipe Brandenburger 7bb62cbfb3 Make e2e shell tests work standalone
Simply incorporate some of the boilerplate from hack/e2e.go into the
scripts in hack/e2e-suite.

Use environment variables with default values to allow overrides in
kubectl command line and to use a versioned package root.

Tested:
- Ran `go run hack/e2e.go -test` on a test cluster.
- Ran the test cases individually.
- Ran hack/e2e-suite/goe2e.sh -t Pods to confirm it takes arguments.
- Also fixed cluster/test-network.sh (which should be more and more irrelevant.)
2015-02-05 00:22:16 -08:00
Jeff Lowdermilk 890615d93e Replace kubecfg with kubectl in e2e tests 2015-02-03 11:43:55 -08:00
Brendan Burns 0ad036e0eb Put watch in a loop so that we grab all event logs, even if the watch hangs up. 2015-01-29 09:56:20 -08:00
Joe Beda f3b0f285fa Fix min minions for e2e 2015-01-21 11:37:57 -08:00
Joe Beda c5634e90ba Verify cluster size before e2e 2015-01-20 09:11:29 -08:00
Paul Morie 0c51f9df8d Make e2e -up recreate running clusters; remove kube-up retry 2015-01-18 12:19:07 -05:00
Zach Loafman 0c4119fb07 Revert "Add --v=4 to e2e bash executions by default"
This reverts commit abc621759a, which
interacts weirdly with Jenkins on the GKE provider. Tactical revert
until that can be figured out:

https://github.com/GoogleCloudPlatform/kubernetes/issues/3474
2015-01-14 13:10:45 -08:00
Clayton Coleman abc621759a Add --v=4 to e2e bash executions by default
Will allow more debugging output to be available in CLI
2015-01-14 12:37:40 -05:00
Rohit Jnagal 62ecd5f3ff Fix few vet errors.
There are quite a few 'composite literal uses unkeyed fields' errors that I have kept out of this patch.
And there's a couple where vet just seems confused. These are the easiest ones.
2015-01-07 08:40:16 +00:00
Zach Loafman 9312af4f79 Fix newlines in TAP stdout/stderr output
It turns out, newlines are not "printable", causing the TAP
stderr/stdout output to be smushed. Also address etune's comment on
pr3208.
2015-01-06 08:08:19 -08:00
Zach Loafman d938ecaba2 Escape stdout/stderr YAML-like elements for TAP output
Fixes https://github.com/GoogleCloudPlatform/kubernetes/issues/3094
2015-01-04 08:02:43 -08:00
Zach Loafman 7ee633d186 Fix duration_ms output to seconds (_ms obviously means measure-in-seconds!?) 2014-12-17 10:04:09 -08:00
Zach Loafman c25229937c Add test timing to TAP output in hack/e2e.go
Found this buried at https://issues.jenkins-ci.org/browse/JENKINS-16647
2014-12-16 16:54:45 -08:00
Alex Robinson fe76243b05 Make it easy to use the e2e tests to test upgrading a running master
by adding support for testing official release versions and writing a
simple script to first bring up and test the old version before
upgrading it and testing it again. Related to supporting in-place
upgrades of masters (#2524).
2014-12-15 16:03:11 -08:00
Max Forbes bea37d5b17 Fix up e2e tests. 2014-12-15 11:53:51 -08:00
Zach Loafman 43addc7202 Add Test Anything Protocol (TAP) output to e2e.go
Adds a --tap option to change outputs to match the TAP format. Changes
pass/fail in general to "ok" / "not ok".
2014-12-11 12:20:38 -08:00
Zach Loafman 369064c69f Add --times to e2e.go
Make each test available for execution --times times. Acts like a
multi-deck shoe. (Otherwise this is easily scriptable outside the
e2e.go command).

Useful for "I want to walk away for a few hours leaving some end-to-ends
running", until we have more stress tests. Also useful for detecting
flakes.

Reporting is changed to break out Passed, Flaky and Failed. I chose to
keep all three lines even if --times isn't on, just for consistency in
scraping. Similarly, it always outputs the counts now. A report looks
like:

2014/12/09 07:31:21 Passed tests: goe2e.sh[100/100] guestbook.sh[100/100] private.sh[100/100] services.sh[100/100]
2014/12/09 07:31:21 Flaky tests: basic.sh[99/100] certs.sh[99/100] monitoring.sh[98/100] pd.sh[98/100] update.sh[98/100]
2014/12/09 07:31:21 Failed tests:
2014/12/09 07:31:21 8 test(s) failed.
2014-12-11 12:18:56 -08:00
Zach Loafman b7a7e92ad1 Add --pushup to e2e.go
Silly but hopefully memorable name for an option to --push OR --up
depending on cluster state.
2014-12-08 15:23:30 -08:00
Daniel Smith c5667e1cfe Merge pull request #2782 from zmerlynn/e2e.shuffle
Run e2e tests in deterministic random order
2014-12-08 13:01:32 -08:00