Commit Graph

3048 Commits

Author SHA1 Message Date
Justin Santa Barbara
3912ab29d8 e2e test polishing
Some typo fixes; some clearer messages on failed assertions;
some TODOs on deeper problems.
2015-06-16 21:15:11 -04:00
Jordan Liggitt
ee4cd972e0 Validate port protocol case strictly 2015-06-16 20:28:11 -04:00
Saad Ali
68edcaa08b Merge pull request #9900 from pmorie/nfs-e2e
Fix typo in volumes e2e
2015-06-16 15:58:49 -07:00
Saad Ali
418ab026c3 Merge pull request #9839 from lavalamp/logSpam
remove broken ginkgo Done concept from tests
2015-06-16 15:50:11 -07:00
Justin Santa Barbara
c4d8a73345 AWS: Enable restart tests 2015-06-16 18:47:01 -04:00
Saad Ali
0aae358d2d Merge pull request #9835 from caesarxuchao/remove-testapi-nsQuery
Update pkg/api/testapi because namespace is always in the path now
2015-06-16 14:54:36 -07:00
Paul Morie
0ec8332418 Fix typo in volumes e2e 2015-06-16 17:24:02 -04:00
Chao Xu
a309d3e652 Update pkg/api/testapi because namespace is always in the path since we remove v1beta1/2 2015-06-16 14:12:03 -07:00
Brendan Burns
c3f4b3ff97 Switch to the gcr nginx container in a few remaining places. 2015-06-16 11:49:36 -07:00
Brendan Burns
ca8317695f Switch to gcr.io for the mount test container. 2015-06-16 11:45:34 -07:00
Brendan Burns
9fda26e5da Switch to loading busybox from gcr. 2015-06-16 11:31:33 -07:00
Saad Ali
5596e6f789 Merge pull request #9493 from marekbiskup/testAddonUpdate
e2e test for addon upgrade
2015-06-16 10:50:15 -07:00
Eric Tune
03826ec139 Rephrase test descriptions. 2015-06-16 10:38:41 -07:00
Prashanth Balasubramanian
831d7a36d0 Scrape /metrics of kubelets from e2e tests 2015-06-16 09:50:40 -07:00
Saad Ali
dae03043d4 Merge pull request #9732 from ixdy/e2e-coredump
e2e: in core dump, add delta to waitgroup outside of goroutine
2015-06-16 09:16:29 -07:00
Filip Grzadkowski
6674913f92 Merge pull request #9858 from fgrzadkowski/skip_density
Skip density test in a regular e2e run
2015-06-16 15:35:54 +02:00
Filip Grzadkowski
74736d903f Skip density test in a regular e2e run 2015-06-16 15:29:18 +02:00
Mike Danese
145f59f12f cleanup some of the e2e service reachability code. 2015-06-15 23:54:03 -07:00
Daniel Smith
1fb90686df remove broken ginkgo Done concept from tests 2015-06-15 18:40:11 -07:00
Brendan Burns
3a2e20307f Set the project when creating/destroying pd disks. 2015-06-15 16:45:48 -07:00
Satnam Singh
b45b3e1aeb Add extra logging to help debug logging test issue 2015-06-15 13:24:18 -07:00
Fabio Yeon
bd87185838 Merge pull request #9554 from pmorie/emptydir-e2e
Rename emptyDir e2e test cases
2015-06-15 10:20:44 -07:00
Marek Biskup
dcc4034d57 e2e test for addon update 2015-06-15 17:37:24 +02:00
Marek Grabowski
01f0eac2bd Merge pull request #9714 from fgrzadkowski/debug_scalability
Fix printing deleted pods from RC during e2e tests
2015-06-15 13:29:59 +02:00
Quinton Hoole
921011fc7f Merge pull request #9698 from lavalamp/e2eTestFix
Add a proxy test
2015-06-12 19:26:00 -07:00
Quinton Hoole
85ade1db0a Merge pull request #9592 from lavalamp/logSpam
Restore service latency test & fix bugs
2015-06-12 19:20:17 -07:00
Daniel Smith
e29245f710 add proxy tester 2015-06-12 17:17:43 -07:00
Abhi Shah
283fc8e883 Merge pull request #9727 from satnam6502/es-logging
Make Elasticsearch logging test check for node failures
2015-06-12 16:43:10 -07:00
Abhi Shah
2e9509fbc7 Merge pull request #9647 from bprashanth/roll
Fix rolling update e2e test
2015-06-12 15:25:41 -07:00
Abhi Shah
117f550334 Merge pull request #9724 from brendandburns/e2e-fix
Increase timeouts for service tests.
2015-06-12 15:25:17 -07:00
Satnam Singh
492d22972b Make Elasticsearch logging test check for node failures 2015-06-12 14:00:24 -07:00
Daniel Smith
9423f80d20 fix test bug & conversion bug 2015-06-12 13:55:10 -07:00
Abhi Shah
22a4d555c6 Merge pull request #9517 from mikedanese/e2e-cluster-upgrade
e2e test cluster stability during master upgrade
2015-06-12 13:53:09 -07:00
Abhi Shah
ef60540446 Merge pull request #9676 from marekbiskup/skipNotReadyNodesInNetworkTest
skip not ready nodes in networking test
2015-06-12 13:49:56 -07:00
Jeff Grafton
4d52d2f1c1 e2e: in core dump, add delta to waitgroup outside of goroutine. 2015-06-12 13:29:13 -07:00
Brendan Burns
bf9fec5bc2 Increase timeouts for service tests. 2015-06-12 11:53:46 -07:00
Filip Grzadkowski
4ffb4b2895 Fix printing deleted pods from RC during e2e tests 2015-06-12 16:15:29 +02:00
Filip Grzadkowski
7b7e3ab58b Increase threshold for density test to accomodate slower 4 core master 2015-06-12 11:49:53 +02:00
Marek Biskup
d89e1293a2 skip not ready nodes in networking test 2015-06-12 09:29:42 +02:00
Daniel Smith
47294dd326 Revert "Revert "Test Service creation -> endpoint generation latency""
This reverts commit 654857114e.
2015-06-11 18:34:31 -07:00
Abhi Shah
0e3633d404 Merge pull request #9615 from vishh/heapster_v0.14.0
Update to heapster v0.14.0
2015-06-11 15:14:34 -07:00
Mike Danese
de55e17f75 e2e test cluster stability during upgrade 2015-06-11 15:10:52 -07:00
Abhi Shah
237b968228 Merge pull request #9117 from jszczepkowski/e2e-nodes
Reboot e2e test made more robust by using nohup.
2015-06-11 14:46:43 -07:00
Abhi Shah
bd6db7b175 Merge pull request #8793 from jayunit100/minpods
Parameterize minStartupPods
2015-06-11 11:22:44 -07:00
Abhi Shah
c5553af281 Merge pull request #9506 from cjcullen/resize
Make resize tests work on GKE
2015-06-11 11:05:07 -07:00
Abhi Shah
492f121f83 Merge pull request #9530 from satnam6502/cauldron
Cauldron soak test
2015-06-11 08:48:22 -07:00
Marek Grabowski
0bee4aa76b Merge pull request #9571 from fgrzadkowski/fix_load_test
Simplify e2e.RunRC method and wait up to 10 minutes for pods to start
2015-06-11 15:19:55 +02:00
Filip Grzadkowski
03f161def2 Simplify e2e.RunRC method and wait up to 10 minutes for pods to start 2015-06-11 14:22:47 +02:00
Prashanth Balasubramanian
adc1a26c37 fix rolling update e2e test 2015-06-10 18:09:20 -07:00
Vishnu Kannan
a38204a498 Update to heapster v0.14.0 2015-06-10 16:38:34 -07:00
jayunit100
19b3017fb5 Parameterization of minStartupPods 2015-06-10 19:37:06 -04:00
Abhi Shah
bdeb4f31a8 Merge pull request #9514 from brendandburns/e2e
Add a test that verifies pods with resource limits schedule.
2015-06-10 13:46:24 -07:00
Abhi Shah
547b3a7ef2 Merge pull request #9409 from lavalamp/e2eTestFix
switch to generateName for namespace creation
2015-06-10 13:31:10 -07:00
Satnam Singh
d6145ec69b Cauldron soak test 2015-06-10 10:32:15 -07:00
Jerzy Szczepkowski
346b8473a3 Reboot e2e test made more robust by using nohup.
Reboot e2e test made more robust by using nohup in ssh commands. Fixes #9062. Follow-up of #8784.
2015-06-10 15:57:46 +02:00
Filip Grzadkowski
0f6c715b77 Print latency metrics before the density test 2015-06-10 14:19:52 +02:00
Filip Grzadkowski
c48e622cde Decrease threshold for density (2s) and load test (1s) 2015-06-10 11:23:31 +02:00
Brendan Burns
654857114e Revert "Test Service creation -> endpoint generation latency" 2015-06-09 21:24:00 -07:00
Paul Morie
86d6316185 Rename emptyDir e2e test cases 2015-06-10 00:11:46 -04:00
krousey
1c58d2a766 Merge pull request #9354 from lavalamp/logSpam
Test Service creation -> endpoint generation latency
2015-06-09 15:51:26 -07:00
Brendan Burns
3b034a8293 Add a test that verifies pods with resource limits schedule. 2015-06-09 15:21:27 -07:00
krousey
033c1f8d2b Merge pull request #9498 from satnam6502/serve_hostnames
Update serve_hostnames node check with namespace creation
2015-06-09 15:03:57 -07:00
Satnam Singh
55580b2490 Update serve_hostnames node check with namespace creation 2015-06-09 13:16:11 -07:00
krousey
c1e9a413a3 Merge pull request #9492 from mikedanese/e2e-etcd-sigkill
Etcd e2e: retry pod delete if etcd is slow to come back from a SIGKILL
2015-06-09 12:43:11 -07:00
krousey
43a423f6fc Merge pull request #9440 from brendandburns/ssh
Add an initial test for SSH.
2015-06-09 12:08:26 -07:00
CJ Cullen
abc4e53648 Make resize tests work on GKE 2015-06-09 12:00:10 -07:00
krousey
cf4b4a313b Merge pull request #9335 from swagiaal/e2e-test-prefix
Add a prefix option to e2e for use with resources
2015-06-09 11:50:02 -07:00
krousey
9740105a99 Merge pull request #8837 from mbforbes/rollingTest
E2E test node upgrade (to same version)
2015-06-09 10:42:17 -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
Mike Danese
52c8d164ff retry pod delete in etcd failure test 2015-06-09 09:37:43 -07:00
Filip Grzadkowski
ea7a615ce6 Refactor load test and reduce the load during the test. 2015-06-09 16:44:23 +02:00
Brendan Burns
2240486110 Add an initial test for SSH. 2015-06-08 20:53:05 -07:00
Daniel Smith
2c8ef35a65 add service endpoint latency test 2015-06-08 16:23:34 -07:00
krousey
8a9e0e00bf Merge pull request #9128 from marekbiskup/addonUpgrade
Addon upgrade (partial implementation of #8107)
2015-06-08 15:15:27 -07:00
krousey
2bb0fc00e5 Merge pull request #9392 from jszczepkowski/e2e-net
Added e2e test case for network partition.
2015-06-08 11:35:28 -07:00
Daniel Smith
ace6e9d186 switch to generateName for namespace creation 2015-06-08 10:53:06 -07:00
Sami Wagiaalla
28d501d332 Fix createTestingNS function name in godoc
Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-06-08 11:15:58 -04:00
Marek Biskup
13ba177668 kube-addon-update.sh 2015-06-08 15:10:40 +02:00
Jerzy Szczepkowski
445ae0f576 Added e2e test case for network partition.
Added e2e test case which verifies if a node can return to cluster after longer network partition. Valid for gce.
2015-06-08 14:08:32 +02:00
jayunit100
e93d317437 Add a --e2e-output-dir for use in e2e tests (default is /tmp/) 2015-06-05 19:15:50 -04:00
Quinton Hoole
4b84782e64 Merge pull request #9322 from liggitt/e2e_service_account_wait
Wait for default serviceaccount in e2e createTestingNS
2015-06-05 12:54:27 -07:00
Quinton Hoole
640c40da65 Merge pull request #9316 from gmarek/fix_density
Put performance data from Density test into /tmp/ folder
2015-06-05 12:49:49 -07:00
Quinton Hoole
8b01ecb53a Merge pull request #9024 from markturansky/recyc_controllers
PersistentVolumeRecycler controller
2015-06-05 11:39:08 -07:00
Quinton Hoole
21db71db1a Merge pull request #9073 from ArtfulCoder/srv_dns
SRV record support
2015-06-05 11:24:32 -07:00
Jordan Liggitt
4754a6aea1 Wait for default serviceaccount in e2e createTestingNS 2015-06-05 13:33:23 -04:00
Abhishek Shah
7d0adbcb1c SRV record support 2015-06-05 09:31:07 -07:00
markturansky
57d8b30b3e fixed checker pod issue 2015-06-05 12:19:23 -04:00
gmarek
9dee8206f4 Put performance data from Density test into /tmp/ folder 2015-06-05 14:37:20 +02:00
Quinton Hoole
7309e1f707 Merge pull request #9236 from mikedanese/etcd-fail-e2e
add e2e test for etcd failure and recovery
2015-06-04 22:10:31 -07:00
Mike Danese
c458ee9dcb add e2e test for etcd failure 2015-06-04 20:49:25 -07:00
markturansky
b9d7b27bd0 Added watch to e2e instead of sleep, used GenerateName for objs 2015-06-04 23:08:46 -04:00
Chao Xu
d3664957b1 replace v1beta3 with v1 in e2e tests 2015-06-04 17:42:00 -07:00
markturansky
deec5f26cd Recycler controller 2015-06-04 15:47:36 -04:00
Chao Xu
ef61b031f5 make v1 enabled by default 2015-06-04 11:37:44 -07:00
Quinton Hoole
a39a6013cb Merge pull request #8469 from satnam6502/heapster
Add explicit version to name of monitoring RCs
2015-06-04 10:42:54 -07:00
Brian Grant
e7788771d6 Merge pull request #9030 from brendandburns/kubectl
Add a custom timeout flag for stop/delete.
2015-06-03 21:14:50 -07:00
Max Forbes
a6c47a07de E2E test node upgrade (to same version) 2015-06-03 17:05:45 -07:00
Brian Grant
e3b80db02c Merge pull request #9148 from lavalamp/e2eTestFix
E2e test fix
2015-06-03 12:44:55 -07:00
Brian Grant
8c0b1c7db4 Merge pull request #8809 from rrati/performance-gathering-7572
Performance gathering 7572
2015-06-03 12:37:17 -07:00
Robert Rati
a248d0ccf9 Default RunRC to check every 10 seconds if an internval isn't provided. #7572 2015-06-03 15:00:28 -04:00
Robert Rati
4f9046332d Minor fixes and clarifications. #7572 2015-06-03 15:00:27 -04:00
Robert Rati
4e05d85413 Fixed issue reading empty response from a get in getDebugInfo. #7572 2015-06-03 15:00:27 -04:00
Robert Rati
13b8d947fc Revert "Revert "Added metrics/debug gathering methods to utils and used them in density ...""
This reverts commit 70500a64a7.
2015-06-03 15:00:27 -04:00
Filip Grzadkowski
2aac5e0f1a Disable load test from e2e-gce-scalability jenkins job 2015-06-03 20:31:47 +02:00
Brendan Burns
ab0c9b8e1e Add a custom timeout flag for stop/delete. Also try to be smarter about setting the timeout. 2015-06-03 11:21:30 -07:00
Brian Grant
895ad68422 Merge pull request #9145 from caesarxuchao/hack/test-integration
enable v1 in hack/test-integration.go
2015-06-03 11:19:41 -07:00
Daniel Smith
8d4d6276b7 fix elasticsearch test 2015-06-03 10:44:31 -07:00
Eric Tune
6e3ff01fa7 Merge pull request #9092 from lavalamp/no-ro-nonbreaking
Nonbreaking changes working towards removing the RO port
2015-06-03 09:25:46 -07:00
Piotr Szczesniak
a7ee5559b1 Merge pull request #9184 from fgrzadkowski/enhance_load_test
Load test: set threshold for latency metrics and add periodic lists
2015-06-03 17:11:26 +02:00
Filip Grzadkowski
b3deef2f11 Load test: set threshold for latency metrics and add periodic lists 2015-06-03 16:28:47 +02:00
Brian Grant
43cc6ed3ed Revert "Added e2e test case for network partition." 2015-06-03 07:04:41 -07:00
Piotr Szczesniak
f973eb8829 Merge pull request #9181 from fgrzadkowski/decrease_threshold
Decrease threshold for latency metrics in density tests
2015-06-03 15:46:56 +02:00
Filip Grzadkowski
54697db600 Decrease threshold for latency metrics in density tests 2015-06-03 14:31:39 +02:00
Piotr Szczesniak
f71baba64f Increased failCount param in RunRC function for e2e tests.
The previous value was 10 (equivalent of 50sec) current is 24 (2min).
Time in brackets mean: how long should I wait for the next pod of RC to be created.

While we are creating 3000 pods for scalability tests it tends to fail.
2015-06-03 13:50:51 +02:00
Piotr Szczesniak
5c7795bdd1 Creating RCs in batches not in parallel in Load e2e test 2015-06-03 13:13:55 +02:00
jayunit100
f3da07552a Fix bad namespace 2015-06-02 23:27:09 -04:00
jayunit100
bcc735af19 Revert "Merge pull request #9166 from GoogleCloudPlatform/revert-8504-ginkgo-names"
This reverts commit 479e5005f5, reversing
changes made to 5115f0e6bc.
2015-06-02 23:23:44 -04:00
Brian Grant
b3550bcacf Revert "Cleanup ginkgo declarative naming in E2Es" 2015-06-02 20:16:41 -07:00
Daniel Smith
68d0511d4e remove networking test that doesn't work for RO port 2015-06-02 18:47:06 -07:00
Daniel Smith
e341110b95 Fix DNS test to not use RO port 2015-06-02 18:45:26 -07:00
Daniel Smith
abb00f1cfc fix e2e service test to not reference ro service 2015-06-02 18:45:26 -07:00
Brian Grant
b15efbc2f5 Merge pull request #8504 from jayunit100/ginkgo-names
Cleanup ginkgo declarative naming in E2Es
2015-06-02 18:44:06 -07:00
jayunit100
e6583ef7d7 Cleanup ginkgo declarative naming in E2Es 2015-06-02 17:56:44 -04:00
Chao Xu
89c8949e78 add v1 to hack/test-integration.sh 2015-06-02 14:55:45 -07:00
Brian Grant
b5aa78bd44 Revert "Add a test for the service load balancer." 2015-06-02 14:53:58 -07:00
Filip Grzadkowski
98115facfd Revert "Gracefully delete pods from the Kubelet" 2015-06-02 23:40:05 +02:00
Brian Grant
b1a0fb0cb3 Merge pull request #8881 from brendandburns/services
Add a test for the service load balancer.
2015-06-02 13:08:02 -07:00
Brian Grant
464224f50d Merge pull request #8862 from jszczepkowski/e2e-net
Added e2e test case for network partition.
2015-06-02 13:07:46 -07:00
Brian Grant
b7ae48eb1e Merge pull request #8641 from smarterclayton/gracefully_delete_pods
Gracefully delete pods from the Kubelet
2015-06-02 10:36:27 -07:00
Brendan Burns
3d90d1cefb Add a test for the service load balancer. 2015-06-02 10:16:18 -07:00
Piotr Szczesniak
ac82f50afb Disabled load e2e test for scalability Jenkins job 2015-06-02 16:16:02 +02:00
Jerzy Szczepkowski
44f11ea662 Added e2e test case for network partition.
Added e2e test case which verifies if a node can return to cluster after longer network partition. Valid for gce. Finally fixes to #7051.
2015-06-02 13:09:21 +02:00
Filip Grzadkowski
d7f242b8b0 Merge pull request #8873 from piosz/load_generator
Re-enabled load e2e test for Jenkins scalability suite
2015-06-02 04:05:23 -07:00
Piotr Szczesniak
a2116f2bc1 Re-enabled load e2e test for Jenkins scalability suite
Also increased next pod startup waiting time from 100s to 200s
to eliminate flakiness by incresing failCount param.
2015-06-02 11:26:42 +02:00
Filip Grzadkowski
7580006771 Merge pull request #9059 from fgrzadkowski/watch_density
Use watch-based cache in density e2e tests.
2015-06-02 02:00:26 -07:00
Clayton Coleman
f1eaa8a27b Delete resources immediately from e2e tests 2015-06-01 19:24:02 -04:00
Clayton Coleman
984692d205 Verify in hack/test-cmd 2015-06-01 19:24:01 -04:00
Eric Tune
5651bdb237 Merge pull request #8746 from justinsb/e2e_restartpolicy_never
e2e: Specify RestartPolicy=Never in empty_dir test
2015-06-01 13:47:31 -07:00
Eric Tune
ccea8fafa5 Merge pull request #8434 from jayunit100/soak_ns_2
Soak ns 2
2015-06-01 13:44:38 -07:00
Filip Grzadkowski
7814297acc Use watch-based cache in density e2e tests. 2015-06-01 17:18:56 +02:00
Justin Santa Barbara
1e99426d5b Support for AWS ELB 2015-05-29 18:53:35 -04:00
Rohit Jnagal
233ce46b83 Merge pull request #8923 from caesarxuchao/TerminationToTerminated
Update ContainerState.Termination to ContainerState.Terminated
2015-05-29 14:51:09 -07:00
Rohit Jnagal
d34d00c288 Merge pull request #8898 from brendandburns/tunnel
Move SSH code into a common util package.  Add support for SSH tunnels.
2015-05-29 14:48:37 -07:00
Rohit Jnagal
38c1fe112f Merge pull request #9006 from GoogleCloudPlatform/revert-8927-revert-8822-fifo_rc
Revert "Revert "Wake up rcs when pods get DeletionFinalStateUnknown t…
2015-05-29 11:11:38 -07:00
Rohit Jnagal
697db8ccf1 Merge pull request #8784 from jszczepkowski/e2e-nodes
Added e2e test case which triggers kernel panic on a node.
2015-05-29 09:39:02 -07:00
Rohit Jnagal
2c4ceca1cf Merge pull request #8974 from lavalamp/networkTimeout
Use spew for more informative debug output
2015-05-29 09:33:54 -07:00
Rohit Jnagal
ff51f0b2e1 Merge pull request #8696 from derekwaynecarr/force_namespace_creation
Force explicit namespace provision, update e2e for failures
2015-05-29 09:28:47 -07:00
Prashanth B
6c209ec193 Revert "Revert "Wake up rcs when pods get DeletionFinalStateUnknown tombstones"" 2015-05-29 09:24:39 -07:00
Daniel Smith
02b1331512 Use spew for more informative debug output 2015-05-28 17:20:42 -07:00
Chao Xu
2f6e5e2e08 Update ContainerState.Termination to ContainerState.Terminated in pkg/api/types.go and pkg/api/v1/types.go 2015-05-28 17:18:24 -07:00
Tim Hockin
b72a8309b5 Merge pull request #8972 from lavalamp/networkTimeout
fix old networking test to use version 1.3
2015-05-28 16:53:40 -07:00
Daniel Smith
779e0d8529 fix old networking test to use version 1.3 2015-05-28 16:49:25 -07:00
Tim Hockin
4318ca5a8b Rename 'portal IP' to 'cluster IP' most everywhere
This covers obvious transforms, but not --portal_net, $PORTAL_NET and
similar.
2015-05-28 16:10:44 -07:00
Tim Hockin
b17e343afc Fix undetected merge conflict 2015-05-28 16:00:10 -07:00
Tim Hockin
081ab3abac Merge pull request #8853 from caesarxuchao/HostToNodeName
update PodSpec.Host to PodSpec.NodeName
2015-05-28 15:50:12 -07:00
Daniel Smith
c8f03fc354 fix timeout for networking test 2015-05-28 15:01:59 -07:00
Daniel Smith
0e49e1535f split into old/new networking test 2015-05-28 15:01:59 -07:00
Daniel Smith
d683548fd6 Revert "Revert "Revert "Revert "Fix networking test""""
This reverts commit 30ffe0325c.
2015-05-28 15:01:59 -07:00
Tim Hockin
eabc65149e Merge pull request #8896 from lavalamp/e2e-timeout
Give up waiting for failed pods + print status
2015-05-28 15:00:19 -07:00
Tim Hockin
1a45e4006e Merge pull request #8747 from brendandburns/e2e
Add a test for PreStop hooks.
2015-05-28 14:55:40 -07:00
Tim Hockin
8886557da6 Merge pull request #8926 from thockin/remove-debug
Remove debug print
2015-05-28 14:50:17 -07:00
Chao Xu
9c1153322e update PodSpec.Host to PodSpec.NodeName in /pkg/api/types.go and /pkg/api/v1beta3/types.go 2015-05-28 14:10:06 -07:00
Tim Hockin
e524d52248 Use $$() in pod commandlines to get $() 2015-05-28 10:53:22 -07:00
derekwaynecarr
3e8b1d5e01 Update all salt providers to force explicit namespace creation; update e2e 2015-05-28 13:45:49 -04:00
Tim Hockin
b69fad211e Revert "Wake up rcs when pods get DeletionFinalStateUnknown tombstones" 2015-05-28 10:23:55 -07:00
Tim Hockin
c6ca865e1a Remove debug print 2015-05-28 10:12:37 -07:00
Wojciech Tyczynski
6ffe46a9e0 Merge pull request #8822 from bprashanth/fifo_rc
Wake up rcs when pods get DeletionFinalStateUnknown tombstones
2015-05-28 10:50:28 +02:00
Brendan Burns
a51747f941 Move SSH code into a common util package. Add support for SSH tunnels. 2015-05-27 16:58:52 -07:00
Prashanth Balasubramanian
8fa66bd962 Delta fifo includes objects in DeleteFinalStateUnknow, rcs stop faster 2015-05-27 16:45:51 -07:00
Daniel Smith
fe58bf16e8 Give up waiting for failed pods + print status 2015-05-27 16:07:39 -07:00
Tim Hockin
0721377646 Merge pull request #8596 from andronat/fix_8319
Kubectl command renaming (run-container to run and resize to scale)
2015-05-27 15:37:54 -07:00
Quinton Hoole
30ffe0325c Revert "Revert "Revert "Fix networking test""" 2015-05-27 14:52:33 -07:00
Quinton Hoole
851f6b7542 Merge pull request #8852 from brendandburns/core
Add a 'core dump' to failed tests.
2015-05-27 14:14:13 -07:00
Tim Hockin
7480c8263a Merge pull request #8741 from justinsb/e2e_set_http_timeout
e2e: Set (short) timeout for http request polling
2015-05-27 12:43:18 -07:00
Tim Hockin
9d0a4d8791 Merge pull request #8829 from lavalamp/no-ro-nettest
Revert "Revert "Fix networking test""
2015-05-27 12:42:32 -07:00
Brendan Burns
199ed54599 Add a 'core dump' to failed tests. 2015-05-27 11:39:08 -07:00
Anastasis Andronidis
9e3a540940 rename resize to scale 2015-05-27 19:08:06 +02:00
Tim Hockin
244b10e8ba Merge pull request #8812 from jayunit100/kubectlparam
Parameterized kubectl once and for all :)
2015-05-27 09:35:23 -07:00
Jerzy Szczepkowski
039314cce1 Added e2e test cases which trigger different types of node failures.
Added e2e test cases which trigger different types of node failures and verify they are correctly re-assimilated. Valid for gce and gke. Related to #7051.
2015-05-27 11:52:36 +02:00
Brendan Burns
1e94eed475 Add a test for PreStop hooks. 2015-05-26 21:23:15 -07:00
Paul Morie
8b338860aa Make kubelet expand var refs in cmd, args, env 2015-05-27 00:13:57 -04:00
jayunit100
6e4160eeb0 Set option for KubectlPath (kubectl-path) for E2E tests. 2015-05-26 21:46:59 -04:00
Saad Ali
bed9f826d3 Merge pull request #7435 from jsafrane/devel/volume-tests
V2: Add e2e tests for NFS and Gluster
2015-05-26 17:49:41 -07:00
Saad Ali
abaa278b0e Merge pull request #8643 from vishh/headless
Adding support for generating A records for headless services.
2015-05-26 14:44:00 -07:00
Daniel Smith
ea4035d08c Revert "Revert "Fix networking test""
This reverts commit a2d24d3e07.
2015-05-26 13:11:06 -07:00
Filip Grzadkowski
39483ffa90 Merge pull request #8779 from wojtek-t/failing_rc_delete
Increase timeout for deleting RC in e2e tests.
2015-05-26 01:43:34 -07:00
Filip Grzadkowski
702a5e27e9 Merge pull request #8777 from fgrzadkowski/print_top_latency
Print top 5 latency metrics even if they are below threshold
2015-05-26 01:41:41 -07:00
Filip Grzadkowski
9a22286622 Reduce threshold for request latency in density tests to 5 sec 2015-05-25 15:05:34 +02:00
Filip Grzadkowski
892ce56cec Print top 5 latency metrics even if they are below threshold 2015-05-25 14:58:23 +02:00
Marek Grabowski
9797255a15 Merge pull request #8770 from wojtek-t/exclude_proxy_metrics
Ignore /proxy from performance metrics
2015-05-25 13:47:33 +02:00
Jan Safranek
20004e0c16 Add e2e tests for Gluster and NFS tests.
- add appropriate server containers into contrib/for-tests/volumes-tester
- the tests are off by default (they need kubelet --allow_privileged=True)
  - enable by 'go run hack/e2e.go ... --ginkgo.focus=Volume'
