Commit Graph

52 Commits (cc326c714b34139b7fca6be7eb27dc2f86723870)

Author SHA1 Message Date
Wojciech Tyczynski c06c370592 Revert "Require at least one healthy startup pod in GCE Jenkins e2e tests" 2015-07-23 15:55:21 +02:00
Wojciech Tyczynski 361217e0ea Merge pull request #11081 from ixdy/min-startup-pods-gce-jenkins
Require at least one healthy startup pod in GCE Jenkins e2e tests
2015-07-23 15:35:24 +02:00
Jeff Grafton e7547b9792 Require at least one healthy startup pod in GCE Jenkins e2e tests. 2015-07-10 15:26:34 -07:00
Eric Tune 2459cfa96c Update conformance test.
Fix formatting and quote variable.
Fix comments from a previous review.
Move instructions to the top.
Change from using tag to using branch.
Improve documentation of conformance test.
Use stable random seed.
Fix bug where there was a double quote as a prefix and suffix to the
skip regexp.
Remove .* not needed in regex.
Skip a few more tests that are not reliable for me in the
Conformance test environment.
2015-07-09 09:08:48 -07:00
Eric Tune c5efb12a62 Revive conformance test.
Use KUBE_CONFIG_FILE instead of AUTH_CONFIG (and CERT_DIR).

Pass GINKGO_TEST_ARGS for a subset of e2e tests which
@erictune has deemed initially sufficient for conformance.

Allow GINKGO_TEST_ARGS to pass through hack/ginkgo-e2e.sh.

Set NUM_MINIONS (need better way to handle this).

Remove use of "KUBERNETES_CONFORMANCE_TEST" variable
and use of KUBERNETES_PROVIDER="conformance_test" convention,
both of which have no apparent purpose.

Allow unset testContext.provider in test/e2e/e2e_test.go
Allow testContext.Provider to be unset in providerIs().
2015-06-22 22:29:02 -07:00
Max Forbes 434f968715 GKE upgrade tests 2015-06-20 09:44:19 -07:00
Jeff Lowdermilk 47901b7edd Remove the last provider-specific handling in kubectl.sh, ginkgo-e2e.sh 2015-06-16 10:58:04 -07:00
CJ Cullen abc4e53648 Make resize tests work on GKE 2015-06-09 12:00:10 -07:00
Sami Wagiaalla 899cf360ba Add a prefix option to e2e for use with resources
This is helpful when cleaning manually up after a failed test in
shared a gce environment.

Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-06-09 13:29:41 -04:00
Justin Santa Barbara 1e99426d5b Support for AWS ELB 2015-05-29 18:53:35 -04:00
jayunit100 6e4160eeb0 Set option for KubectlPath (kubectl-path) for E2E tests. 2015-05-26 21:46:59 -04:00
Jerzy Szczepkowski ef965a60f2 Implementation of e2e test that resizes cluster (works on GCE). 2015-05-22 02:59:25 +02:00
Jeff Grafton bf1de72f4a Revert "Revert "Use native Ginkgo test runner instead of cmd/e2e (attempt N)""
This reverts commit f4bb6aa37d.
2015-05-19 09:13:08 -07:00
Quinton Hoole f4bb6aa37d Revert "Use native Ginkgo test runner instead of cmd/e2e (attempt N)" 2015-05-18 21:04:26 -07:00
Jeff Grafton 35c4b92e92 Make e2e compatible with Go 1.3 and OS X.
Go 1.4 added the -o flag to the "go test" command as well as support for
the TestMain() function, so we must work around these not existing in
Go 1.3.

The version of readlink on OS X does not have the -f flag - so we'll
just skip canonicalizing the path.
2015-05-18 12:11:33 -07:00
Jeff Grafton b79fae5d71 Revert "Revert "Once again, use native Ginkgo test runner instead of cmd/e2e.""
This reverts commit 67da1ac0c8.
2015-05-18 11:39:21 -07:00
Jeff Grafton 67da1ac0c8 Revert "Once again, use native Ginkgo test runner instead of cmd/e2e."
This change broke compilation on go 1.3 and running e2e tests on OS X.

