Commit Graph

180 Commits (f4e7b5480d7404fd444b08fed48be699207f8465)

Author SHA1 Message Date
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
Robert Rati 30c7dbc7bd Correct logic for failing after % of containers fail. #7790 2015-05-15 10:06:30 -04:00
gmarek d65f67a4d1 Fix kubectl e2e test 2015-05-15 15:02:53 +02:00
Rohit Jnagal bd0156c65a Merge pull request #8204 from jlowdermilk/gke-todos
Cleanup some todos for gke + rip out dead code
2015-05-14 10:30:24 -07:00
Prashanth Balasubramanian 5de27ede44 Add clarity to density tests 2015-05-13 16:34:45 -07:00
Jeff Lowdermilk 3f3760a14a Cleanup some todos for gke + rip out dead AuthConfig code 2015-05-13 13:54:02 -07:00
Piotr Szczesniak 2cee828c91 Added more logging to load e2e test 2015-05-13 16:12:17 +02:00
Piotr Szczesniak 962f10ee58 Merge pull request #7771 from piosz/load_generator
Implemented first version of load test
2015-05-12 09:24:19 +02:00
Piotr Szczesniak aa116e2033 Implemented first version of load test
As for now it creates a bunch of Replication Controllers and play with them

Partially addresses #3139
2015-05-11 16:40:59 +02:00
deads2k 19784dbc4f remove auth-path from kubeconfig 2015-05-11 10:40:23 -04:00
Wojciech Tyczynski 1d59a0351f Merge pull request #7857 from fgrzadkowski/fix_jenkins
Ignore latency metrics for events
2015-05-07 13:26:12 +02:00
Filip Grzadkowski c073c9b9c9 Ignore latency metrics for events 2015-05-07 10:19:22 +02:00
jayunit100 7d4249da57 E2E: Parameterize Density failure 2015-05-06 19:41:09 +00:00
Filip Grzadkowski 551cec2a21 Verify request latency in e2e performance tests. 2015-05-05 11:50:52 +02:00
Max Forbes f2173627ff Log which SSH key is used in e2e SSH test to help debug #7714 2015-05-04 13:55:05 -07:00
Wojciech Tyczynski 18b7eda07c Log host for failed pod 2015-05-04 15:14:23 +02: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
Quinton Hoole 3602884d32 Merge pull request #7462 from ixdy/native-ginkgo-runner
Use native Ginkgo test runner instead of cmd/e2e
2015-04-30 13:27:04 -07:00
Clayton Coleman d03b5299f9 Merge pull request #7432 from piosz/termination_notice
Added TerminationGracePeriod field to PodSpec and grace-period flag to kubectl stop
2015-04-30 13:55:51 -04:00
CJ Cullen b15e2e7340 Merge pull request #7544 from jayunit100/kubectl-ns
E2E: Update kubectl.go - remove default NS and use idiomatic namepsace l...
2015-04-30 10:43:50 -07:00
Piotr Szczesniak 11a2dc496f Added TerminationGracePeriod field to PodSpec and grace-period flag to kubectl stop
Those are changes which touch users required by Termination Notice