- add glusterfs tools to list of installed packages on each node
2015-05-25 12:02:41 +02:00
Wojciech Tyczynski
ff8c772fe0 Increase timeout for deleting RC in e2e tests. 2015-05-25 11:51:11 +02:00
Jerzy Szczepkowski
7d2fb16829 Extended wait for cluster size timeout.
Extended wait for cluster size timeout in resize nodes e2e test to fix #8715.
2015-05-25 11:03:26 +02:00
Wojciech Tyczynski
abc24fa65c Ignore /proxy from performance metrics 2015-05-25 09:21:26 +02:00
Justin Santa Barbara
784c4aef2f e2e: Specify RestartPolicy=Never in host_path test
Fixes #8745
2015-05-24 09:55:07 -04:00
Justin Santa Barbara
51b9c148a9 e2e: Specify RestartPolicy=Never in empty_dir test
Fixes #8745
2015-05-24 00:52:04 -04:00
Justin Santa Barbara
6564fedbdb Set (short) timeout for http request polling 2015-05-23 22:13:49 -04:00
Vishnu Kannan
c2fcdec503 Adding an e2e test for headless services. 2015-05-22 23:00:24 -07:00
Justin Santa Barbara
c68e4163fe e2e fix: set NodePort back to 0, when changing from NodePort -> ClusterIP 2015-05-22 22:20:29 -04:00
Dawn Chen
8d6d03b4a4 Merge pull request #8707 from justinsb/nodeport
WIP: ServiceType & NodePort work
2015-05-22 16:46:59 -07:00
Justin Santa Barbara
270701b88a e2e testing for NodePort services 2015-05-22 19:14:28 -04:00
Justin Santa Barbara
7346cc8042 Add ServiceType = NodePort; wire everything up 2015-05-22 19:14:28 -04:00
Justin Santa Barbara
973c2e4819 Add Type to ServiceSpec: ClusterIP or LoadBalancer 2015-05-22 19:14:21 -04:00
Dawn Chen
4cad3b568f Merge pull request #8644 from mbforbes/e2eLogBetter
Better logging for e2e start (debug failing pods)
2015-05-22 16:01:34 -07:00
Daniel Smith
05d2ae5642 add framework to service accounts test 2015-05-22 15:29:12 -07:00
Daniel Smith
86799cdd9d add framework to emptyDir test 2015-05-22 15:29:12 -07:00
Daniel Smith
6ae8c78527 secrets test uses framework 2015-05-22 15:29:12 -07:00
Daniel Smith
11087d13b4 dns test uses framework 2015-05-22 15:29:12 -07:00
Justin Santa Barbara
3884d5fc59 Add LoadBalancer status to ServiceStatus
This will replace publicIPs
2015-05-22 18:27:05 -04:00
Dawn Chen
4ca2595ed3 Merge pull request #8651 from lavalamp/e2e-timeout
Start e2e framework; print events
2015-05-22 15:14:23 -07:00
Filip Grzadkowski
70500a64a7 Revert "Added metrics/debug gathering methods to utils and used them in density ..." 2015-05-22 13:00:46 -07:00
Dawn Chen
7c80f3d985 Merge pull request #7573 from rrati/performance-gathering-7572
Added metrics/debug gathering methods to utils and used them in density ...
2015-05-22 10:17:15 -07:00
Maxwell Forbes
4a21bd535e Merge pull request #8677 from jayunit100/minStartupPods
Make minStartupPods feature backward compatible default value = 0.
2015-05-22 09:54:32 -07:00
jayunit100
7063da41da Make minStartupPods feature backward compatible default value = 0. 2015-05-22 10:05:03 -04:00
Daniel Smith
28b3224b72 Start e2e framework; print events 2015-05-21 18:50:55 -07:00
Jerzy Szczepkowski
ef965a60f2 Implementation of e2e test that resizes cluster (works on GCE). 2015-05-22 02:59:25 +02:00
Max Forbes
40ba1e3043 Better logging for e2e start (debug failing pods) 2015-05-21 16:48:30 -07:00
jayunit100
56a356d577 Remove global client variable and initialize it locally in tests which accidentally used it. 2015-05-21 18:57:13 -04:00
Dawn Chen
ff855dee1e Merge pull request #8603 from lavalamp/e2e-timeout
use ginkgo native timeout method
2015-05-21 09:58:48 -07:00
Dawn Chen
ed319ea1ad Merge pull request #8578 from vishh/dns_e2e
Adding "metadata" to the list of required DNS names to be resolved in DNS e2e
2015-05-21 09:43:21 -07:00
Dawn Chen
9a316dd409 Merge pull request #8501 from ArtfulCoder/kubelet_svc_subdomain
Support old and new style dns service names.
2015-05-21 09:22:03 -07:00
Dawn Chen
df6c670639 Merge pull request #8500 from rrati/e2e-host-option-fix-8499
The e2e tests will re-honor --host option. #8499
2015-05-21 09:17:44 -07:00
Daniel Smith
8fdf1cca54 use ginkgo native timeout method 2015-05-20 17:36:37 -07:00
Daniel Smith
ec1b3a7537 improve network test logging 2015-05-20 17:22:21 -07:00
Abhishek Shah
dff3a7daaa skydns changes 2015-05-20 17:04:30 -07:00
Vishnu Kannan
4f664036bf Adding "metadata" to the list of required DNS names to be resolved in DNS e2e. 2015-05-20 11:17:41 -07:00
Robert Rati
3191b26bc6 Only sleep 1.1*interval. #7572 2015-05-19 18:40:21 -04:00
Jeff Grafton
e968b6be81 Merge pull request #8442 from mbforbes/e2ePodsReady
Ensure pods both running and ready before starting e2e tests
2015-05-19 13:40:08 -07:00
Quinton Hoole
14665119b4 Revert "improve e2e retry logic with standard wait.Poll()" 2015-05-19 11:17:32 -07:00
Robert Rati
b7486b0ca2 The e2e tests will re-honor --host option. #8499 2015-05-19 14:13:11 -04:00
Max Forbes
1da46ca3d0 Ensure pods both running and ready before starting e2e tests 2015-05-19 10:53:02 -07:00
Maxwell Forbes
b963307496 Merge pull request #8473 from ixdy/native-ginkgo-runner
Use native Ginkgo test runner instead of cmd/e2e (attempt N+1)
2015-05-19 10:48:14 -07:00
Robert Rati
7361f751a6 Create a config struct for RunRC and allow polling interval to be
configurable.  #7572
2015-05-19 13:37:37 -04:00
Robert Rati
9e06132ed3 Minor cleanup. #7572 2015-05-19 13:22:20 -04:00
Quinton Hoole
063139996e Merge pull request #8399 from ZJU-SEL/improve_e2e_retry_logic
improve e2e retry logic with standard wait.Poll()
2015-05-19 09:48:18 -07: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
Brian Grant
2c81050e6f Merge pull request #8457 from davidopp/master
Fix stylistic isues with #5547. Closes #4910.
2015-05-19 07:43:21 -07:00
Robert Rati
9caee9ad16 Moved FifoQueue to separate file and minor cleanup. #7572 2015-05-19 10:25:02 -04:00
Robert Rati
b78576386f Use getMetrics in ReadLatencyMetrics. #7572 2015-05-19 10:23:17 -04:00
Robert Rati
ac282bd50a Cleaned up the output files. #7572 2015-05-19 10:23:17 -04:00
Robert Rati
ec5e7093b6 Created a fifo queue containing results from listing pods and checks
from from the queue to generate finer granularity #7572
2015-05-19 10:23:17 -04:00
Robert Rati
bd3306c845 Moved writePerfData to utils. #7572 2015-05-19 10:14:47 -04:00
Robert Rati
a89121cb70 Added metrics/debug gathering methods to utils and used them in density #7572 2015-05-19 10:14:47 -04:00
jayunit100
eb75f98ddc Reintroduce soak test_ns so that it passes continuous E2E's easily, implemented polling alternative to channels, Moved to new file 2015-05-19 09:42:14 -04:00
He Simei
09fc2a5013 improve retry logic with standard wait.Poll()
Signed-off-by: He Simei <hesimei@zju.edu.cn>
2015-05-19 21:31:27 +08:00
David Oppenheimer
44b1e1ca0c Fix stylistic isues with #5547. Closes #4910. 2015-05-18 23:32:06 -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
Satnam Singh
702bf625ce Add explicit version to name of monitoring RCs 2015-05-18 18:13:18 -07:00
Tim Hockin
fd22f48f5b rename StorageType StorageMedium 2015-05-18 17:21:30 -07:00
Tim Hockin
f66ca25d9f Rename AccessMode to PersistentVolumeAccessMode 2015-05-18 17:21:30 -07:00
Prashanth Balasubramanian
a6607afa80 Don't relist events in density 2015-05-18 16:55:43 -07:00
Daniel Smith
5e056f119d Merge pull request #6694 from bprashanth/bench
Add a simple master benchmark and a wrapper to run it.
2015-05-18 14:42:24 -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
jayunit100
378f302632 Revert "Merge pull request #8415 from GoogleCloudPlatform/revert-8325-ns_5152015"
This reverts commit fec9a524dd, reversing
changes made to 26b27b5e0f.
2015-05-18 14:23:13 -04:00
Victor Marmol
45874d5f76 Merge pull request #5547 from gmarek/client3
Add a resource specifying number of Pods that are allowed to run on Kubelet.
2015-05-18 11:11:43 -07:00
Quinton Hoole
636569fc8d Revert "E2E: Namespace soak test, confirms deletion of 100 NS happens within 150 seconds" 2015-05-18 09:04:10 -07:00
Victor Marmol
4ba22e713a Merge pull request #8296 from jlowdermilk/gen-analytics
Add ga-beacon analytics to gendocs scripts
2015-05-18 08:40:02 -07:00
Clayton Coleman
3b10d82864 Merge pull request #8391 from liggitt/etcd_token_lookup
Make serviceaccount/token lookup more flexible
2015-05-18 11:08:30 -04:00
Clayton Coleman
485a420326 Merge pull request #8257 from liggitt/multi_user_controller
Allow ServiceAccountsController to manage multiple named service accounts
2015-05-18 10:39:50 -04:00
Derek Carr
de45d626a7 Merge pull request #8325 from jayunit100/ns_5152015
E2E: Namespace soak test, confirms deletion of 100 NS happens within 150 seconds
2015-05-18 08:24:11 -04:00
Jordan Liggitt
d90e7409e4 Prevent auth recursion for service account tokens 2015-05-16 23:39:07 -04:00
Jordan Liggitt
7e9281fc39 Allow ServiceAccountsController to manage multiple named service accounts 2015-05-15 23:42:00 -04:00
Brendan Burns
7e96aec477 Fix some races/multi-thread access in the reboot test. 2015-05-15 19:46:00 -07:00
Jeff Lowdermilk
553f9f822b Add ga-beacon analytics to gendocs scripts
hack/run-gendocs.sh puts ga-beacon analytics link into all md files,
hack/verify-gendocs.sh verifies presence of link.
2015-05-15 18:56:38 -07:00
Brendan Burns
ab0844840a Merge pull request #8246 from rrati/red-flag-pod-termination
Correct logic for failing after % of containers fail. #7790
2015-05-16 02:46:07 +01:00
Prashanth Balasubramanian
4200033c0a Add a simple master benchmark and a wrapper to run it. 2015-05-15 17:30:17 -07:00
Max Forbes
b32c54625b Enable reboot test for GKE 2015-05-15 17:27:39 -07:00
Max Forbes
5d1d37f9ca Add a node reboot test. 2015-05-15 17:25:28 -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 Grafton
fa77928c30 e2e: don't try to clean up after rolling-update test 2015-05-15 11:23:06 -07:00
Quinton Hoole
a2d24d3e07 Revert "Fix networking test" 2015-05-15 11:04:23 -07:00
Vish Kannan
d2e291e8fc Merge pull request #8254 from jayunit100/e2e_hostPath
E2E hostPath test
2015-05-15 10:50:58 -07:00
jayunit100
4812232966 E2E: Namespace soak test, confirms deletion happens within 100 seconds 2015-05-15 13:35:53 -04:00
Filip Grzadkowski
6ec9821a69 Merge pull request #8317 from piosz/load_generator
Disabled e2e load test on Jenkins
2015-05-15 17:38:20 +02:00
Robert Rati
30c7dbc7bd Correct logic for failing after % of containers fail. #7790 2015-05-15 10:06:30 -04:00
Piotr Szczesniak
9786f09426 Disabled e2e load test on Jenkins 2015-05-15 15:27:57 +02:00
gmarek
d65f67a4d1 Fix kubectl e2e test 2015-05-15 15:02:53 +02:00
gmarek
27d660d0ac Add a resource specifying number of Pods that are allowed to run on Kubelet. 2015-05-15 10:57:46 +02:00
jayunit100
0a8577fced Test for hostPath which can eventually be refactored to also test emptyDir.
Add namespace support and remove requirement that host mount has to be type tmpfs
2015-05-14 23:09:21 -04:00
Robert Bailey
a91a7bfe77 Merge pull request #8265 from pmorie/e2e
Fix path construction bug in shell e2e
2015-05-14 19:37:15 -07:00
Paul Morie
3668f6ab5b Fix path construction bug in shell e2e 2015-05-14 19:37:24 -04:00
Daniel Smith
f820704003 Fix networking test 2015-05-14 14:20:36 -07:00
Victor Marmol
5dc415c1c2 Merge pull request #8230 from vishh/e2e_dns
Moving dns e2e tests in existing services test into a separate DNS e2e test
2015-05-14 11:40:39 -07: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
Vishnu Kannan
439e2f5fde Moving dns e2e tests in existing services test into a separate DNS e2e test. 2015-05-14 09:59:16 -07:00
marekbiskup
672819be16 multiport endpoint e2e test 2015-05-14 13:42:46 +02: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
Rohit Jnagal
881f11adbf Merge pull request #8175 from piosz/load_generator
Added more logging to load e2e test
2015-05-13 13:31:50 -07:00
markturansky
0191574f7e Bi-directional bind between pv.Spec.ClaimRef and pvc.Spec.VolumeName 2015-05-13 14:05:21 -04:00
Rohit Jnagal
fe24da8478 Merge pull request #8128 from brendandburns/e2e
Switch networking e2e to v1beta3.  Update the network-tester container.
2015-05-13 10:27:03 -07:00
Zach Loafman
eef53c5ce0 Merge pull request #8143 from quinton-hoole/2015-05-12-events-e2e-retry
Add retry logic to events e2e test.
2015-05-13 07:24:31 -07:00
Piotr Szczesniak
2cee828c91 Added more logging to load e2e test 2015-05-13 16:12:17 +02:00
Brendan Burns
46be5482d0 Switch to a newer version of the nettest container. 2015-05-12 17:19:52 -07:00
Quinton Hoole
0981179d63 Add retry logic to events e2e test. 2015-05-12 15:47:58 -07:00
Satnam Singh
7cff506c93 Make the Elasticsearch logging pods discover each other 2015-05-12 15:26:09 -07:00
Clayton Coleman
7d620c20b9 Merge pull request #8105 from thockin/dns-domain
Rename default DNS domain to cluster.local
2015-05-12 17:18:45 -04:00
Vish Kannan
a74522a738 Merge pull request #8011 from brendandburns/exec
Switch exec to look at exit code not output status.
2015-05-12 12:43:11 -07:00
Nikhil Jindal
85d9bebe78 Merge pull request #8111 from piosz/load_generator
Enabled load e2e test for gce-scalability
2015-05-12 10:31:01 -07:00
Nikhil Jindal
d75bd8bf2a Merge pull request #7101 from liggitt/service_account
ServiceAccounts
2015-05-12 10:23:41 -07:00
Piotr Szczesniak
f20fc5644c Enabled load e2e test for gce-scalability 2015-05-12 15:44:44 +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
Tim Hockin
e83e49b076 rename default DNS domain to cluster.local 2015-05-11 23:00:43 -07:00
Quinton Hoole
78ee2ed325 Revert "E2E: Soak test and Functional tests for K8Petstore " 2015-05-11 18:24:42 -07:00
Jeff Lowdermilk
ac87ed6516 Merge pull request #8064 from deads2k/death-to-auth-path
eliminate auth-path
2015-05-11 15:41:41 -07:00
Jordan Liggitt
92bd58ede6 ServiceAccount e2e/integration tests 2015-05-11 17:18:06 -04:00
Nikhil Jindal
2dbe659887 Merge pull request #7639 from jayunit100/e2e-k8bps
E2E: Soak test and Functional tests for K8Petstore
2015-05-11 10:16:40 -07: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
a98770e1ba Merge pull request #8051 from fgrzadkowski/big_disk
Increase disk size for kubernetes master.
2015-05-11 16:28:19 +02:00
Clayton Coleman
8755ea8ec9 Merge pull request #7704 from smarterclayton/parallel_allocator
Use etcd to allocate PortalIPs instead of in-mem
2015-05-11 09:56:10 -04:00
Filip Grzadkowski
26d14300e9 Increase disk size for kubernetes master.
Signed-off-by: Filip Grzadkowski <filipg@google.com>
2015-05-11 15:35:38 +02:00
Wojciech Tyczynski
9b6ef98469 Merge pull request #8035 from shawnps/patch-9
Fix Sprintf verb
2015-05-11 12:43:01 +02:00
Shawn Smith
5d5c660f4b Add missing Errorf formatting directives 2015-05-10 13:25:14 +09:00
Shawn Smith
5b0d4d72ba Fix Sprintf verb 2015-05-10 13:22:18 +09:00
Brendan Burns
c9324e6e38 Switch exec to look at exit code not output status. 2015-05-08 16:51:37 -07:00
jayunit100
13a9ae15f5 E2E: Functional + Soak test for k8petstore, revised with improved polling, exit code handling. 2015-05-08 20:53:22 +00:00
Clayton Coleman
5bcb96dae1 Separate out the master's control loops
These are "Bootstrap Controllers" as distinct from
the controllers in the controller-manager binary - they
are necessary for the cluster to start running.
2015-05-08 16:04:03 -04:00
Clayton Coleman
e200d5a317 Make PortalIP alloc HA
* Add an allocator which saves state in etcd
* Perform PortalIP allocation check on startup and periodically afterwards

