Commit Graph

4220 Commits (245b592facf11236c11a733474edd81deed02043)

Author SHA1 Message Date
Justin Santa Barbara edf0292d4a Add initial support for Volumes to AWS 2015-04-10 13:25:42 -07:00
Wojciech Tyczynski 88eb0b0295 FieldSelector for node List() 2015-04-10 12:53:16 +02:00
jayunit100 52befc19b9 use api convention 2015-04-09 17:43:10 -04:00
jayunit100 248b56d658 E2E : Networking.go Implement BeforeEach/AfterEach, and unique namespaces for each test to avoid any collisions due to etcd deletion consistency. variable into func.satnams suggestions remove superfluous if stmt 2015-04-09 16:11:30 -04:00
Quinton Hoole d85fbd7b5a Merge pull request #6600 from jayunit100/networking-ns2
Add namespace lifecycle to networking.go
2015-04-08 17:02:45 -07:00
jayunit100 b466b60386 Add a ephemeral namespace to networking.go, to be generalized shortly hereafter. 2015-04-08 19:01:25 -04:00
David Oppenheimer 4ffc2aad21 Merge pull request #6146 from kazegusuri/node_client_label
List in NodesInterface takes label selector
2015-04-08 14:22:53 -07:00
nikhiljindal fe60be3179 Moving v1beta1 kubectl examples to v1beta3 2015-04-08 13:08:13 -07:00
yaoguo 6f80df8ea1 Add e2e test for emptyDir 2015-04-08 22:56:09 +08:00
Masahiro Sano d04cc5ced4 List in NodesInterface takes label selector 2015-04-08 23:41:27 +09:00
Rohit Jnagal 63e8015edd Merge pull request #6547 from quinton-hoole/2015-04-07-build-broken
Mark monitoring e2e test as pending (skipped) until stable.
2015-04-07 17:09:55 -07:00
Quinton Hoole 3d4cacfaed Mark monitoring e2e test as pending (skipped) until stable. 2015-04-07 16:52:58 -07:00
Paul Morie 9de0cf0532 Fix typo in e2e network test 2015-04-07 18:47:00 -04:00
Rohit Jnagal 3cf04a66fb Merge pull request #6501 from jayunit100/shell-loc-log
Use ginkoRecover to prevent shell.go from causing cryptic crash when run...
2015-04-07 09:23:08 -07:00
Wojciech Tyczynski ede2e756cd Fix density test 2015-04-07 16:36:42 +02:00
jayunit100 326b21e65b Use ginkoRecover to prevent shell.go from causing cryptic crash when running tests from wrong dir 2015-04-06 23:19:59 -04:00
Saad Ali f22fe00a0b Merge pull request #6485 from timothysc/kube-e2e-events
Enable 'Events' tests for all providers, we need it for local
2015-04-06 17:39:51 -07:00
Rohit Jnagal 79fbb1018d Merge pull request #6486 from jayunit100/density2
E2E: parameter logs to inside of It declarations.
2015-04-06 16:02:12 -07:00
jayunit100 e1f7c58387 E2E: parameter logs to inside of It declarations. 2015-04-06 17:34:41 -04:00
Timothy St. Clair c665b2c128 Enable 'Events' tests for all providers, we need it for local 2015-04-06 16:27:25 -05:00
Rohit Jnagal 94c3cf3aba Merge pull request #6459 from jayunit100/density2
Density test : explicit concurrency parameterization
2015-04-06 13:10:08 -07:00
jayunit100 88735f1d90 E2E : Density tests - explicit concurrency, parameterization, generalization of test pattern. 2015-04-06 15:35:07 -04:00
nikhiljindal f2b72931fc Updating components to use v1beta3 2015-04-03 15:19:14 -07:00
Quinton Hoole dca645d416 Merge pull request #6388 from ixdy/e2e-sigterm-sigint
Convert SIGTERM into SIGINT in e2e test runner
2015-04-02 17:03:55 -07:00
Sam Ghods ca18e86877 Make naming of kubectl subcommands consistent 2015-04-02 16:14:53 -07:00
Jeff Grafton 8c7d6806d4 Convert SIGTERM into SIGINT in e2e test runner. 2015-04-02 14:54:22 -07:00
Satnam Singh d0dcc379cb Merge pull request #6341 from jayunit100/networking-test-reorder
Reorder/Modularize networking e2e + pod launch phase, clean up comments.
2015-04-02 13:28:12 -07:00
Brian Grant 414be101b6 Merge pull request #6352 from piosz/api
Removed PodStatus.Host
2015-04-02 13:16:24 -07:00
Jeff Lowdermilk 7abcba9017 Use an up-to-date nginx image for e2e tests 2015-04-02 10:15:20 -07:00
jayunit100 3ad7557ed4 Reorder/Modularize networking e2e + pod launch phase, clean up comments, rebase (comments). 2015-04-02 11:35:11 -04: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
Zach Loafman 1ff0a1e2a1 Merge pull request #6270 from jlowdermilk/gcloud-updates
Updates for gcloud 0.9.54
2015-04-01 19:14:57 -07:00
Satnam Singh 3c119c008d Convert kubernetes/serve_hostname to gcr.io/google_containers/server_hostname 2015-04-01 15:39:05 -07:00
Jeff Lowdermilk cfc04f41b8 Updates for gcloud changes (alpha, kubeconfig) 2015-04-01 09:27:06 -07:00
Jeff Lowdermilk 2d8e93f8b4 e2e images pulled from gcr.io 2015-04-01 09:18:03 -07:00
Paul Morie 0335e350c7 Fix issue 6294: networking e2e should set args, not command 2015-04-01 11:40:23 -04:00
Wojciech Tyczynski c5597efc0c Don't run Density test in e2e runs until #6059 is fixed 2015-04-01 09:23:09 +02:00
Victor Marmol d80ac514df Merge pull request #6224 from pmorie/e2e-refactor
Extract testContainerOutput method from e2e tests
2015-03-31 14:45:02 -07:00
Victor Marmol 06fc01d7c3 Merge pull request #6226 from satnam6502/es_cluster_logging
Increase timeout for Elasticsearch service
2015-03-31 13:03:50 -07:00
Brian Grant 3354cffbf0 Merge pull request #6182 from thockin/plural_services_20
Implement multi-port Services
2015-03-31 12:55:21 -07:00
Paul Morie 0efe5e7872 Extract testContainerOutput method from e2e tests 2015-03-31 15:41:56 -04:00
Satnam Singh 835e26510d Increase timeout for Elasticsearch service 2015-03-31 10:39:27 -07:00
Victor Marmol 9bbf0b1546 Merge pull request #6100 from pmorie/entrypoint
Add control over container entrypoint
2015-03-31 09:58:40 -07:00
Paul Morie 7628b37d78 Add control over container entrypoint 2015-03-31 12:32:03 -04:00
Victor Marmol 95c8e79c10 Merge pull request #6204 from pmorie/secrets-e2e
Fix log retrieval in secrets e2e
2015-03-31 08:21:22 -07:00
Filip Grzadkowski 27bb8b568c Merge pull request #6051 from wojtek-t/speedup_density_test
Change Density test to avoid pulling image be the main factor
2015-03-31 15:23:04 +02:00
Wojciech Tyczynski 467f400721 Change Density test to avoid pulling image be the main factor 2015-03-31 12:26:41 +02:00
Paul Morie f0a49c3255 Fix log retrieval in secrets e2e 2015-03-31 01:02:15 -04:00
Tim Hockin 186818d787 WIP: Implement multi-port Services 2015-03-30 19:28:11 -07:00
Quinton Hoole a4dde6e2cb Make service e2e tests run in timestamped namespaces.
Make some service e2e tests run in timestamped namespaces to prevent name collisions.
2015-03-30 15:49:06 -07:00
Vishnu Kannan 68abb4d5d4 Reduce cadvisor e2e test timeout since cadvisor is now part of the kubelet binary. 2015-03-30 18:53:51 +00:00
Robert Bailey 7ee3268931 Merge pull request #6032 from jayunit100/e2e-utils-2
E2E utils (correcting test regression)
2015-03-27 15:40:34 -07:00
Brian Grant a765236653 Merge pull request #5939 from thockin/plural_endpoints_31_endpt_subsets
Implement multi-port endpoints
2015-03-27 14:15:15 -07:00
Tim Hockin 8ae203825b Implement multi-port endpoints
Instead of endpoints being a flat list, it is now a list of "subsets"
where each is a struct of {Addresses, Ports}.  To generate the list of
endpoints you need to take union of the Cartesian products of the
subsets.  This is compact in the vast majority of cases, yet still
represents named ports and corner cases (e.g. each pod has a different
port number).