This reverts commit 86b023fdd6.
2015-05-15 16:41:55 -07:00
Jeff Grafton 86b023fdd6 Once again, use native Ginkgo test runner instead of cmd/e2e.
This commit deletes cmd/e2e and updates hack/ginkgo-e2e.sh to use the
'ginkgo' command instead. All logic from cmd/e2e/e2e.go and
test/e2e/driver.go have been combined into the new file
test/e2e/e2e_test.go.

The test tarball now includes a built version of the test/e2e test
binary, which includes all tests under test/e2e. This was accomplished
by updating the build scripts to use 'go test -c' when a target name
ended with '.test', and adding a dependency on test/e2e/e2e.test.

This prebuilt test binary is passed to the Ginkgo runner in
hack/ginkgo-e2e.sh. In a future change, we can add support to run
Ginkgo against the source tree if it is available.

This change is generally intended to have no externally visible changes,
aside from the following caveats:
 - The -t/--tests flag has been removed
 - Calling cmd/e2e/e2e directly obviously won't work, but that was never
   intended to be supported anyway
 - If the GINKGO_PARALLEL environment variable is set to y, then ginkgo
   will run test specs in parallel. (Currently defaults to n, since some
   tests are broken in this mode.)

Additionally, several tests which made poor assumptions about cwd or
used testContext before it had been set have been fixed.
2015-05-15 11:54:53 -07:00
Jeff Lowdermilk 3f3760a14a Cleanup some todos for gke + rip out dead AuthConfig code 2015-05-13 13:54:02 -07:00
Jeff Lowdermilk 6523d18130 Future proof GKE kubeconfig handling in e2e driver 2015-05-11 09:57:54 -07: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
Quinton Hoole bfaf976df7 Revert "Use native Ginkgo test runner instead of cmd/e2e" 2015-04-30 13:45:46 -07:00
Jeff Grafton 57750ccb51 Use native Ginkgo test runner instead of cmd/e2e.
This commit deletes cmd/e2e and updates hack/ginkgo-e2e.sh to use the
'ginkgo' command instead. All logic from cmd/e2e/e2e.go and
test/e2e/driver.go have been combined into the new file
test/e2e/e2e_test.go.

Additionally, several tests which made poor assumptions about cwd or
used testContext before it was set have been fixed.

This change is generally intended to have no externally visible changes,
aside from the following caveats:
- The -t/--tests flag has been removed
- Calling cmd/e2e/e2e directly obviously won't work, but that was never
  supported anyway
- If the GINKGO_PARALLEL environment variable is set to y, then ginkgo
  will run test specs in parallel. (Currently defaults to n, since some
  tests are broken in this mode.)
2015-04-28 18:42:37 -07:00
Jeff Lowdermilk 3787fc5eca set KUBECONFIG in common.sh, default to new location
and preserve value in ginkgo e2e test driver
2015-04-20 11:07:35 -07:00
Jeff Lowdermilk 2a8291a67e Retry Move KUBECONFIG to common.sh, change default to new location 2015-04-17 10:33:12 -07:00
Dawn Chen 913dc4e490 Revert "Use a helper to find built binaries" 2015-04-14 11:24:49 -07:00
Eric Paris 6d4ab258f0 Use a helper to find built binaries
We should not be determining the arch/os and all the possible
directories binaries can live. Let a hack/lib/ helper do it for us.
2015-04-13 18:57:36 -04:00
Jeff Lowdermilk cfc04f41b8 Updates for gcloud changes (alpha, kubeconfig) 2015-04-01 09:27:06 -07:00
Jeff Grafton d845d49dc6 Merge pull request #5437 from lhuard1A/libvirt-coreos_kubeconfig
Make libvirt-coreos generate a .kubeconfig file and have e2e tests use it
2015-03-19 10:18:03 -07:00
Lénaïc Huard fc6e6ed310 Explain when e2e --host parameter is used and when it is ignored 2015-03-19 15:13:35 +01:00
Lénaïc Huard efe345f8b6 Make libvirt-coreos generate a .kubeconfig file and have e2e tests use it 2015-03-17 11:10:18 +01:00
Masahiro Sano addeed6ad0 fix e2e test on vagrant provider 2015-03-14 03:42:09 +09:00
gmarek c3ff36931b fix ginko-e2e.sh 2015-03-13 10:00:28 +01:00
Eric Tune 72945955ae First cut at a "conformance test".
A conformance test is a test you run against a cluster that is already
set up.  We would use it to test a hosted kubernetes service to make
sure that it meets a bar for quality.  Also, a getting-started-guide
author, who has not implemented a complete set of cluster/...
scripts (that is, the getting-started-guide has some non-automated steps)
can use this to see which e2e tests pass on a cluster.