Also expose methods in master for downstream components to handle IP allocation
/ master registration themselves.
2015-05-08 13:34:16 -04:00
Daniel Smith
6ab51f3bc0 Merge pull request #7668 from bprashanth/scheduling_minions
Scheduler ignores nodes that are in a bad state
2015-05-07 10:58:02 -07:00
Brendan Burns
5461231c1c Merge pull request #7567 from endocode/kbeecher/wip_etcd_migrate_keys
WIP: Add startup code to apiserver to migrate etcd keys
2015-05-07 10:05:41 -07:00
Vish Kannan
e25210d367 Merge pull request #7822 from thockin/dns
DNS: expose 53/TCP
2015-05-07 09:34:52 -07: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
Wojciech Tyczynski
5200aa1981 Merge pull request #7839 from jayunit100/density-verify-param
E2E: Parameterize Density failure
2015-05-07 10:16:31 +02:00
Tim Hockin
34743a665a Add e2e coverage for DNS on TCP 2015-05-07 00:40:48 -07:00
Prashanth Balasubramanian
4b0607cf0b Scheduler ignored nodes with unknown condition status 2015-05-06 18:32:52 -07:00
Maxwell Forbes
070de6c608 Merge pull request #7858 from quinton-hoole/2015-04-28-repro-flaky-e2e
Improve retry logic in services e2e test.
2015-05-06 15:37:40 -07:00
saadali
4569de7a46 Enable Google Cloud Monitoring and Google Cloud Logging instead of
Influxdb for Google Compute Engine deployments.
2015-05-06 15:23:40 -07:00
Quinton Hoole
f51f6317d2 Improve retry logic in services e2e test. 2015-05-06 14:16:59 -07:00
jayunit100
7d4249da57 E2E: Parameterize Density failure 2015-05-06 19:41:09 +00:00
deads2k
f5942e4271 make go-oracle happy 2015-05-05 13:27:59 -04:00
Karl Beecher
0473f652fd Add startup code to apiserver to migrate etcd keys
Refs: #3476
2015-05-05 12:28:14 +02:00
Filip Grzadkowski
551cec2a21 Verify request latency in e2e performance tests. 2015-05-05 11:50:52 +02:00
Brian Grant
df8521c468 Merge pull request #7592 from pmorie/dapi-example
Rename EnvVarSource.FieldPath -> FieldRef and add example
2015-05-04 17:02:17 -07:00
Victor Marmol
fe7cb95be6 Merge pull request #7746 from vishh/exec_fix
Fix kubelet's docker RunInContainer implementation
2015-05-04 16:49:57 -07:00
Vishnu Kannan
18b3d34b18 Adding an integration test to verify success case for exec liveness probes. 2015-05-04 16:19:36 -07:00
Paul Morie
e949a623ff Change EnvVarSource.FieldPath -> FieldRef and add example 2015-05-04 18:41:09 -04:00
Quinton Hoole
ec7bababb4 Merge pull request #7732 from mbforbes/logSsh
Log which SSH key is used in e2e SSH test
2015-05-04 14:50:36 -07: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
Clayton Coleman
c8e0f4d2ae Metrics tests can't run on Mac 2015-05-04 14:57:43 -04:00
Wojciech Tyczynski
18b7eda07c Log host for failed pod 2015-05-04 15:14:23 +02:00
Wojciech Tyczynski
edf8d757af Fix boilerplate 2015-05-04 08:21:51 +02:00
Wojciech Tyczynski
982cac3e78 Merge pull request #7646 from rrati/scale-suite-7645
Moved the Scale tests into a scale file. #7645
2015-05-04 07:53:51 +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
Robert Rati
80e9579ab5 Moved the Scale tests into a scale file. #7645 2015-05-01 15:54:41 -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
Jeff Grafton
d85494220b Remove --orderseed and --times flags from the e2e test.
Similar functionality for both is already provided by the Ginkgo runner
itself.
2015-04-29 16:59:15 -07: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
Fabio Yeon
45f85dbf06 Merge pull request #7404 from nikhiljindal/handleIndex
Updating handleIndex to return 404 for invalid server URL
2015-04-28 15:51:04 -07:00
Wojciech Tyczynski
3f165a742d Don't fail performance tests on single fail event 2015-04-28 13:59:24 +02:00
Wojciech Tyczynski
d4aa1864b1 Merge pull request #7375 from rrati/density-pod-status-7374
Added a method to verify no containers in a pod have failed.  The densit...
2015-04-28 10:51:27 +02:00
nikhiljindal
f864195a5b Returning 404 on invalid server URL 2015-04-27 16:15:52 -07:00
Daniel Smith
83093af8b0 Merge pull request #5707 from endocode/kbeecher/etcd_prefix
Adds ability to define a prefix for etcd paths
2015-04-27 13:37:43 -07:00
Tim Hockin
635c393a5a Merge pull request #6105 from markturansky/yoko_pv_mgr
PersistentVolumeClaimBinder
2015-04-27 13:35:44 -07:00
Paul Morie
7d30f09ebf Add downward API for environment vars 2015-04-27 14:13:11 -04: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
Zach Loafman
800739aadd Merge pull request #7361 from pmorie/secrets-e2e
Parity for namespace handling in secrets E2E
2015-04-27 09:56:18 -07:00
Wojciech Tyczynski
bb6a252c01 Merge pull request #7334 from jayunit100/density-namespaces
Unify the namespace pattern for density.go with the others
2015-04-27 18:45:33 +02:00
Paul Morie
db29d22cab Parity for namespace handling in secrets E2E 2015-04-27 12:33:19 -04:00
markturansky
a04420e548 Added pending phase for volumes. added defaults for PV/PVC. refactored to better phase transitioning in control loops 2015-04-27 12:05:12 -04:00
markturansky
37d7f3f4f1 Added integration test, fixed a validation issue 2015-04-27 12:05:12 -04:00
jayunit100
804ce233ba Unify the namespace pattern for density.go with the others 2015-04-27 12:03:37 -04:00
Paul Morie
5f25dd24d9 Make argument order for testContainerOutputInNamespace consistent 2015-04-27 10:04:19 -04:00
jayunit100
9b5e923d1d E2E: Update docker_containers test to use isolated namespaces using the proper idiom 2015-04-26 18:54:39 -04:00
jayunit100
79d26997a2 E2E: FIX util.go testContainerOutputInNamespace to properly check the namespace. 2015-04-26 18:54:10 -04:00
Quinton Hoole
73c81a259c Merge pull request #7297 from quinton-hoole/2015-04-20-e2e-test-pod-update-retry
Retry pod update on version conflict error in e2e test.
2015-04-24 12:16:00 -07:00
Quinton Hoole
7433d10104 Retry pod update on version conflict error in e2e test. 2015-04-24 11:49:23 -07:00
Brian Grant
60d7bad147 Merge pull request #7128 from nikhiljindal/fixbeta1tests
Removing more references to v1beta1 from pkg/
2015-04-24 11:07:53 -07: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
Karl Beecher
a7623ca6cc Adds ability to define a prefix for etcd paths
The API server can be supplied (via a command line flag) with a custom
prefix that is prepended to etcd resources paths.