This also stores subsets in a deterministic order (sorted by hash) to
avoid spurious updates and comparison problems.

This is a fully compatible change - old objects and clients will
keepworking as long as they don't need the new functionality.

This is the prep for multi-port Services, which will add API to produce
endpoints in this new structure.
2015-03-27 12:36:32 -07:00
Matt Moore 9400b5b4f2 Move the 'private' (authenticated) image into a bucket owned by google-containers. 2015-03-27 09:54:37 -07: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
Vish Kannan d7c2786e22 Merge pull request #6015 from rjnagal/node
Fix flakiness in monitoring e2e test.
2015-03-26 14:59:57 -07:00
Rohit Jnagal b1911b9f98 Fix flakiness in monitoring e2e test. 2015-03-26 21:22:13 +00:00
Brian Grant 3b0db99692 Merge pull request #5915 from piosz/api
Changed PodInfo to be a list
2015-03-26 12:46:50 -07:00
Robert Bailey 6db95790c5 Revert "Refactor kubectl methods into utility class, so that we can easily integrate new tests and kube files written in json or other formats." 2015-03-26 12:22:04 -07:00
Zach Loafman 5ef6939740 Merge pull request #5992 from wojtek-t/extend_density_test
Improve density test to log unscheduled pods
2015-03-26 11:31:26 -07:00
Wojciech Tyczynski 13feb77288 Improve density test to log unscheduled pods 2015-03-26 17:01:47 +01:00
Robert Bailey 0c4f8cb711 Merge pull request #5773 from jayunit100/e2e_kubectl_util
Refactor kubectl methods into utility class, so that we can easily integrate new tests and kube files written in json or other formats.
2015-03-26 07:38:09 -07:00
jayunit100 60542d04ad Move core functionality to utils.go, to pave way for incorporating broader testing from examples (push to restart the build) 2015-03-26 09:41:44 -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
Daniel Smith a8b1fd8177 change the way the density test is enabled 2015-03-25 16:42:54 -07:00
deads2k aebf27113d gooracle complaint for unused variable 2015-03-25 08:49:34 -04:00
Paul Morie e40ba109a1 Change SecretVolumeSource to use a secret name instead of ObjRef 2015-03-24 13:58:41 -04:00
Robert Bailey 1724cbaa5e Merge pull request #5837 from satnam6502/logging
Fix error message for logging e2e test
2015-03-24 07:57:51 -07:00
Piotr Szczesniak 66c5a0768d Increased response timeout in kubectl e2e test
Should help for #5825. I ran the test 30 times and all passed.
2015-03-24 13:59:45 +01:00
Satnam Singh 68bd98596c Fix error message for logging e2e test 2015-03-24 00:03:06 -07:00
Alex Robinson 22825b1045 Add an end-to-end test for external load balancers. 2015-03-23 18:10:13 +00:00
Maxwell Forbes 0250fcfd8f Merge pull request #5732 from zmerlynn/i5722
service.go e2e: Cleanup ELBs from previous runs
2015-03-20 15:34:53 -07:00
Satnam Singh 2d345cb60a Add extra diagnostics to networking e2e test 2015-03-20 15:04:16 -07:00
Zach Loafman 4ab3852685 service.go e2e: Cleanup ELBs from previous runs
Prior to attempting to create new ones, cleanup from previous runs.
Timeouts, 500s, etc. are possible here, and if they happen, you don't
want to die forever.