Addresses #6804
2015-04-30 18:00:33 +02:00
jayunit100 864c668a51 E2E: Update kubectl.go - remove default NS and use idiomatic namepsace lifecycle 2015-04-29 22:58:35 -04:00
Max Forbes 6102704877 Implement Go e2e SSH utility and simple test that runs it on all nodes. 2015-04-29 11:28:17 -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 Grafton ae019935b3 Call the cluster/kubectl.sh wrapper in e2e tests.
The ginkgo wrapper script used to set up the path so that tests would
find the appropriate kubectl binary, but this seems like a cleaner way
to achieve the same result.
2015-04-28 16:14:36 -07:00
Wojciech Tyczynski 3f165a742d Don't fail performance tests on single fail event 2015-04-28 13:59:24 +02:00
Robert Rati caf70a28b4 Added a method to verify no containers in a pod have failed. The density
test is modified to use this method.  #7374
2015-04-27 14:05:41 -04:00
Paul Morie 5f25dd24d9 Make argument order for testContainerOutputInNamespace consistent 2015-04-27 10:04:19 -04:00
jayunit100 79d26997a2 E2E: FIX util.go testContainerOutputInNamespace to properly check the namespace. 2015-04-26 18:54:10 -04:00
Quinton Hoole 35e9ad1747 Merge pull request #7235 from rrati/rc-functions-refactor-7234
Move RunRC, DeleteRC, and ListPods into the utility module and refactor
2015-04-24 09:38:12 -07:00
Robert Rati 31684d1871 Move RunRC, DeleteRC, and ListPods into the utility module and refactor
to be support functions #7234
2015-04-23 14:30:58 -04:00
Quinton Hoole 7d0ba5b5e9 Merge pull request #6553 from jayunit100/networking-ns
E2E: Add a --namespace hint which tests can choose to honor, and implement...
2015-04-23 08:24:46 -07:00
Zach Loafman 2a3e0796f8 Merge pull request #7108 from jayunit100/kubectl-1
Use --host option even if kubecontext is not provided.
2015-04-21 09:33:21 -07:00
jayunit100 be34714cb1 Use --host option even if kubecontext is not provided. 2015-04-21 10:17:20 -04:00
jayunit100 4b43a6a979 Implement pure UUID suffix Functionality into namespace, without implementing randomSuffix() (yet). 2015-04-21 09:27:39 -04:00
Robert Bailey feb7abcada Ensure that e2e tests run on gce|gke and are appropriately
skipped for other cloud providers.
2015-04-20 15:04:31 -07:00
jayunit100 0f0c0700ff E2E: Add Api Server option to kubectl 2015-04-20 15:54:26 -04:00
jayunit100 e548c16f7b Generalized namespace creation pattern for test utils 2015-04-20 13:44:19 -04:00
Quinton Hoole 4a20101a8d Add an e2e test that pods get a host IP 2015-04-13 20:20:48 -07:00
Justin Santa Barbara 89089900d7 Fix merge problems 2015-04-10 13:25:42 -07:00
nikhiljindal fe60be3179 Moving v1beta1 kubectl examples to v1beta3 2015-04-08 13:08:13 -07:00
nikhiljindal f2b72931fc Updating components to use v1beta3 2015-04-03 15:19:14 -07:00
Piotr Szczesniak 5c6439d449 Removed PodStatus.Host
Fixes #6165
2015-04-02 16:38:45 +02:00
Jeff Lowdermilk 1857aa0388 fix e2e/kubectl for gke 2015-04-01 21:24:16 -07:00
Jeff Lowdermilk cfc04f41b8 Updates for gcloud changes (alpha, kubeconfig) 2015-04-01 09:27:06 -07:00
Paul Morie 0efe5e7872 Extract testContainerOutput method from e2e tests 2015-03-31 15:41:56 -04:00
jayunit100 ef1508867d Revert 'Merge pull request #6008 from GoogleCloudPlatform/revert-5773-e2e_kubectl_util' with additional clean up, disambiguate the container name from the json contents. 2015-03-27 11:26:58 -04:00
Piotr Szczesniak 31901ed9d0 Changed PodInfo to be a list
This change is to make API consistent with our convention.