Refs: #3476
2015-04-24 12:12:39 +02:00
nikhiljindal
dcc368c781 Removing more references to v1beta1 from pkg/ 2015-04-24 00:45:17 -07:00
David Oppenheimer
ee11832d71 Merge pull request #7263 from lavalamp/fix4
fix watch of single object
2015-04-23 17:09:59 -07:00
Daniel Smith
2fa3ae9f15 fix watch of single object 2015-04-23 16:02:22 -07:00
Brendan Burns
429534d6d5 Merge pull request #7226 from brendandburns/e2e
Add more detail to the failure notice so that we can actually see what is going on.
2015-04-23 14:43:27 -07:00
Robert Bailey
09c0f25c86 Merge pull request #7191 from pmorie/e2e-local
Make PD test skip correctly on local provider
2015-04-23 12:08:08 -07:00
Victor Marmol
d0553c085a Merge pull request #7192 from pmorie/e2e-local-external
Add appropriate skips for E2Es that use createExternalLoadBalancer
2015-04-23 11:59:46 -07:00
Brendan Burns
37af6563d8 Add more detail to the failure notice so that we can actually see what is going on. 2015-04-23 11:50:56 -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
Paul Morie
3662399e80 Make PD test skip correctly on local provider 2015-04-23 13:32:45 -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
Daniel Smith
2b241e7e11 Merge pull request #6638 from rrati/events-in-density-6637
Add checking of events after all pods started to verify no failures in
2015-04-22 14:30:20 -07:00
Paul Morie
08e3a5a969 Add appropriate skips for E2Es that use createExternalLoadBalancer 2015-04-22 17:02:59 -04:00
Zach Loafman
7e875a0f1c Merge pull request #7167 from pmorie/typo
Fix typo in secrets integration test
2015-04-22 09:17:11 -07:00
Zach Loafman
f1d9a88be6 Merge pull request #7168 from pmorie/typo2
Fix typo in networking e2e
2015-04-22 08:48:03 -07:00
Paul Morie
87ddd7c2e7 Fix typo in networking e2e 2015-04-22 10:57:26 -04:00
Paul Morie
d381db1778 Fix typo in secrets integration test 2015-04-22 10:54:54 -04:00
Brian Grant
15c2986a07 Merge pull request #7067 from ravigadde/master
Added field selector for listing pods
2015-04-22 07:12:21 -07:00
Alex Robinson
a9902fe932 Update the external load balancer test to use a different namespace in
each run, making stuck resources less painful.
2015-04-21 22:19:22 +00:00
Robert Rati
020ba6a6c7 Converted from continually listing events to using an Informer #6637 2015-04-21 13:57:16 -04:00
Robert Rati
23c5b7714e Bounded the loop waiting for all events to be logged and print a warning
if not all are logged 10 minutes after all pods are started #6637
2015-04-21 13:57:16 -04:00
Robert Rati
93d1040fcd Add checking of events after all pods started to verify no failures in
density test #6637
2015-04-21 13:57:15 -04: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
Ravi Gadde
bf8f258471 Added field selector for listing pods. 2015-04-21 06:33:28 -07:00
jayunit100
4b43a6a979 Implement pure UUID suffix Functionality into namespace, without implementing randomSuffix() (yet). 2015-04-21 09:27:39 -04:00
Masahiro Sano
f90dc8f413 use Watch for single object instead of WatchList 2015-04-21 08:00:52 +09:00
Quinton Hoole
23e806604d Merge pull request #7029 from roberthbailey/skipped-gce-gke-e2e-tests
Ensure that e2e tests run on gce|gke and are appropriately skipped for other cloud providers.
2015-04-20 15:39:19 -07:00
Daniel Smith
540cde0f91 Merge pull request #6901 from wojtek-t/unschedulability_test
Integration tests for unschedulable nodes.
2015-04-20 15:26:11 -07: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
Wojciech Tyczynski
329d41828f Integration tests for unschedulable nodes. 2015-04-20 12:53:40 +02:00
Alex Robinson
6213f61370 Merge pull request #6941 from a-robinson/metrics
Add an integration test that checks for the metrics we expect to be exported from the master
2015-04-17 14:40:06 -07:00
Alex Robinson
fe262c0d98 Add an integration test that checks for the metrics we expect to be exported
from the master.
2015-04-17 19:31:23 +00:00
Wojciech Tyczynski
fafcf79d5d Allow more retries in density test 2015-04-17 12:35:56 +02:00
Robert Bailey
6d8a25ff56 Merge pull request #6948 from a-robinson/timeout2
Use the standard podStartTimeout in services e2e test
2015-04-16 18:53:32 -07:00
Alex Robinson
6209249976 Use the standard podStartTimeout in services e2e test when waiting for a
pod to be reachable behind an external load balancer.