Along the way: Remove the timeout, it was clearly copied from the
previous function and is actually an anti-pattern that needs to be
fixed after discovering it doesn't play well with defers.

Fixes #5722
2015-03-20 14:43:38 -07:00
Dawn Chen 7a6490f572 Merge pull request #5729 from thockin/plural_endpoints_30_restart
Rename Service.ContainerPort to TargetPort in v1b3
2015-03-20 14:37:46 -07:00
Tim Hockin 4375376e9c Rename Service.ContainerPort to TargetPort in v1b3
Fix all callers and examples.  Part of multi-port service cleanup.
2015-03-20 13:50:06 -07:00
Vish Kannan d11ec2933f Merge pull request #5720 from satnam6502/loge2e
Run cluster level logging e2e test in its own namesapce
2015-03-20 13:16:26 -07:00
Satnam Singh f2980a3f13 Run cluster level logging e2e test in its own namesapce 2015-03-20 11:30:01 -07:00
Satnam Singh bc58ac54e8 Cleanup Fail calls in networking e2e test 2015-03-20 11:00:24 -07:00
Satnam Singh 4645d13e77 Reduce pod usage for network e2e test 2015-03-18 22:10:15 -07:00
Satnam Singh 0feb7e2c79 Make networking e2e test use an explicitly tagged image 2015-03-18 15:54:20 -07:00
Rohit Jnagal 15ea997983 Merge pull request #5595 from piosz/guestbook_test
Added waiting for new entry in kubectl e2e test
2015-03-18 14:55:55 -07:00
Piotr Szczesniak 04ea0a8a82 Added waiting for new entry in kubectl e2e test
The test tends to fail because after an entry is added to data-base it takes
some time to replicate it from redis-master to redis-slave
2015-03-18 19:47:04 +01:00
Satnam Singh 7cd102ed6b Make networking e2e test run in its own namespace 2015-03-18 09:53:47 -07:00
Salvatore Dario Minonne 31ddefc347 Finalize fields.Selector 2015-03-17 22:55:43 +01:00
Alex Robinson 572f804139 Merge pull request #5269 from satnam6502/e2e_cluster_logging
End to end test for cluster level logging with Elasticsearch
2015-03-17 12:12:24 -07:00
Satnam Singh 2042f1bf9e End to end test for cluster level logging with Elasticsearch 2015-03-17 11:51:20 -07:00
Quinton Hoole cc72eaec3a Fix services namespace clash.
Serve identically names services in different namespaces on different external IP addresses.
2015-03-16 18:19:19 -07:00
Victor Marmol bdc1981eb5 Merge pull request #5433 from wojtek-t/remove_bound_pods
Remove BoundPods from Kubelet
2015-03-16 13:38:24 -07:00
Robert Bailey 0fe77d49af Merge pull request #5439 from piosz/guestbook_test
Ported guestbook.sh e2e test to ginkgo
2015-03-16 12:49:59 -07:00
Wojciech Tyczynski 5d95e9e671 Remove BoundPods from Kubelet 2015-03-16 19:17:21 +01:00
Piotr Szczesniak 2533ddffa5 Ported guestbook.sh e2e test to ginkgo
This fixed #5045
2015-03-16 18:33:15 +01:00
Jeff Lowdermilk e37fd2a84d Merge pull request #5477 from dchen1107/clean
Convert RestartPolicy to string for v1beta3.
2015-03-16 10:23:52 -07:00
Vishnu Kannan e89dd7e235 Updating heapster version to v0.9.
Updated the e2e test to work with the new version.
2015-03-14 19:00:18 +00:00
Dawn Chen 34e9c82c70 Convert RestartPolicy to string for v1beta3.
Fixed #3607 and spiritually support #5475
2015-03-13 18:38:07 -07:00
Satnam Singh d0768332f2 Merge pull request #5274 from lavalamp/fix4
Add 'thrash' test that starts and stops a bunch of rc's in parallel
2015-03-12 15:29:31 -07:00
Robert Rati 3c9a9a4fb0 Fixed issue with the density test failing after a successful run because of
a failure to cleanup #5385
2015-03-12 12:29:00 -04:00
Victor Marmol c03b080328 Merge pull request #5332 from vishh/heapster_e2e
Adding a ginkgo version of monitoring e2e test
2015-03-12 08:37:45 -07:00
Jerzy Szczepkowski f24531c88e Fixed pods e2e test.
Fixed pods e2e test. The test was failing due to PR #5256.
2015-03-12 14:05:50 +01:00
Vishnu Kannan cbb3c96f31 Removing old shell based monitoring test. 2015-03-12 02:39:15 +00:00
Vishnu Kannan 425dd7e3ee Adding a heapster ginkgo e2e test. 2015-03-11 21:47:47 +00:00
Zach Loafman 18d1a1e70e Merge pull request #5272 from satnam6502/e2e
Fix status message in waitForPodCondition
2015-03-11 13:10:20 -07:00
Zach Loafman e780592315 Merge pull request #5264 from jlowdermilk/kube-up
Standalone kubeconfig for gce kube-up (mulligan)
2015-03-11 11:46:45 -07:00
Alex Mohr c630f66658 Merge pull request #5165 from roberthbailey/rc-hostports
Remove the host port from the replication controller e2e test.
2015-03-11 11:08:14 -07:00
Lénaïc Huard a326051325 Skip PD e2e test on non gce clusters 2015-03-11 17:58:40 +01:00
Daniel Smith a5396a808e add 'thrash' test that starts and stops a bunch of rc's in parallel 2015-03-10 16:59:26 -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
Daniel Smith c542518ed6 Merge pull request #4862 from rrati/e2e-density-4861
Added a density test to start 100 pods/node in a cluster #4861
2015-03-10 12:05:31 -07:00
Robert Rati 798b3ee7fd Added a density test to start 100 pods/node in a cluster #4861 2015-03-10 13:41:24 -04:00
Jerzy Szczepkowski 0342ba3476 Watch support in PodInterface.
Added Watch support to PodInterface. Extended pods e2e to test watch. Resolves #4777.
2015-03-10 09:45:44 +01: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
Daniel Smith 6de2e615cb Merge pull request #5193 from bprashanth/e2e_stop_controller
Properly reap replication controllers in e2e test
2015-03-09 15:38:26 -07:00
Alex Mohr 0cac9ed2fd Merge pull request #5155 from jlowdermilk/e2e
Include seconds waited in e2e/kubectl.go timeout message.
2015-03-09 13:44:32 -07:00
Prashanth Balasubramanian 0e484f25b1 Properly reap replication controllers in e2e test 2015-03-09 13:08:12 -07:00
Robert Bailey a32f024029 Remove the host port from the replication controller e2e test. 2015-03-07 19:48:00 -08:00
Jeff Lowdermilk 8ab723404f Include seconds waited in e2e/kubectl.go timeout message. 2015-03-06 16:54:16 -08: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
roberthbailey ca9d24304b Merge pull request #5106 from jlowdermilk/e2e
Make e2e pod start timeouts uniform
2015-03-05 16:39:10 -08:00
Jeff Lowdermilk 083f29158f Make e2e pod start timeouts uniform 2015-03-05 15:54:45 -08:00
Daniel Smith d5ae2b56ad Add v1beta3 files to update-demo 2015-03-05 11:48:25 -08:00
Robert Bailey dcd4981ec1 Replace the use of kubectl proxy with a standard api client. 2015-03-04 20:39:27 -08:00
Robert Bailey 55f2da3cd5 Check for non-200 responses separately from errors from the http get.
Fixes #5059
2015-03-04 14:39:56 -08:00
Zach Loafman ce2570d250 Merge pull request #5035 from pmorie/pd-e2e
Fix assertion on number of nodes in PD e2e test
2015-03-04 10:43:50 -08:00
Paul Morie ce2b036b2b Fix assertion on number of nodes in PD e2e test 2015-03-04 13:30:03 -05:00
Tim Hockin fdea7252a4 Merge pull request #5001 from brendandburns/api3
Embed VolumeSource in v1beta3 and internal.
2015-03-04 09:50:14 -08:00
Jeff Lowdermilk 3891ad1b8f Merge pull request #5015 from roberthbailey/kubectl-e2e-timeout
Increase the kubectl e2e test timeout to 10 minutes
2015-03-04 09:24:41 -08:00
Brendan Burns fb90b56bf6 Embed VolumeSource in v1beta3 and internal. 2015-03-04 02:25:40 -08:00
Robert Bailey 8ae17bf677 Increase the timeout to 10 minutes to give docker plenty of time to pull the
image. We've seen increasing pull times lately causing the e2e tests to flake.

