Matt Liggett
2ee08591b0
Return a slightly more verbose error when "go get" fails.
2017-06-30 12:06:27 -07:00
zhangxiaoyu-zidif
6245f34a00
return nil when err is nil
2017-05-27 14:34:45 +08:00
Erick Fejta
2fffe48eb1
Convert hack/e2e.go to a test-infra/kubetest shim
2017-02-02 17:42:46 -08:00
Kubernetes Submit Queue
96cfe7b938
Merge pull request #36734 from YuPengZTE/devPunctuation
...
Automatic merge from submit-queue
error strings should not end with punctuation
**What this PR does / why we need it**:
Delete the end punctuation of error strings
**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
**Special notes for your reviewer**:
https://github.com/golang/go/wiki/CodeReviewComments#error-strings
**Release note**:
```release-note
```
Signed-off-by: yupeng <yu.peng36@zte.com.cn>
2017-02-01 02:55:48 -08:00
Zach Loafman
50c4b283ee
hack/e2e.go / kops: Add --kops-admin-access to restrict API access
2016-12-12 23:25:13 -08:00
Erick Fejta
bf7aa86932
Interrupt/Terminate all child processes on timeout. Auto-gen stepName
2016-12-12 12:01:52 -08:00
Jeff Grafton
0be9b81319
Include resource type headers in diff report
2016-12-05 16:20:30 -08:00
yupeng
31c46e1d2c
error strings should not end with punctuation
...
Signed-off-by: yupeng <yu.peng36@zte.com.cn>
2016-12-03 15:42:47 +08:00
Kubernetes Submit Queue
b14dda12f8
Merge pull request #37866 from fejta/log
...
Automatic merge from submit-queue
Add optional timeout logic to e2e.go
ref https://github.com/kubernetes/test-infra/issues/1250
Add a --timeout=5 flag.
If unset this does not change behavior.
If set this first sends an interrupt signal and then 15m later starts terminating child processes.
Will test out this change in another PR using the .use_head_e2e trick
2016-12-02 10:17:58 -08:00
Kubernetes Submit Queue
225cb1055f
Merge pull request #37019 from pipejakob/e2e-anywhere-pr
...
Automatic merge from submit-queue
Add kubernetes-anywhere as a new e2e deployment option.
This change adds support for using `kubernetes-anywhere` as a deployment option for hack/e2e.go. This work is toward the larger goal of being able to run e2e tests against `kubeadm` clusters, which `kubernetes-anywhere` supports.
**Release note**:
```release-note
Add kubernetes-anywhere as a new e2e deployment option
```
The configuration in `getConfig()` comes mostly from the defaults in `kubernetes-anywhere`. In the future, we can add more plumbing to override them via CLI flags.
CC @mikedanese
2016-12-02 08:45:00 -08:00
Erick Fejta
416f066648
Add optional timeout logic to e2e.go
2016-12-01 19:51:37 -08:00
Jacob Beacham
19fb97331d
Add kubernetes-anywhere as a new e2e deployment option.
...
The configuration in getConfig() comes mostly from the defaults in
kubernetes-anywhere.
2016-12-01 13:29:04 -08:00
Zach Loafman
dbb2a5775b
hack/e2e.go: Dump cluster logs in case of Up failure
2016-11-30 16:18:53 -08:00
Kubernetes Submit Queue
5f705d5724
Merge pull request #36619 from MrHohn/e2e-down-listresources
...
Automatic merge from submit-queue
ListResources before bring down the cluster
From #31827 .
We already list GCP resources [before bring up the cluster](https://storage.googleapis.com/kubernetes-jenkins/logs/kubernetes-e2e-gci-gce/2718/artifacts/gcp-resources-before.txt ), [after bring up the cluster](https://storage.googleapis.com/kubernetes-jenkins/logs/kubernetes-e2e-gci-gce/2718/artifacts/gcp-resources-cluster-up.txt ) and[ after bring down the cluster](https://storage.googleapis.com/kubernetes-jenkins/logs/kubernetes-e2e-gci-gce/2718/artifacts/gcp-resources-after.txt ). This PR also lists GCP resources before bring down the cluster. It will be helpful for checking whether everything is still as expected. Specifically we could know whether the firewall rules got clobbered or not.
@bowei @bprashanth
2016-11-30 08:03:27 -08:00
deads2k
8896293cba
add stderr to command errors
2016-11-29 08:07:46 -05:00
Zihong Zheng
6459488fc0
ListResources before bring down the cluster
2016-11-10 17:34:07 -08:00
Zach Loafman
02ec4c373b
e2e.go/kops: Make up timeout configurable, bump to 20m
...
Along the way: Fix ginkgo-e2e.sh. This change got dropped in the
original PR, but it was meant to allow a conformance-style
kubectl-auth test and still have a legit cloud provider.
2016-11-01 14:56:34 -07:00
Kubernetes Submit Queue
50f689f596
Merge pull request #34128 from spxtr/nodeinfo
...
Automatic merge from submit-queue
Do a kubectl get nodes after turning up the e2e cluster.
https://github.com/kubernetes/test-infra/issues/366
2016-10-13 05:37:02 -07:00
Wojciech Tyczynski
1cfbb446c8
Try to bring down cluster in case of failure
2016-10-12 10:54:04 +02:00
Jess Frazelle
da786a8dc5
hack/e2e.go: listen for Interrupt signal and attempt cleanup if using --down
...
Signed-off-by: Jess Frazelle <me@jessfraz.com>
Signed-off-by: Jess Frazelle <acidburn@google.com>
2016-10-07 13:06:54 -07:00
Joe Finney
d5e0b1cf84
Dump node info after cluster up.
2016-10-05 12:46:43 -07:00
Zach Loafman
ca58119af7
e2e.go / kops: Add --kops-kubernetes-version
...
This adds a flag to override the version we're deploying with kops for
e2es. (The kops experience is disconnected from the actual source tree
we're running tests from, which is similar to GKE.)
2016-10-04 14:01:31 -07:00
Zach Loafman
eb44add29c
e2e.go / kops: Add ssh-key option to override ssh key
...
By default, Jenkins stuffs the ssh key in
/workspace/.aws/kube_aws_rsa. Allow this to be overridden easily on
the command line.
2016-10-03 17:50:15 -07:00
Joe Finney
547e152932
Make KubemarkTest not have XML output.
2016-09-27 16:22:23 -07:00
Zach Loafman
d905478e0a
e2e.go: Add -deployment, add a kops deployment method
...
This splits off all the bash stuff into an interface, and plumbs
through a separate interface to bring up a cluster using "kops"
instead. Right now it assumes kops == AWS.
2016-09-27 14:45:19 -07:00
Joe Finney
52cfe25351
Un-xmlWrap the Test function.
2016-09-26 10:59:38 -07:00
Joe Finney
3503c4f71a
Make e2e.go give us JUnit results.
2016-09-22 18:40:53 -07:00
Ryan Hitchman
4acebfc243
Revert "e2e: only tear down existing cluster if it exists"
2016-09-12 13:53:35 -07:00
Jeff Grafton
af9a922d6e
e2e: only tear down existing cluster if it exists
2016-09-09 15:26:47 -07:00
Kubernetes Submit Queue
08b6eaff92
Merge pull request #30321 from fejta/check-resources
...
Automatic merge from submit-queue
Convert bool to error, helper func for cd to skew
Switch from various functions returning `False` when something bad happens to returning an `error`
Encapsulate logic to switch to the skew directory inside chdirSkew
Also add a TODO for using `hyphen-flags` instead of `underscore_flags`
2016-09-09 00:48:19 -07:00
Erick Fejta
fd15911910
Convert bool to error, helper func for cd to skew
2016-08-29 10:15:57 -07:00
Matt Liggett
d8a81155c8
Only run federated test if FEDERATION == "true"
2016-08-23 13:14:58 -07:00
Kubernetes Submit Queue
65233e4bf2
Merge pull request #30575 from soltysh/scheduledjobs_e2e
...
Automatic merge from submit-queue
Scheduledjobs e2e
@janetkuo resubmitted e2e for SJ, I've updated all scripts to consume `KUBE_RUNTIME_CONFIG` properly in 2nd commit, ptal
2016-08-19 23:42:32 -07:00
gmarek
5e421cc447
Fix resource leak check in case of run that cleans up after failed one
2016-08-16 17:14:30 +02:00
Maciej Szulik
fdf87d6015
Enable batch/v2alpha1 globally for e2e tests
2016-08-14 14:24:49 +02:00
Girish Kalele
f64c052858
Revert "Scheduledjob e2e"
2016-08-12 16:12:19 -07:00
Kubernetes Submit Queue
ac1f8bc665
Merge pull request #26027 from soltysh/scheduledjob_e2e
...
Automatic merge from submit-queue
Scheduledjob e2e
@erictune last element of the scheduledjob puzzle. I think we'll iterate on this once we have all the puzzles in place. This is one of those things that will be allowed to merge after code freeze.
```release-note
* Introducing ScheduledJobs as described in [the proposal](https://github.com/kubernetes/kubernetes/blob/master/docs/proposals/scheduledjob.md ) as part of `batch/v2alpha1` version (experimental feature).
```
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/.github/PULL_REQUEST_TEMPLATE.md?pixel )]()
2016-08-12 13:27:32 -07:00
Maciej Szulik
08fa3e8e3f
Enable batch/v2alpha1 globally for e2e tests
2016-08-11 13:06:39 +02:00
Zach Loafman
9c70b01b2a
hack/e2e.go: Make --dump run if --up fails, and if --down isn't specified
...
See https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-aws/629 for why this would be useful.
(And the requirement for --down is just unnecessary AFAICT.)
2016-08-10 15:09:57 -07:00
Erick Fejta
7011d8826e
Move kubemark, skew, upgrade, leak logic into hack/e2e.go
2016-08-09 14:04:19 -07:00
k8s-merge-robot
be5e98fafd
Merge pull request #28959 from asalkeld/e2e-isup
...
Automatic merge from submit-queue
e2e.go --isup should also check the version
Just move the setenv up to include --isup
fixes #18667
2016-07-22 01:59:18 -07:00
Matt Liggett
c342d8fc12
Only run federation tests if FEDERATION==true.
...
This is the same test we make everywhere else. Only here were we
checking against the empty string.
2016-07-15 16:31:27 -07:00
Angus Salkeld
5c3eea15eb
e2e.go --isup should also check the version
...
fixes #18667
2016-07-14 16:20:30 +02:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
Colin Hom
a092fd2dd4
Federation build and e2e test integration
...
Federation components are now buildable and e2e-testable via e2e.go.
2016-05-25 15:07:27 -07:00
Dan Lorenc
7e9cae85fe
Add a flag that lets e2e tests be run against single-node clusters.
2016-05-17 09:18:20 -07:00
Jeff Grafton
d70c516d4f
Remove log collection code in cluster/gce/util.sh.
...
Also update some docs to mention cluster/log-dump.sh.
2016-03-03 15:28:33 -08:00
Joe Finney
930291588c
Remove PrepareVersion from hack/e2e.go.
2016-02-24 13:08:22 -08:00
Joe Finney
2b756ca56d
Move E2E kube-up call into test-setup from e2e-internal.
2016-02-17 16:49:07 -08:00
Joe Finney
98981ac3ec
Remove unused functions from hack/e2e.go.
2016-02-17 11:23:33 -08:00