I observed occasional timeouts when testing locally, and upon investigation
of one particular instance, found that it was just because the pod wasn't up
and running yet. I've changed the test to wait as long as all other tests do.

Also fix an unrelated error message.
2015-04-17 00:45:47 +00:00
Jeff Grafton
aee816d41b Revert hack to handle SIGTERM in e2e tests. 2015-04-16 16:56:12 -07:00
Alex Robinson
391e079cf6 Merge pull request #6917 from thockin/dockerfile-images-are-dead
Stop using dockerfile/* images
2015-04-16 13:30:50 -07:00
Robert Bailey
0fc94155cf Merge pull request #6875 from timothysc/kube-e2e-guestbook
Disable guestbook test for non-gce|gke due to "createExternalLoadBalancer": true
2015-04-16 12:32:13 -07:00
Tim Hockin
c2bacd588d Stop using dockerfile/* images
As per
http://blog.docker.com/2015/03/updates-available-to-popular-repos-update-your-images/
docker has stopped answering dockerfile/redis and dockerfile/nginx.  Fix all
users in our tree.  Sadly this means a lot of published examples are now broken.
2015-04-16 12:20:43 -07:00
Quinton Hoole
57a52d40ec Merge pull request #6920 from a-robinson/e2e
Fix a broken fmt.Errorf in the services e2e test
2015-04-16 10:39:58 -07:00
Alex Robinson
663ca18e8d Fix a broken fmt.Errorf in the services e2e test. 2015-04-16 17:24:59 +00:00
Quinton Hoole
82222e2ab7 Revert "Move remaining tests in e2e/service.go to unique namespaces." 2015-04-16 04:08:50 -07:00
Wojciech Tyczynski
7eee9c5e95 Retry on error in density 2015-04-16 09:28:00 +02:00
Quinton Hoole
34a2c6542a Move remaining tests in e2e/service.go to unique namespaces.
This prevents multiple runs of the same test from trampling on each other,
both serially and in parallel.
2015-04-15 15:38:55 -07:00
Timothy St. Clair
a7fb93bb55 Disable guestbook test for non-gce|gke due to
"createExternalLoadBalancer": true
2015-04-15 16:14:48 -05:00
Quinton Hoole
7d9adad916 Merge pull request #6724 from nikhiljindal/beta1
Updating test/integration to use testapi.Version everywhere
2015-04-15 10:58:25 -07:00
Brian Grant
29e68ad392 Merge pull request #6790 from nikhiljindal/encoder
Removing references to v1beta1 from hack/ and test/
2015-04-15 10:25:33 -07:00
Quinton Hoole
0609b9e71d Merge pull request #6712 from quinton-hoole/2015-04-10-remove-hostip-check-from-rc-e2e
Remove check for host IP from e2e test for replication controller
2015-04-15 10:06:03 -07:00
Timothy St. Clair
0df7309db2 Disable shell test for non-gce|gke providers 2015-04-15 10:15:26 -05:00
Wojciech Tyczynski
79f776b92c Retry density 2015-04-15 11:22:50 +02:00
nikhiljindal
8874ef9c06 Updating test/integration to use testapi.Version everywhere 2015-04-15 00:00:17 -07:00
Quinton Hoole
cd6daae014 Merge pull request #6271 from a-robinson/asynclb
Manage load balancer creation and deletion asynchronously in a ServiceController
2015-04-14 17:50:07 -07:00
Quinton Hoole
4e7998379f Remove check for host IP from e2e test for replication controller
This check has been replaced by the more targets #6705

# *** ERROR: *** docs are out of sync between cli and markdown
# run hack/run-gendocs.sh > docs/kubectl.md to regenerate

#
# Your commit will be aborted unless you regenerate docs.
    COMMIT_BLOCKED_ON_GENDOCS

# *** ERROR: *** docs are out of sync between cli and markdown
# run hack/run-gendocs.sh > docs/kubectl.md to regenerate

#
# Your commit will be aborted unless you regenerate docs.
    COMMIT_BLOCKED_ON_GENDOCS

# *** ERROR: *** docs are out of sync between cli and markdown
# run hack/run-gendocs.sh > docs/kubectl.md to regenerate

#
# Your commit will be aborted unless you regenerate docs.
    COMMIT_BLOCKED_ON_GENDOCS
2015-04-14 17:42:28 -07:00
Quinton Hoole
8edcdc8c6c Mark HostIP e2e test pending due to #6558. 2015-04-14 16:58:08 -07:00
Daniel Smith
5f1a0bc880 Merge pull request #6705 from quinton-hoole/2015-04-03-flakey-rc-e2e
Add an e2e test that pods get a host IP
2015-04-14 15:20:46 -07:00
Alex Robinson
7b647c5dbc Fix the services namespace test to wait for the services' load balancers
to be created.
2015-04-14 18:56:43 +00:00
Alex Robinson
ccc300289f Implement a ServiceController that watches services and handles keeping
external load balancers up-to-date based on the service's specs, using
the new DeltaFIFO watch queue class. Remove the old registry REST
handler code for creating/updating/deleting load balancers.

Also clean up a bunch of the GCE cloudprovider code related to load balancers.
2015-04-14 18:56:24 +00:00
nikhiljindal
a2c29d48ec Removing references to v1beta1 from hack/ and test/ 2015-04-14 11:31:37 -07:00
Wojciech Tyczynski
8fb22a750b Explicitly define scalability test suite 2015-04-14 14:55:11 +02:00
Quinton Hoole
4a20101a8d Add an e2e test that pods get a host IP 2015-04-13 20:20:48 -07:00
Satnam Singh
fe02c1247f Fix breakage of serve_hostnames soak test 2015-04-13 15:02:23 -07:00
Tim Hockin
f318da8344 Merge pull request #6379 from pmorie/rootcontext
Skeletal security context to facilitate tmpfs mount
2015-04-13 12:01:11 -07:00
Quinton Hoole
b47814d9a7 Merge pull request #6775 from rjnagal/node
Add monitoring e2e back
2015-04-13 12:00:35 -07:00
Rohit Jnagal
a4f9ded003 Add monitoring e2e back.
The last bugfix in #6710 fixed the real problem.
2015-04-13 18:47:04 +00:00
Paul Morie
c98e89fca0 Set rootcontext of emptyDir tmpfs mounts correctly 2015-04-13 12:50:36 -04:00
Wojciech Tyczynski
a7115de096 Enable Density test 2015-04-13 08:44:52 +02:00
Justin Santa Barbara
933cf60af7 Style: volumeId -> volumeID 2015-04-10 13:25:44 -07:00
Justin Santa Barbara
9561366f7d Provide more output during a disk delete 2015-04-10 13:25:43 -07:00
Justin Santa Barbara
9711e771c5 Rename AWSPersistentDisk -> AWSElasticBlockStore, aws-pd -> aws-ebs
Per comments from @markturansky - thanks!
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
95b68ae0b0 Rename pdName -> volumeId for AWS persistent volumes 2015-04-10 13:25:43 -07:00
Justin Santa Barbara
89089900d7 Fix merge problems 2015-04-10 13:25:42 -07:00
Justin Santa Barbara
2812936d34 Simplify logic of pd.go 2015-04-10 13:25:42 -07:00
Justin Santa Barbara
6a4153fc0a Always create volumes in the active k8s zone 2015-04-10 13:25:42 -07:00
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
Brian Grant
b0b6418ca3 Merge pull request #6377 from nikhiljindal/kubevtl
Updating components to use v1beta3
2015-04-03 15:58:09 -07:00
nikhiljindal
f2b72931fc Updating components to use v1beta3 2015-04-03 15:19:14 -07:00
Sam Ghods
2c977db1b3 Implement Strategic Merge Patch in apiserver 2015-04-03 11:51:02 -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
Robert Bailey
fb4366b178 Merge pull request #6390 from satnam6502/serve_hostnames
Adjust defaults and reporting for serve_hostnames
2015-04-02 16:49:24 -07:00
Sam Ghods
ca18e86877 Make naming of kubectl subcommands consistent 2015-04-02 16:14:53 -07:00
Satnam Singh
1c2a903e78 Adjust defaults and reporting for serve_hostnames 2015-04-02 16:01:58 -07:00
Jeff Grafton
8c7d6806d4 Convert SIGTERM into SIGINT in e2e test runner. 2015-04-02 14:54:22 -07:00
Dawn Chen
6ac59c8969 Merge pull request #6257 from lavalamp/fix6
Add a test verifying that etcd watches work even when there's a bunch of unrelated changes
2015-04-02 14:00:20 -07:00
Daniel Smith
a3276577d8 Demonstration of etcd watch problem 2015-04-02 13:41:41 -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
25724f7e31 Merge pull request #6333 from satnam6502/serve_hostnames
Support GKE for serve_hostnames soak test
2015-04-02 11:58:29 -07:00
Satnam Singh
b21db4b214 Support GKE 2015-04-02 11:18:50 -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
Robert Bailey
356d0e4401 Merge pull request #6256 from satnam6502/serve_hostnames
Issue queries in parallel for serve_hostnames soak test
2015-04-01 16:48:03 -07:00
Satnam Singh
7049bb6b55 Issue queries in parallel 2015-04-01 16:29:34 -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
Brian Grant
af858c99e2 Merge pull request #6098 from nikhiljindal/enableInMaster
Enabling v1beta3 api version by default in master
2015-03-31 15:31:18 -07: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
Tim Hockin
eeff1b74fb Fixes from feedback and testing 2015-03-30 23:52:37 -07: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
nikhiljindal
478b7d5edf Repurposing enableV1beta3 to disableV1beta3 in master config to enable v1beta3 by default 2015-03-30 11:50:10 -07: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
Piotr Szczesniak
e22d18f4e0 Merge pull request #6035 from satnam6502/serve_hostnames
Change soak test to pull image from gcr.io
2015-03-27 10:04:28 +01:00
Satnam Singh
a9a881e6b1 Change soak test to pull image from gcr.io 2015-03-26 18:03:08 -07:00
Victor Marmol
622d47a8b9 Merge pull request #6025 from satnam6502/serve_hostnames
Increase serve_hostnames timeout for pods to enter running state
2015-03-26 16:46:53 -07:00
Satnam Singh
e48c79c72e Increase timeout for pods to enter running state 2015-03-26 16:32:39 -07:00
Zach Loafman
6b603ed6ea Merge pull request #6018 from satnam6502/serve_hostnames
Documentation for the serve_hostnames soak test
2015-03-26 16:14:58 -07:00
Satnam Singh
e6cddc1a27 Documentation for the serve_hostnames soak test 2015-03-26 15:48:50 -07: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
Satnam Singh
700c45d1d7 Add verbose flag, specify queries per node, increase pod start timeout 2015-03-26 11:40:54 -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
Quinton Hoole
c8f6761fe9 Merge pull request #5686 from erictune/security-roadmap
Added integration test of secrets.
2015-03-26 11:16:00 -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
Rohit Jnagal
49ff04765b Add validation for node creation. 2015-03-25 21:55:03 +00:00
Eric Tune
ce05702136 Added integration test of secrets.
Tests apiserver side functionality.

Also deleted dead code in auth_test.go.
2015-03-25 12:37:47 -07:00
Rohit Jnagal
35b2c5ce9d Merge pull request #5881 from satnam6502/serve_hostnames
Change defaults, retry on errors and report stats for serve_hostnames
2015-03-25 12:13:47 -07:00
Masahiro Sano
7c5481c11a return 200 instead 409 Conflict 2015-03-26 02:44:43 +09:00
Satnam Singh
32909a3368 Change defaults, retry on errors and report stats 2015-03-25 10:12:49 -07:00
Clayton Coleman
367284b63b Merge pull request #5767 from kazegusuri/endpoints_storage
port endpoints to generic etcd
2015-03-25 11:32:01 -04:00
Masahiro Sano
410e11c305 port endpoints to generic etcd 2015-03-25 22:15:19 +09: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
Robert Bailey
b46276e51b Merge pull request #5750 from satnam6502/soak
Soak test based on serve_hostname image
2015-03-23 13:25:29 -07:00
Piotr Szczesniak
654a8d40e6 Merge pull request #5772 from a-robinson/lb
Add an end-to-end test for external load balancers.
2015-03-23 21:09:43 +01:00
Alex Robinson
22825b1045 Add an end-to-end test for external load balancers. 2015-03-23 18:10:13 +00:00
Clayton Coleman
d19aac80ea Merge pull request #5533 from smarterclayton/burn_yaml_with_fire
Burn YAML with fire (kind of)
2015-03-23 13:45:52 -04:00
Satnam Singh
9716805613 Soak test based on serve_hostname image 2015-03-22 16:36:23 -07: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
Clayton Coleman
1b1866d836 Invalid JSON in examples and tests 2015-03-20 00:02:03 -04:00
Clayton Coleman
428d2263e5 Graceful deletion of resources
This commit adds support to core resources to enable deferred deletion
of resources.  Clients may optionally specify a time period after which
resources must be deleted via an object sent with their DELETE. That
object may define an optional grace period in seconds, or allow the
default "preferred" value for a resource to be used. Once the object
is marked as pending deletion, the deletionTimestamp field will be set
and an etcd TTL will be in place.

Clients should assume resources that have deletionTimestamp set will
be deleted at some point in the future.  Other changes will come later
to enable graceful deletion on a per resource basis.
2015-03-19 15:33:32 -04:00
Satnam Singh
4645d13e77 Reduce pod usage for network e2e test 2015-03-18 22:10:15 -07:00
Jeff Grafton
df710cdff5 Merge pull request #5613 from satnam6502/network
Make Network end to end test use a test image with a specific tag (and use a debugged image)
2015-03-18 16:21:30 -07:00
Brian Grant
11f9733599 Merge pull request #5587 from nikhiljindal/enable3
Updating integration tests to test both API versions - v1beta1 and 3
2015-03-18 16:14:20 -07:00
Satnam Singh
0feb7e2c79 Make networking e2e test use an explicitly tagged image 2015-03-18 15:54:20 -07:00
nikhiljindal
7e36bbab3c Updating integration tests to test both API versions - v1beta1 and 3 2015-03-18 15:24:11 -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
Derek Carr
1291401c2e Merge pull request #5516 from smarterclayton/add_ttl_to_helper
Add TTL support to etcd_helper in preparation for graceful delete
2015-03-16 17:14:35 -04: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
Clayton Coleman
bddef32193 Prepare EtcdHelper to extract more data from Node
In order to support graceful deletion, the resource object will
need access to the TTL value in etcd.  Also, in the future we
may want to get the creation index (distinct from modifiedindex)
and expose it to clients.  Change EtcdResourceVersioner to be
more type specific (objects vs lists) and provide a default
implementation that relies on the internal API convention.

Also, rename etcd_tools.go to etcd_helper.go and split a few
things up.
2015-03-16 15:33:50 -04: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
Timothy St. Clair
7eebf674d4 Update to option enable profiling on the master daemon processes.
--profiling=true , default is false
2015-03-13 10:45:01 -05: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
Daniel Smith
e1f64b2901 Merge pull request #5235 from jszczepkowski/pods-watch
Watch support in PodInterface.
2015-03-10 11:59:04 -07:00
Mike Danese
46ec580771 add PATCH to apiserver 2015-03-10 10:56:15 -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
Clayton Coleman
eea1e88cb0 Merge pull request #4921 from mikedanese/too-many-gets
Interactions with etcd should optionally take a value that is filled with the result
2015-03-04 14:18:12 -05: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
Mike Danese
e1ca63f569 SetObj and CreateObj optionally accept an object to fill with the result of the get 2015-03-04 10:38:42 -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
Eric Tune
4263f343ef Merge pull request #4990 from mikedanese/auth-test-less-logs
Only log on failing cases in auth integration test
2015-03-03 13:31:41 -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
Mike Danese
9ae18cc96e Only log on failing cases in auth integration test 2015-03-03 10:26:00 -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
Clayton Coleman
0a2d713803 Merge pull request #4263 from smarterclayton/simplify_apiserver
Remove layers of indirection between apiinstaller and resthandler
2015-02-12 10:03:41 -05: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
Clayton Coleman
26f08b7807 RESTStorage should not need to know about async behavior
Also make sure all POST operations return 201 by default.
Removes the remainder of the asych logic in RESTStorage and
leaves it up to the API server to expose that behavior.
2015-02-11 16:26:08 -05:00
Clayton Coleman
d167c11b59 Remove layers of indirection between apiinstaller and resthandler
Make the RESTHandler feel more go-restful, set the stage for adding
new types of subresource collections.
2015-02-11 16:26:06 -05: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
Brendan Burns
b08bd8671f Merge pull request #4157 from saad-ali/updateEventApi
Add "Update Event" to Kubernetes API
2015-02-05 14:50:48 -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
saadali
a41f520bf0 Add "Update Event" to Kubernetes API 2015-02-05 00:07:51 -08: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
deads2k
8a2fe9bd2b modify policy to correctly identify resource versus kind 2015-02-04 13:36:01 -05:00
Zach Loafman
190afa542c Reenable TestClusterDNS on GKE now that 0.9.2 is default 2015-02-04 09:34:40 -08:00
nikhiljindal
18609e1706 Moving /watch, /proxy and /redirect registration to go-restful 2015-02-03 15:47:48 -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
Alex Robinson
9992abdfcf Merge pull request #3997 from smarterclayton/make_master_index_optional
Make master index optional when master is used in other contexts
2015-02-02 12:45:18 -08:00
Clayton Coleman
5603714df8 Use name generation on pods via replication controllers
The generated name is '<controllerName>-%s', unless controllerName-
would be long enough to cause a validation error.
2015-02-02 14:44:53 -05:00
Satnam Singh
6d5c56b2a7 Merge pull request #3995 from filbranden/e2e_pod_update_remove_external_json
Convert load of api/examples/pod.json into native Go definition of the api.Pod
2015-02-02 11:37:19 -08:00
Alex Robinson
7868fe468e Merge pull request #3618 from saad-ali/fix2410
Make master service IP static (no longer randomly assigned)
2015-02-02 11:05:58 -08:00
derekwaynecarr
d3579f0de0 Fix integration test to return 404 where a resource is not even supported 2015-02-02 10:26:19 -05:00
Clayton Coleman
42175b433a Make master index optional when master is used in other contexts
OpenShift provides a default URL at the root that shows the UI. The
provided flag makes loading the index handler optional for now.
2015-01-30 22:19:55 -05:00
saadali
e83fd7b8e7 Make master service IP static (no longer randomly assigned) 2015-01-30 16:07:19 -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
Deyuan Deng
c793c4f0ab Sync node status from node controller to master. 2015-01-29 23:17:15 -05:00
Justin Santa Barbara
993071dd64 Add aws to some e2e tests 2015-01-29 20:35:35 -05:00
Tim Hockin
d01ea11a6e Merge pull request #3856 from smarterclayton/validation_logic_needs_cleanup
Validation of ObjectMeta is inconsistently applied
2015-01-29 14:12:44 -08: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
Brian Grant
fcb1cd30ff Merge pull request #3891 from nikhiljindal/Operation
Deleting OperationHandler for handling /operation endpoint on server
2015-01-28 17:01:37 -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
nikhiljindal
521728e920 Deleting OperationHandler for handling /operation endpoint on server 2015-01-28 13:13:10 -08:00
Clayton Coleman
a0356bca96 Unify validation logic for create and update paths
Ensure ObjectMeta is consistently validated on both create and update

Make PortalIP uncleareable
2015-01-28 13:10:37 -05:00
Clayton Coleman
5117189e03 Merge pull request #3707 from nikhiljindal/preOperations
Removing support for asynchronous server requests
2015-01-28 13:02:52 -05: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
nikhiljindal
de60600608 Making all operations synchronous 2015-01-27 18:47:56 -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
Clayton Coleman
455bc17616 Some actions now return 405 in integration auth_test.go 2015-01-12 12:56:01 -05:00
derekwaynecarr
a56087cdf8 Remove client from attributes, remove admission control interface, fix-up error codes 2015-01-07 14:42:31 -05:00
derekwaynecarr
1e2b995a79 Fix admission control in tests 2015-01-07 14:42:31 -05:00
Eric Tune
029a9b6400 Remove whoami handler.
This was a temporary thing.  Not aware of anyone using it.
2014-12-11 21:31:06 -08:00
Clayton Coleman
d0087dfe62 Integration tests don't initialize with a client
Result is a 500 error if the client object is used
2014-12-10 12:08:18 -05:00
Tim Hockin
ff8c5f9415 Add a Detail field to Validation Error 2014-11-24 17:28:42 -08:00
Brendan Burns
e1872b9bb3 Revert part of #2512, shot in the dark that it will fix integration tests 2014-11-20 21:56:06 -08:00
Tim Hockin
95a9098311 fix 'go vet' warnings 2014-11-21 09:45:28 +08:00
Jordan Liggitt
c895331277 Make master take authenticator.Request interface instead of tokenfile 2014-11-19 15:07:51 -05:00
markturansky
8af4ccb111 v1beta3 Pod refactor 2014-11-18 09:25:42 -05:00
Deyuan Deng
c20ceea170 Add more validation for updating node. 2014-11-17 13:42:31 -05:00
Deyuan Deng
cc310e0e71 Support node label update. 2014-11-17 13:42:31 -05:00
Daniel Smith
9430bb38b8 Merge pull request #2282 from bgrant0607/docgen
Automatic API generation via go-restful
2014-11-14 13:12:25 -08:00
Daniel Smith
de75e5a9bb Fix server-side namespace handling for events; add validation 2014-11-14 09:43:28 -08:00
Brian Grant
7583e1a643 Automatic API generation by adopting go-restful 2014-11-14 16:49:19 +00:00
Eric Tune
913cbd0fd1 Make deletes synchronous to avoid 202.
Also, get some POSTs I missed the last time.
2014-11-06 16:48:56 -08:00
Eric Tune
f739103de9 POST synchronously so following GET will succeed.
Should reduce flakiness of this test.
2014-11-05 21:40:27 -08:00
Eric Tune
6e81e8c896 Basic ACL file.
Added function to read basic ACL from a CSV file.
Added implementation of Authorize based on that file's policies.
Added docs on authentication and authorization.
Added example file and tested it.
2014-11-05 16:06:22 -08:00
Daniel Smith
c971763be2 Add anon. functions so that defers are executed where expected. 2014-11-05 14:42:37 -08:00
Daniel Smith
78d0e74b20 Clean up auth test slightly 2014-11-05 14:31:18 -08:00
Eric Tune
1668c6f107 Authorization based on namespace, kind, readonly.
Also, pass Authorizer into master.Config.
2014-11-03 17:45:15 -08:00
Eric Tune
3045035512 Get user from request and put in authz attribs.
Added integration tests for user-based auth.
2014-11-03 16:38:56 -08:00
Eric Tune
795bc7f976 Require a KubeletClient in master.New().
Without this, tests which create a master
will panic with a nil pointer when the periodic
podCache update runs.

Deleted unused FakePodInfoGetter.
Added FakeKubeletClient.
Passed to master.New.
Required a KubeletClient in master.New.
2014-11-03 16:09:41 -08:00
Dawn Chen
cccf98cd61 Fix TestAuthModeAlwaysAllow.
Fix #2137
2014-11-03 09:46:45 -08:00
Eric Tune
4b74be0f06 Improve integration test
Use some constants for tokens.
Refactor tokenfile creation to function.
Reorder some test cases to make lookups follow creates so they succeed.
Add expected status code to test cases (some are not quite what expected,
so filed bugs #2112, #2113, #2114)
Check expected status codes.
Close Body after each iterations so that we don't run out of file handles
  when I add even more test cases in the next PR.
Handle that it is unpredictable whether status 200 or 202 is returned.
2014-11-02 16:31:20 -08:00
Eric Tune
55c2d6bbbb Add basic Authorization.
Added basic interface for authorizer implementations.
Added default "authorize everything" and "authorize nothing
implementations.
Added authorization check immediately after authentication check.
Added an integration test of authorization at the HTTP level of
abstraction.
2014-10-31 12:04:33 -07:00
Deyuan Deng
acf9d23b32 Stop httptest server. 2014-10-30 21:37:08 -04:00
Eric Tune
9713b58caa Allocate mux in master.New()
Callsites no longer allocate a mux.
Master now exposes method to install handlers
which use the master's auth code.  Not used
but forks (openshift) are expected to use these
methods.  These methods will later be a point
for additional plug-in functionality.
Integration tests now use the master-provided
handler which has auth, rather than using the mux,
which didn't.  Fix TestWhoAmI now that /_whoami
sits behind auth.
2014-10-29 14:31:07 -07:00
Daniel Smith
070c6c0440 Fix missing portalNets in tests once and for all by adding a default. 2014-10-29 12:27:35 -07:00
Daniel Smith
35bd8d4a11 Add e2e and integration tests. 2014-10-29 11:29:57 -07:00
Eric Tune
f7ebc7d0d5 Added /_whoami and integration test for auth(z|n)
Added new endpoint /_whoami for debugging authentication.
Added integration test which checks that a user is authenticated
using token authentication.
Rearranged initialization of authenticator to support preceeding.
2014-10-28 09:33:45 -07:00
Eric Tune
40a5ca034d Integration test on master, not just apiserver.
Moved code from cmd/apiserver to pkg/master.

test/integration/client_test made to use a master object,
instead of an apiserver.Handle.

Subsequent PRs will move more handler-installation into
pkg/master, with the goal that every http.Handler of a
standalone apiserver process can also be tested
in a "testing"-style go test.

In particular, a subsequent PR will test
authorization.
2014-10-27 09:14:58 -07:00
derekwaynecarr
ce30b2657a Fix integration tests 2014-10-24 11:49:04 -04:00
Clayton Coleman
644eb70085 Refactor tests to split ObjectMeta from TypeMeta 2014-10-24 11:22:21 -04:00
Clayton Coleman
bb77a5d15f Rename ID -> Name 2014-10-22 15:00:26 -04:00
Daniel Smith
5d24820dd5 Merge pull request #1464 from hmrm/add-etcd-config
Allow etcd config file to be passed to apiserver, kubelet, and proxy
2014-10-08 16:29:46 -07:00
Clayton Coleman
82bcdd3b3b Make ResourceVersion a string internally instead of uint64
Allows us to define different watch versioning regimes in the future
as well as to encode information with the resource version.

This changes /watch/resources?resourceVersion=3 to start the watch at
4 instead of 3, which means clients can read a resource version and
then send it back to the server. Clients should no longer do math on
resource versions.
2014-10-07 19:00:26 -04:00
Haney Maxwell
4d87159eda Allow etcd config file to be passed to apiserver, kubelet, and proxy 2014-10-07 14:25:54 -07:00
Clayton Coleman
d3e51a0f24 Rename JSONBase -> TypeMeta in preparation for v1beta3
Will make subsequent refactor much easier
2014-10-07 11:12:16 -04:00
derekwaynecarr
0a290506c2 Fix integration tests 2014-10-02 12:56:42 -04:00
Clayton Coleman
ff2eca97d9 Refactor the client (again) to better support auth
* Allows consumers to provide their own transports for common cases.
* Supports KUBE_API_VERSION on test cases for controlling which
  api version they test against
* Provides a common flag registration method for CLIs that need
  to connect to an API server (to avoid duplicating flags)
* Ensures errors are properly returned by the server
* Add a Context field to client.Config
2014-10-01 15:23:37 -04:00
derekwaynecarr
de1f94cbc7 Fix integration test 2014-09-30 14:31:17 -04:00
Daniel Smith
37e505601e add self linking to apiserver 2014-09-26 15:08:02 -07:00
Daniel Smith
f211e46f20 handle watch errors everywhere 2014-09-22 17:37:12 -07:00
Clayton Coleman
5483333e29 Allow server and client to take api version as argument
* Defaults to v1beta1
* apiserver takes -storage_version which controls etcd storage version
  and the version of the client used to connect to other apiservers
* Changed signature of client.New to add version parameter
* All controller code and component code prefers the oldest (most common)
  server version
2014-09-18 23:27:28 -04:00
Clayton Coleman
61e3ce7ddc Make runtime less global for Codec
* Make Codec separate from Scheme
* Move EncodeOrDie off Scheme to take a Codec
* Make Copy work without a Codec
* Create a "latest" package that imports all versions and
  sets global defaults for "most recent encoding"
  * v1beta1 is the current "latest", v1beta2 exists
  * Kill DefaultCodec, replace it with "latest.Codec"
  * This updates the client and etcd to store the latest known version
* EmbeddedObject is per schema and per package now
* Move runtime.DefaultScheme to api.Scheme
* Split out WatchEvent since it's not an API object today, treat it
like a special object in api
* Kill DefaultResourceVersioner, instead place it on "latest" (as the
  package that understands all packages)
* Move objDiff to runtime.ObjectDiff
2014-09-16 16:26:43 -04:00
Clayton Coleman
154a91cd33 Rename runtime.DefaultScheme to latest.Codec for ease of readability 2014-09-16 16:19:35 -04:00
Clayton Coleman
fe614aeda2 Simple refactor for ease of readability
runtime.DefaultCodec -> latest.Codec
2014-09-16 16:12:35 -04:00
Daniel Smith
fc09f988b4 Make tests pass again 2014-09-07 22:26:42 -07:00
Daniel Smith
1c2b65788d Rename Codec and ResourceVersioner to add Default in front, to allow for types of those names 2014-09-07 22:19:24 -07:00
Daniel Smith
a63966e73c Combine pkg/apitools and pkg/api/common and call the result pkg/runtime 2014-09-02 11:15:44 -07:00
Daniel Smith
099c8fd36f Propagate rename; tests pass again. 2014-09-02 10:42:06 -07:00
Clayton Coleman
818f357128 Client should validate the incoming host value
Convert host:port and URLs passed to client.New() into the proper
values, and return an error if the value is invalid.  Change CLI
to return an error if -master is invalid.  Remove Client.rawRequest
which was not in use, and fix the involved tests. Add NewOrDie

Preserves the behavior of the client to not auth when a non-https
URL is passed (although in the future this should be corrected).
2014-08-28 13:47:36 -04:00
Clayton Coleman
47c7c83dad Add a client integration trip that creates a pod 2014-08-28 09:59:11 -04:00
Daniel Smith
6b69ed402b Change 'sendCreate' to 'sendAdd'; integration passes. 2014-08-25 15:56:55 -07:00
Clayton Coleman
b037989478 Add an integration test for etcd 2014-08-23 11:44:21 -04:00