To be done in future PRs:
- disable tests which can't possibly run in a conformance test
  because they require things like cluster ssh.
- document that when we accept a getting-started-guide, that
  people should run the conformance test against their cluster
  (unless they already have cluster/... scripts.

I ran this against a GCE cluster and 22 tests passed.
2015-03-12 14:04:02 -07:00
Jeff Lowdermilk 7db006ab1a Generate standalone kubeconfig on kube-up, clear on kube-down.
Also tweaked the ginkgo tests to pull auth directly from a kubeconfig file
instead of the legacy kubernetes_auth file.
2015-03-10 14:23:34 -07:00
Jeff Lowdermilk a280e0da2d Revert "Standalone kubeconfig for gce kube-up" 2015-03-09 17:45:06 -07:00
Jeff Lowdermilk 4173d369aa Generate standalone kubeconfig on kube-up, clear on kube-down.
Also tweaked the ginkgo tests to pull auth directly from a kubeconfig file
instead of the legacy kubernetes_auth file.
2015-03-09 16:02:00 -07:00
Justin Santa Barbara 4066826b10 auth_config path for aws for ginkgo 2015-03-05 15:19:25 -08:00
Lénaïc Huard d64f0f1183 Make libvirt-CoreOS cluster able to run e2e tests 2015-03-02 23:11:48 +01:00
Robert Bailey 3ae85812bd Use the kubectl binary rather than the wrapper shell script in the
kubectl e2e test.
2015-03-01 21:45:04 -08:00
Alex Robinson fe42cd1235 Un-revert #4551 which moved the certs.sh e2e test to ginkgo and fix the
e2e auth breakage it caused. The fix is to not set project/zone/kube_master
to the empty string partway through the script, which I should have
realized was a bad idea in the first place.
2015-02-20 15:31:59 -08:00
Zach Loafman 7febce6321 Revert "Migrate the certs.sh e2e test to ginkgo" 2015-02-19 18:41:30 -08:00
Zach Loafman 597dedf762 Merge pull request #4551 from a-robinson/e2e
Migrate the certs.sh e2e test to ginkgo
2015-02-19 17:34:04 -08:00
Brendan Burns c9657cad04 Merge pull request #4319 from justinsb/aws_fixes
Fixes to get AWS tests to run
2015-02-18 22:43:46 -08:00
Alex Robinson 94161a44ee Pass the GCE project, zone, and master name into e2e.go as flags. 2015-02-18 15:41:36 -08:00
Alex Robinson f946aa887b Migrate the certs.sh e2e test to ginkgo. Issue #4185. 2015-02-18 13:45:44 -08:00
Jeff Lowdermilk aa32f1b2ce Retry #4337: Make gce kubeconfig context include project 2015-02-13 13:31:50 -08:00
Justin Santa Barbara cf470f7da4 Fixes to get AWS tests to run
They don't pass (yet), but they at least run!
2015-02-11 15:58:33 -05:00
Justin Santa Barbara 8cbd97d8bd Default value for ${@}, otherwise nounset causes failure 2015-02-11 12:39:06 -05:00
Zach Loafman 134d332793 Move verbosity flag into driver.go, randomize specs
Before we get too many suites baked, I want to get spec randomization
in, just so no one accidentally thinks things flow from top to bottom.

The random seed is printed with every run:

Random Seed: 1423194521 - Will randomize all specs

and can be reproduced using --ginkgo.seed
2015-02-05 19:49:04 -08:00