Fixes #3622
2015-03-26 10:15:25 +01:00
Satnam Singh f2980a3f13 Run cluster level logging e2e test in its own namesapce 2015-03-20 11:30:01 -07:00
Satnam Singh 4645d13e77 Reduce pod usage for network e2e test 2015-03-18 22:10:15 -07:00
Zach Loafman 18d1a1e70e Merge pull request #5272 from satnam6502/e2e
Fix status message in waitForPodCondition
2015-03-11 13:10:20 -07:00
Satnam Singh cef905a7b2 Fix status message in waitForPodConidition 2015-03-10 16:06:03 -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
Satnam Singh 89bc7bbea9 Merge pull request #5154 from jlowdermilk/kube-up
Standalone kubeconfig for gce kube-up
2015-03-09 16:22:51 -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
Satnam Singh 2685617a41 Fix formating of time output in waitForPodCondition 2015-03-06 11:25:04 -08:00
Jeff Lowdermilk f7a491958b fix Errorf argument mismatch in test/e2e/util.go 2015-03-06 09:36:37 -08:00
Jeff Lowdermilk 083f29158f Make e2e pod start timeouts uniform 2015-03-05 15:54:45 -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
Andy Goldstein 5bd0e9ab05 Add streaming command execution & port forwarding
Add streaming command execution & port forwarding via HTTP connection
upgrades (currently using SPDY).
2015-02-20 09:57:02 -05:00
Zach Loafman 7febce6321 Revert "Migrate the certs.sh e2e test to ginkgo" 2015-02-19 18:41:30 -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
Zach Loafman 6117592905 Add expectNoError helper to handle Expect(err).NotTo(HaveOccurred()) meme
And convert one file
2015-02-12 11:34:07 -08:00
Zach Loafman 62ff434825 Fix Failf line offset reporting 2015-02-12 11:33:56 -08:00
Zach Loafman 6b3746896f Add a Failf utility function for 'Fail(fmt.Sprintf())' and convert one file 2015-02-11 16:46:36 -08:00
Zach Loafman 251bb585bd Add a Logf utility function to print INFO: lines to GinkgoWriter, convert new file to it 2015-02-11 16:45:44 -08:00
Zach Loafman fe838fca64 Convert waitForPodSuccess to error form, glog->By
* Also add variable timeout as well
* And nail in coffin for glog in this file!
2015-02-09 07:48:07 -08:00
Zach Loafman ff67052408 Convert waitForPodNotPending from glog to By, and to error form
Also change it to take a variable timeout
2015-02-09 07:32:41 -08:00
Zach Loafman 2e4a1e910b Change loadClientOrDie to return an error
Also remove a bunch of dead code. This is a step along the path to
getting rid of all the glog in util.go.
2015-02-09 07:14:52 -08:00
Zach Loafman 2be3139926 Add a timeout to waitForPodRunning
* Add a timeout, convert the function to return an error (which gives
a reasonable status message for callers).
* Start converting glog to By.
2015-02-09 06:36:53 -08:00
Filipe Brandenburger e9591382a7 Use a custom namespace for running liveness e2e test cases.
This will allow us greated isolation between test case runs without the
need to include randomized uuids to many of the fields in the pods,
services and rcs creation requests.

Tested:
- Ran two instances of `e2e -t TestLivenessHttp -t TestLivenessExec`
  simultaneously and confirmed that pod names did not clash and that
  both of them completed successfully.
2015-02-04 16:05:54 -08:00
Satnam Singh 2d1ee816a1 Change TestNetwork to allow parallel execution 2015-01-23 17:56:15 -08:00
Filipe Brandenburger 73bd452e76 Revert "Allow network end-to-end test to be run in parallel" 2015-01-23 11:11:31 -08:00
Satnam Singh 85691cba24 Allow network end-to-end test to be run in parallel 2015-01-22 17:55:00 -08:00
Filipe Brandenburger df6ab47c6e Convert liveness e2e test to Go
This commit reimplements hack/e2e-suite/liveness.sh in Go as part of cmd/e2e.

Tested by running it on a live cluster:
  $ cmd/e2e --host=https://w.x.y.z --provider=gce -t TestLivenessHttp -t TestLivenessExec
  I0122 08:12:53.183298    6502 liveness.go:72] Restart count of pod liveness-exec-6f917474-a251-11e4-8cc2-d4ae52bb3eea increased from 0 to 1 during the test
  I0122 08:13:23.605471    6502 liveness.go:72] Restart count of pod liveness-http-84d28569-a251-11e4-8cc2-d4ae52bb3eea increased from 0 to 1 during the test

Also ran the full e2e suite including kube-up/kube-down to confirm it works.
2015-01-22 09:24:53 -08:00
Satnam Singh 33e00320bf Convert private.sh test to Go and remove basic.sh and private.sh 2015-01-15 18:04:12 -08:00
Satnam Singh 1bff012c36 Convert basic.sh e2e test to Go 2015-01-15 11:41:29 -08:00