Fixes #4996.
2015-03-03 21:54:54 -08:00
CJ Cullen 51f1a244e7 Fix leaking PDs from pd.go e2e test
Also upped the timeouts, because Slow Test > Flaky Test.
2015-03-03 11:10:36 -08:00
Jeff Lowdermilk 66dfbe900a Merge pull request #4963 from roberthbailey/kubectl-proxy
Remove host ports from the update demo and update tests (take 2).
2015-03-02 15:16:04 -08:00
Brendan Burns fe973461f5 Merge pull request #4916 from thockin/plural_21_endpoints
Rename type Port to ContainerPort
2015-03-02 10:53:32 -08:00
Robert Bailey 5799dd5f7d Remove host ports from the update demo and update tests (take 2). 2015-03-02 10:15:34 -08: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
Tim Hockin ea548b8260 Rename type Port to ContainerPort
Sadly I had to do this by hand - I just could not get gorename to fix up
users of it.
2015-02-27 21:05:59 -08:00
Zach Loafman 507b202b23 Merge pull request #4864 from jlowdermilk/kubectl-e2e-timeout
Increase timeout on kubectl.go to 60s
2015-02-26 13:31:52 -08:00
Jeff Lowdermilk 9871bbc1ae Increase timeout on kubectl.go to 60s
Should reduce flakiness caused by ~30s docker image pulls.
2015-02-26 12:13:28 -08:00
roberthbailey 6efa68aa86 Merge pull request #4750 from fabioy/e2e-defer.fix
Move 'defer' call before creation on various e2e tests.
2015-02-26 10:03:46 -08:00
Jeff Lowdermilk 1db43f8f3e Trim whitespace from kubectl in e2e/kubectl.go 2015-02-25 15:26:51 -08:00
Fabio Yeon 0b72391aa0 Move 'defer' call before creation on various e2e tests. 2015-02-25 10:04:51 -08:00
Zach Loafman 84a2a9766a Revert "Remove host ports from the update demo and update tests" 2015-02-25 09:56:03 -08:00
Robert Bailey dd87c247a5 Remove host ports from the update demo and update tests 2015-02-24 15:34:18 -08:00
Tim Hockin 0c5e421e92 fix head 2015-02-23 14:38:39 -08:00
Rohit Jnagal cbcd35539f Merge pull request #4718 from cjcullen/pdtest
Fix PD detach (fix the mount path/device name calculation).
2015-02-23 14:28:02 -08:00
Zach Loafman f3a20bd39b Merge pull request #4739 from vishh/cadvisor
Increase the timeout on apiserver requests to fetch node stats.
2015-02-23 14:15:46 -08:00
Vishnu Kannan e1147184d5 Increase the timeout on apiserver requests to fetch node stats. 2015-02-23 21:54:24 +00:00
Daniel Smith 650f6cb826 Revert "Multi-port Endpoints" 2015-02-23 13:53:21 -08:00
Tim Hockin eed36455a7 Merge pull request #4653 from thockin/secret_fixups
Secrets fixups
2015-02-23 13:49:19 -08:00
Daniel Smith 502f040129 Merge pull request #4712 from thockin/plural_30_endpoints
Multi-port Endpoints
2015-02-23 13:48:37 -08:00
Tim Hockin 607b736a3f Rename volume source types to be consistent. 2015-02-23 12:39:57 -08:00
CJ Cullen 54e8240916 Fix PD detach (fix the mount path/device name calculation).
Fix readonly PD attach (don't try to format).
Add an e2e test to verify that PDs are attached and detached correctly.
Add an e2e test to verify that readonly PDs can be attached to >1 pods.
2015-02-23 12:19:22 -08:00
Zach Loafman 490624cfb7 Merge pull request #4631 from fabioy/fix-pods.go
Move the various "defer" calls before the creation in pods.go e2e test.
2015-02-23 09:55:14 -08:00
Tim Hockin 160f288832 Implement multi-port Endpoints
This is a part of multi-port services.
2015-02-22 09:35:12 -08:00
Tim Hockin e0fd83096c Rename type Port to ContainerPort
Sadly I had to do this by hand - I just could not get gorename to fix up
users of it.
2015-02-21 22:26:38 -08:00
Zach Loafman 93d77ab67c Merge pull request #4681 from jlowdermilk/cadvisor-e2e
Deflake cadvisor e2e by adding retry loop
2015-02-20 15:51:56 -08:00
Alex Robinson 5ea0895987 Merge pull request #4682 from a-robinson/e2e
Un-revert #4551 which moved the certs.sh e2e test to ginkgo and fix the e2e auth breakage it caused
2015-02-20 15:50:00 -08:00
Brendan Burns 9829128a75 Merge pull request #4580 from thockin/plural_20_endpoints
Part 2 of plural ports: make endpoints a struct
2015-02-20 15:42:19 -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
Satnam Singh 8c7806dc4a Merge pull request #4637 from jlowdermilk/examples-e2e
Port update.sh to ginkgo test
2015-02-20 14:58:50 -08:00
Jeff Lowdermilk 881ff89d92 Deflake cadvisor e2e by adding retry loop
Wait up to 5 minutes for cadvisor to start on nodes to reduce
test failures from running immediately after cluster turnup.
2015-02-20 14:09:11 -08:00
Jeff Lowdermilk b389b360f8 Port update.sh to ginkgo test 2015-02-20 13:17:15 -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
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
Fabio Yeon 2944334db1 Move the various "defer" calls before the creation in pods.go e2e test. 2015-02-19 15:26:40 -08:00
Fabio Yeon 84b0bcf739 Clean up events.go test by removing HostPort 2015-02-19 10:55:37 -08:00
Zach Loafman 413e1dba7e Merge pull request #4569 from a-robinson/e2e-times
Fix the e2e --times flag for running tests more than once
2015-02-19 07:20:01 -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
Tim Hockin ae0062d001 Part 2 of plural ports: make endpoints a struct
Includes conversions for v1b[12] and tests and fixups for call sites.
2015-02-18 19:54:15 -08:00
Alex Robinson 9f10f7714b Fix the e2e --times flag for running tests more than once. Fixes #4555. 2015-02-18 16:59:40 -08:00
Yu-Ju Hong 48ff578f7a Merge pull request #4572 from brendandburns/hostPort
Remove hostPort from several tests.
2015-02-18 16:54:05 -08:00
Brendan Burns c83c571cc7 Remove hostPort from several tests. 2015-02-18 16:11: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
Paul Morie a42ff94c8f Add secret volume plugin and e2e test 2015-02-18 16:27:44 -05:00
Vishnu Kannan 4c3397cdf4 Adding an integration test for cadvisor. 2015-02-18 00:58:06 +00:00
Jeff Lowdermilk 6c3166ad13 Deflake Pods should contain environment variables for services 2015-02-13 17:58:29 -08:00
Brendan Burns a2beba5ace Add some retry to envvar log gathering. 2015-02-13 09:35:22 -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 9774e9bb7b Remove unnecessary GinkgoDefer()s 2015-02-12 11:33:33 -08:00
Zach Loafman ac8e8cca78 Merge pull request #4280 from rrati/e2e-liveness-4253
E2e liveness 4253
2015-02-12 10:16:00 -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
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
Zach Loafman 7efc60580e Port TestBasic and TestPrivate to Ginkgo syntax
Fixes #4261
2015-02-10 11:00:53 -08:00
Robert Rati 979ecf42d2 Moved liveness tests into the pod suite #4253 2015-02-10 13:47:48 -05:00
Zach Loafman a624b99ffa Move basic.go to rc.go 2015-02-10 08:00:10 -08:00
Robert Rati d3aa9cdc69 Convert liveness tests to native ginkgo syntax #4253 2015-02-10 09:03:54 -05:00
Zach Loafman a8991edf9e Port endpoints.go test to new-style Gingko test 2015-02-09 12:37:56 -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
Zach Loafman afcfe96fc8 Merge pull request #4223 from rrati/e2e-events-4220
E2e events 4220
2015-02-06 17:03:39 -08:00
Zach Loafman 845605458a Turn on color, turn on EmitSpecProgress 2015-02-06 15:24:32 -08:00
Robert Rati 5013375242 Converted TestKubeletSendsEvent to native ginkgo syntax #4220 2015-02-06 15:54:17 -05:00
Robert Rati cfe96c08b9 Moved kubelet_sends_events to create new events test suite #4220 2015-02-06 15:20:14 -05:00
Zach Loafman 615b1ab605 Merge pull request #4211 from rrati/e2e-networking-4179
E2e networking 4179
2015-02-06 11:26:23 -08:00
Robert Rati 1be4ab2aaa Moved TestImportantURLs to the networking suite #4179 2015-02-06 14:09:48 -05:00
Robert Rati d75d36f3d3 Ported TestImportantURLs to native ginkgo syntax #4179 2015-02-06 14:09:48 -05:00
Robert Rati a1dcec8a1c Ported TestNetwork to native ginkgo syntax #4179 2015-02-06 14:09:46 -05:00
Robert Rati 6d171a458e Renamed network.go to networking.go #4179 2015-02-06 10:47:03 -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
Zach Loafman 9261c5a655 Remove timeout from cmd/e2e now that all tests are under it 2015-02-05 14:35:24 -08:00
Filipe Brandenburger 5de4c49792 Merge pull request #4153 from brendandburns/e2e
Add a simple endpoints test.
2015-02-05 13:54:33 -08:00
Zach Loafman 3fbfecccff Merge pull request #4163 from rrati/e2e-services-4162
E2e services 4162
2015-02-05 12:06:37 -08:00
Robert Rati 70237e9cc6 Changed to return in the success case testing testContext instead of using
an else statement.  #4162
2015-02-05 13:09:46 -05: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
Robert Rati d3e04cd246 Moved the ROService test into the services suite #4162 2015-02-05 10:23:48 -05:00
Robert Rati eefd7ace56 Converted TestKubernetesROService to native ginkgo syntax #4162 2015-02-05 10:23:48 -05:00
Robert Rati d44c1d5b84 Converted TestClusterDNS to native ginkgo syntax #4162 2015-02-05 10:23:46 -05:00
Robert Rati de848cc3f0 Moved cluster_dns to create the new service test suite #4162 2015-02-05 10:07:32 -05:00
Brendan Burns 30f91b0ab7 Add a simple endpoints test. 2015-02-04 22:51:36 -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 9ec61ce355 Merge pull request #4004 from filbranden/e2e_podsvcenv_remove_embedded_json
Use api.Pod and api.Service objects instead of JSON snippets
2015-02-04 14:49:24 -08:00
Zach Loafman 190afa542c Reenable TestClusterDNS on GKE now that 0.9.2 is default 2015-02-04 09:34:40 -08:00
Robert Rati 50467043d5 Converted test in pods suite to use native Go definition of the api.Pod #4070 2015-02-03 15:29:23 -05:00
Filipe Brandenburger f1c354981e Use api.Pod and api.Service objects instead of JSON snippets
Start to use unique names for the pods and services. Later, we will
replace that by the use of namespaces.

We are also discussing using a versioned api, however that refactor can
happen on a follow up commit as well.

Tested by running cmd/e2e -t Pods against an API server in GCE.
2015-02-03 11:19:10 -08:00
Robert Rati 3a562b18a7 Moved TestPodHasServiceEnvVars into the pods test suite and deleted the
original file #3941
2015-02-03 09:17:14 -05:00
Robert Rati da2594710a Converted TestPodHasServiceEnvVars to native ginkgo syntax #3941 2015-02-03 09:17:14 -05:00
Robert Rati eb5d340851 Added a submit/remove test to pods #3941 2015-02-03 09:17:14 -05:00
Robert Rati e47b98db29 Converted TestPodUpdate to native ginkgo syntax #3941 2015-02-03 09:17:12 -05:00
Robert Rati 44510e11ac Renamed the pod_update file to pods #3941 2015-02-03 08:50:46 -05:00
Alex Robinson 4b0e4a111e Merge pull request #4035 from brendandburns/webtest
Fix contrib webserver so that it compiles.
2015-02-02 16:08:44 -08:00
Brendan Burns 8bce2ef61c Fix contrib webserver so that it compiles. 2015-02-02 15:20:28 -08:00
Filipe Brandenburger 1d981f9345 Convert load of api/examples/pod.json into native Go definition of the api.Pod
This is another step in removing external dependencies of the Go e2e tests.

Remove references to this file on list of files required to run e2e tests.

Also use an unique name for the pod, so that failure in cleanup of a
previous run should not break a new run with a name conflict.

Tested by running cmd/e2e -t TestPodUpdate against an API server in GCE.
2015-01-30 15:25:56 -08:00
Filipe Brandenburger a74fce5bd7 Convert load of test/e2e/pod.json into native Go definition of the api.Pod
This is another step in removing external dependencies of the Go e2e tests.

Also remove other references to this file.

Tested by running cmd/e2e -t TestKubeletSendsEvent against an API server in GCE.
2015-01-30 13:21:09 -08:00
Satnam Singh c56dd3ddc7 Increase timeout for Go tests 2015-01-30 08:30:26 -08:00
Satnam Singh db416c4f39 Merge pull request #3970 from justinsb/fix_aws
aws cluster/kube-up.sh fixes
2015-01-30 07:56:01 -08:00
Justin Santa Barbara 993071dd64 Add aws to some e2e tests 2015-01-29 20:35:35 -05:00
Satnam Singh 4fa0baa7df Merge pull request #3925 from filbranden/e2e_ginkgo_tests_subset
Make cmd/e2e -t work again
2015-01-29 09:25:13 -08:00
Filipe Brandenburger a58b1ca39c Make liveness e2e test more hermetic
Avoid importing the YAML files from the examples/ tree, instead just
define the api.Pod structs in the Go source code.

Tested by running the TestLivenessHttp and TestLivenessExec tests
against a test cluster.
2015-01-29 00:09:12 -08:00
Filipe Brandenburger fa845030c4 Make cmd/e2e --test work after the conversion to Ginkgo
Use the --ginkgo.focus flag which accepts a regexp to define which tests
should be run. Create a regexp matching a full word that is exactly one
of the test names passed as -t parameters.

Tested with cmd/e2e -t TestLivenessHttp -t TestLivenessExec, confirmed
that 2 tests were executed and 9 were skipped.
2015-01-28 21:11:23 -08:00
Filipe Brandenburger 47739abb30 Make it possible to re-enable color output in Ginkgo e2e tests
Instead of forcing the NoColor flag to on at runtime, make it default to
being on in a way that it's still possible to override it by passing e2e
the --ginkgo.noColor=false command-line flag.

Tested by running the tests with and without the flag and confirming
that both worked as expected.
2015-01-28 20:25:46 -08:00
Filipe Brandenburger bd79d00e22 Generate JUnit XML for Jenkins from the Go e2e tests
Use ginkgo's native support for JUnit in order to generate the XML file.

This is a first step in better integration of our e2e tests with
Jenkins. In order to improve the logged information, we will probably
need to have more native ginkgo tests but this step allows us to see
what Jenkins can already do with this information and what we need to
tweak to improve it.

Tested by running the full e2e tests and inspecting the contents of
junit.xml on the top of the tree.

Textual output is still generated on the console to keep the current
goe2e.sh logs available until the full conversion of our Jenkins
instance to use the JUnit XML is completed.
2015-01-28 15:09:53 -08:00
Filipe Brandenburger 1c028de03a Initial adoption of ginkgo in e2e tests
In order to adopt ginkgo incrementally, let's start by replacing
test/e2e/driver.go with a call to ginkgo runner and convert each of the
other tests to a small Decscribe() snippet that simply calls the legacy
TestXYZ function.

From this basis we can take further incremental steps by converting
individual tests to native ginkgo format, using Fail() for all failure
cases, using By() for logs, enabling JUnit reports, etc.

Tested:
- cmd/e2e builds and `make check` passes.
- Running _output/bin/.../e2e on an alive cluster works.
- Running the full hack/e2e-test.sh works as expected.
2015-01-28 15:09:53 -08:00
Tim Hockin 988d15943f Merge pull request #3787 from satnam6502/serve_hostname
Reduce size of serve_hostname image
2015-01-28 09:07:26 -08:00
Satnam Singh 3841d1b5d1 Reduce size of serve_hostname image 2015-01-24 09:49:26 -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
Filipe Brandenburger df84f70781 Merge pull request #3749 from satnam6502/network
Allow network end-to-end test to be run in parallel
2015-01-23 09:20:22 -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 a56cd2867e Merge pull request #3746 from satnam6502/roservice
Reinstate ROService test now that rate limit issue has been addressed
2015-01-22 16:37:07 -08:00
Satnam Singh 472488d572 Reinstate ROService test now that rate limit issue has been addressed 2015-01-22 16:29:55 -08:00
Satnam Singh cff7cab77f Allow cluster DNS e2e test to be run in parallel 2015-01-22 15:39:57 -08:00
Filipe Brandenburger 7d0e1f0d62 Merge pull request #3724 from satnam6502/noenv
Remove use of KUBERNETES_PROVIDER env var from Go end to end tests
2015-01-22 12:21:39 -08:00
Satnam Singh 1bae69a9c4 Remove use of KUBERNETES_PROVIDER env var from Go end to end tests 2015-01-22 11:56:13 -08:00
Satnam Singh eb819c9e08 Use a fresh client for each Go end-to-end test 2015-01-22 11:00:07 -08:00
Satnam Singh 1e9c37d507 Merge pull request #3715 from filbranden/e2e_liveness_go1
Convert liveness e2e test to Go
2015-01-22 10:58:57 -08:00
Satnam Singh 7a149e6e16 Understand why cluster_dns e2e test fails 2015-01-22 09:56:40 -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 0beb6a2a33 Disable TestKubernetesROService e2e test 2015-01-21 15:22:08 -08:00
Dawn Chen d2ebbcaf90 Merge pull request #3661 from thockin/volume-source-as-non-pointer
Make VolumeSource not be a pointer
2015-01-21 12:39:49 -08:00
Brian Grant 91533095e5 Merge pull request #3656 from jbeda/vagrant-e2e
Fix up a bunch of vagrant stuff to enable e2e
2015-01-21 07:26:13 -08:00
Satnam Singh fc83ba704b Make basic end to end test robustly wait for hostIP 2015-01-20 19:30:13 -08:00
Tim Hockin 819803b79f Make VolumeSource not be a pointer
There's no reason for it to be a pointer.
2015-01-20 17:54:04 -08:00
Joe Beda 20c594066b Disable a couple of e2e tests for vagrant for now.
The core issue is that vagrant lacks connectivity from master to containers.
2015-01-20 13:59:43 -08:00
Alex Robinson 9e3c93a064 Merge pull request #3615 from zmerlynn/random_shuffle_go
cmd/e2e: Port --orderseed and --times to cmd/e2e from hack/e2e
2015-01-20 10:24:50 -08:00
Zach Loafman 868d2c4336 cmd/e2e: Port --orderseed and --times to cmd/e2e from hack/e2e
* Add --orderseed, shuffle order every time, report order for repeatability
* Add --times, acts like a multi-deck shoe
* Remove fixed numbering in TAP output (this is actually not needed;
TAP output is just done by outputting what assertion count you're on.)

This is essentially just a port of f3a992aa and 369064c6 (minus
reporting, which can be handled later when we make TAP, etc, better).
2015-01-19 14:50:15 -08:00
Andrew Seidl 6dee1d7fa4 Fix typos in user-facing strings 2015-01-18 01:32:34 -06:00
Satnam Singh 8b68d7ee2d Skip GET test for basic.go when no hostIP 2015-01-16 10:04: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
Filipe Brandenburger 6a79d4e265 Support a --test/-t repeated flag to allow run only a subset of the e2e.go tests.
This syntax is akin to what Python unittest uses for running a subset of the tests.

If a test gets skipped, log it. If an invalid test test is passed to --test, warn about it.
2015-01-15 16:30:39 -08:00
Satnam Singh 1bff012c36 Convert basic.sh e2e test to Go 2015-01-15 11:41:29 -08:00