Commit Graph

831 Commits (0076c181c7ffa757401db6df256492b5ce6ec415)

Author SHA1 Message Date
Clayton Coleman 1e496696ca Merge pull request #5903 from smarterclayton/support_resources_by_type_and_name
Allow resource.Builder commands to take arguments by type/name
2015-03-26 14:23:03 -04:00
Clayton Coleman 68c46e7f52 `kubectl label` should support resource builder
Allow applying labels to all resources, by existing selector, and
soon allow multiple selection.
2015-03-26 14:01:05 -04:00
Nikhil Jindal 5d379a2cb8 Merge pull request #5974 from nikhiljindal/testBranch
Fixing broken hack/test-go.sh
2015-03-25 18:10:56 -07:00
nikhiljindal 6b69ebda5b Fixing broken hack/test-go.sh 2015-03-25 18:04:59 -07:00
Clayton Coleman 581d7cd789 Allow resource.Builder commands to take arguments by type/name
Will allow xarg behavior to fetch resources across multiple types.
Changes 'create', 'get', 'update', 'stop', and 'delete' to output
<resourceType>/<name>.
2015-03-25 20:39:22 -04:00
Jeff Grafton 46e8c08fe8 Update kube::log::{error,status} to include timestamp.
Additionally, make the build scripts call these rather than calling
'echo' directly.
2015-03-25 16:02:48 -07:00
Jeff Grafton 901a5dbe2b Merge pull request #5687 from nikhiljindal/client_test
Updating test-go.sh and test-integration.sh to be able to run the tests for multiple API versions
2015-03-25 14:07:47 -07:00
nikhiljindal 5e4ab8e045 Updating test-go.sh to be able to run tests twice - for v1beta1 and 3 2015-03-25 12:51:22 -07:00
Zach Loafman 529c886f0d Merge pull request #5925 from jlowdermilk/fix-watch-events
Fix e2e-watch-events.sh
2015-03-25 11:44:57 -07:00
Jeff Lowdermilk 7fcc69d00d Fix e2e-watch-events.sh 2015-03-25 09:16:06 -07:00
Filip Grzadkowski aa9e25f293 Wait for etcd shutdown in integration tests 2015-03-25 17:01:04 +01:00
Piotr Szczesniak d8d06fd8f7 Removed guestbook.sh e2e test
The test is rewritten in Go #5045
2015-03-24 18:35:03 +01:00
Jeff Lowdermilk 7f7a004373 Merge pull request #5792 from ddysher/more-describe
More node describe, and 'kubectl describe' tests for all resources
2015-03-23 15:28:03 -07:00
Deyuan Deng 1c135c0bd4 Test kubectl describe from test-cmd 2015-03-23 17:13:45 -04:00
Deyuan Deng 4939c1137c Add node describe labels, creationTimestamp 2015-03-23 17:13:45 -04:00
Fabio Yeon 5b77149461 Fix guestbook.sh to make it work on GKE. 2015-03-20 18:27:31 -07:00
Jeff Grafton d845d49dc6 Merge pull request #5437 from lhuard1A/libvirt-coreos_kubeconfig
Make libvirt-coreos generate a .kubeconfig file and have e2e tests use it
2015-03-19 10:18:03 -07:00
Lénaïc Huard fc6e6ed310 Explain when e2e --host parameter is used and when it is ignored 2015-03-19 15:13:35 +01:00
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
nikhiljindal 7e36bbab3c Updating integration tests to test both API versions - v1beta1 and 3 2015-03-18 15:24:11 -07:00
Abhishek Shah 9a901ed46d build kube-apiserver, kube-scheduler and kube-controller-manager statically. 2015-03-17 16:03:31 -07:00
Brendan Burns 60b2b5d5b4 Merge pull request #5447 from jayunit100/k8petstore
K8petstore
2015-03-17 07:28:30 -07:00
Jeff Lowdermilk 404b20e6b8 Add dependencies for k8petstore to Godeps
Cleanup k8petstore to use Godeps dependencies, add to hack/build-go.sh
Remove trailing spaces, README
2015-03-17 07:06:01 -04:00
Lénaïc Huard efe345f8b6 Make libvirt-coreos generate a .kubeconfig file and have e2e tests use it 2015-03-17 11:10:18 +01:00
Victor Marmol d7a7d4da08 Revert #5479, don't force no cgo.
We allow cgo when available since some of our server components (mainly
Kubelet) rely on it. The current driving factor for the static binaries
was building Docker images from scratch. We will instead use images
built from small busybox bases.

Fixes #5517
2015-03-16 16:03:46 -07:00
Tim Hockin dab2d1a14b Merge pull request #5420 from vmarmol/cross
Make "kubernetes" a server binary.
2015-03-16 14:29:51 -07:00
Max Forbes 1c4e47fe22 Wait until all startup pods are 'Running' before running e2e tests. 2015-03-16 12:03:57 -07:00
Jeff Lowdermilk 9df2ea4aef Merge pull request #5479 from ArtfulCoder/static_linking
Build statically linked binaries for kubernetes.
2015-03-16 10:24:35 -07:00
Abhishek Shah 4b24aa2d7f Build statically linked binaryies. With the change to go 1.4, we probably were generating dynamically linked binaries accidentally. 2015-03-13 23:33:10 -07:00
Masahiro Sano addeed6ad0 fix e2e test on vagrant provider 2015-03-14 03:42:09 +09:00
gmarek c3ff36931b fix ginko-e2e.sh 2015-03-13 10:00:28 +01:00
Victor Marmol adbc8e2f9c Make "kubernetes" a server binary.
It includes many of the server components which we only expect to be
able to build in the server target architectures, but it is included in
the client build targets.
2015-03-12 17:37:56 -07:00
Eric Tune 9dab6017ff Merge pull request #5111 from erictune/conformance_test
First cut at a "conformance test".
2015-03-12 15:12:58 -07:00
Eric Tune 12c71585f7 Merge pull request #5276 from ddysher/remove-etcd-servers
Remove etcd_servers from test-cmd
2015-03-12 14:55:32 -07:00
Eric Tune 72945955ae First cut at a "conformance test".
A conformance test is a test you run against a cluster that is already
set up.  We would use it to test a hosted kubernetes service to make
sure that it meets a bar for quality.  Also, a getting-started-guide
author, who has not implemented a complete set of cluster/...
scripts (that is, the getting-started-guide has some non-automated steps)
can use this to see which e2e tests pass on a cluster.

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

I ran this against a GCE cluster and 22 tests passed.
2015-03-12 14:04:02 -07:00
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
Piotr Szczesniak b1e2b2f4b4 Improved guestbook.sh test to become actual test
After change test waits until pods come up and frotend starts serving content,
then adds entry to guestbook and verify if operation succeed

This fixes #3693
2015-03-12 11:39:26 +01:00
Satnam Singh a3fd0a9fd5 Merge pull request #5284 from piosz/guestbook_bug
Rewrite guestbook example to use kube-dns instead of host:port
2015-03-11 23:14:18 -07:00
Vishnu Kannan cbb3c96f31 Removing old shell based monitoring test. 2015-03-12 02:39:15 +00:00
Prashanth Balasubramanian 1ae44c3a78 Delete target pools and forwarding rules in guestbook.sh, with -q 2015-03-11 14:51:50 -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
Deyuan Deng 48bcfc1e27 Remove etcd_servers from test-cmd 2015-03-11 14:38:20 -04:00
Zach Loafman e6517e48eb Merge pull request #4321 from justinsb/e2e_simple
Create AWS provider branch for Jenkins build script, which doesn't assume artifacts are uploaded to GCS
2015-03-11 10:10:43 -07:00
Piotr Szczesniak 4679a37b38 Rewrite guestbook example to use kube-dns instead of host:port
This fixes #5091
2015-03-11 09:51:47 +01: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
Brian Grant a4d79bfb2c Merge pull request #5139 from ddysher/node-more-describe
Add more information to node describe
2015-03-10 11:26:51 -07:00
Brian Grant d230c72e83 Merge pull request #5249 from erictune/fix-locally
Remove ignored flag.
2015-03-10 09:20:15 -07:00
Eric Tune 4d3211c60b Remove ignored flag.
When --apiservers is set, --etcd_servers is ignored.
Remove it.
2015-03-10 08:45:05 -07:00
Jeff Lowdermilk a280e0da2d Revert "Standalone kubeconfig for gce kube-up" 2015-03-09 17:45:06 -07:00
Satnam Singh 89bc7bbea9 Merge pull request #5154 from jlowdermilk/kube-up
Standalone kubeconfig for gce kube-up
2015-03-09 16:22:51 -07:00
Jeff Lowdermilk 4173d369aa Generate standalone kubeconfig on kube-up, clear on kube-down.
Also tweaked the ginkgo tests to pull auth directly from a kubeconfig file
instead of the legacy kubernetes_auth file.
2015-03-09 16:02:00 -07:00
Deyuan Deng 58776da6a4 Add more information to node describe 2015-03-09 18:56:59 -04:00
Brendan Burns 9821c7f678 Delete any created load balancers in guestbook.sh 2015-03-09 13:38:45 -07:00
Clayton Coleman 42ff28c1a2 Merge pull request #5150 from vishh/issue_3628_1
Add json description to v1beta3 API.
2015-03-09 14:38:23 -04:00
Piotr Szczesniak 7c234d22ee Merge pull request #5177 from roberthbailey/guestbook-teardown
Always stop the guestbook example regardless of how the tests finishes.
2015-03-09 19:22:15 +01:00
Robert Bailey 451727aa19 Always stop the guestbook example regardless of how the tests finishes. This
should more reliably clean up the external load balancer.
2015-03-09 11:46:50 +01:00
Brendan Burns 2b7ae7fcd4 Fix coverage testing to work on OS X, where xargs is different. 2015-03-07 11:01:41 +01:00
Vishnu Kannan 17446061b0 Turn on "description:" verification for v1beta3 API. 2015-03-06 23:53:35 +00:00
Brendan Burns ee351b3f9c Merge pull request #5110 from justinsb/aws_ginkgo_auth_config_path
auth_config path for aws for ginkgo
2015-03-06 15:29:53 +01:00
Justin Santa Barbara 4066826b10 auth_config path for aws for ginkgo 2015-03-05 15:19:25 -08:00
Salvatore Dario Minonne 75f2efb500 moving ParseSelector to Parse for labels only. 2015-03-05 22:39:36 +01:00
Justin Santa Barbara e2c09f4470 Modify e2e to use local artifacts if present (to avoid GCS requirement) 2015-03-05 13:03:35 -08:00
roberthbailey adc1492c2e Revert "Improved guestbook.sh test to become actual test" 2015-03-04 21:00:46 -08:00
Jeff Lowdermilk 84ab8cc113 Merge pull request #4588 from piosz/guestbook_test
Improved guestbook.sh test to become actual test
2015-03-04 10:40:37 -08:00
markturansky a6a6947618 Added -E to sudo command 2015-03-04 10:14:46 -05:00
CJ Cullen 7bb7ba6577 Remove pd.sh now that we have pd.go 2015-03-03 15:14:15 -08:00
Filipe Brandenburger fbfbc7e086 Merge pull request #4686 from ixdy/parallelize-unit-tests
Parallelize execution of unit tests in hack/test-go.sh.
2015-03-03 10:05:25 -08:00
Filip Grzadkowski 6ad2b86181 Fix hack/test-cmd.sh so that it passes on a local machine 2015-03-03 17:23:55 +01:00
Lénaïc Huard d64f0f1183 Make libvirt-CoreOS cluster able to run e2e tests 2015-03-02 23:11:48 +01:00
Jeff Grafton fbd11a1a23 Renable code coverage collection in unit tests, including on Travis.
When code coverage is not being collected, just issue a single 'go test'
command, as is already done. Go will internally parallize execution.

When code coverage is being collected, it is necessary to issue separate
'go test' commands for each package, since Go does not support
collecting coverage across packages. Using xargs -P will parallelize
these invocations, however, speeding up test execution.
The number of simultaneous processes to use can be specified with
KUBE_COVERPROCS.

Update Travis config to pass along the number of CPUs to use for running
tests.
2015-03-02 13:04:13 -08:00
Piotr Szczesniak cc707ab114 Improved guestbook.sh test to become actual test
After change test waits until pods come up, then adds
entry to guestbook and verify if operation succeed

This fixes #3693
2015-03-02 21:19:39 +01:00
Robert Bailey 3ae85812bd Use the kubectl binary rather than the wrapper shell script in the
kubectl e2e test.
2015-03-01 21:45:04 -08:00
roberthbailey 3a21d295ec Merge pull request #4848 from jlowdermilk/cleanup
Remove update.sh now that e2e/kubectl.go is stable
2015-02-27 10:36:08 -08:00
Tim Hockin 7fe7de45e7 Merge pull request #4873 from justinsb/add_skip_push_gcs_2
Add SKIP_PUSH_GCS env so we can run without a push to GCS
2015-02-26 15:41:39 -08:00
Brendan Burns 0d23875c99 Merge pull request #4497 from swagiaal/health-check-hostname-mismatch
WIP: Catch kubelet-master hostname mismatch during health check
2015-02-26 14:48:21 -08:00
Justin Santa Barbara 27c3031506 Add SKIP_PUSH_GCS env so we can run without a push to GCS 2015-02-26 14:02:16 -08:00
Mike Danese c9fcf45fd9 fix bad cmd-test for patch. 2015-02-26 11:21:03 -08:00
Jeff Lowdermilk 31b990a415 Remove update.sh now that e2e/kubectl.go is stable 2015-02-26 09:51:39 -08:00
Sami Wagiaalla 9150cb9d95 Catch kubelet-master hostname mismatch during health check
During the kubelet's /healthz responce check to see if the
hostname used by the master matches the hostname the kubelet
knows itself by. If not fail the health check.

Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-02-26 10:22:03 -05:00
Zach Loafman 57fe439adf Merge pull request #4773 from lhuard1A/test-cmd
Assert pre and post conditions of all commands in test-cmd.sh
2015-02-26 07:00:29 -08:00
Zach Loafman f12f50e996 Merge pull request #4826 from a-robinson/certs
Rip out the certs.sh test since the certs.go test has been stable
2015-02-25 14:24:08 -08:00
Alex Robinson ba12f9e229 Rip out the certs.sh test since the certs.go test has been stable. 2015-02-25 13:26:19 -08:00
Zach Loafman 84a2a9766a Revert "Remove host ports from the update demo and update tests" 2015-02-25 09:56:03 -08:00
Zach Loafman 2089324555 Revert "Use a different port for the kubectl proxy in the shell and go tests." 2015-02-25 09:54:54 -08:00
Robert Bailey e7d67e4449 Use a different port for the kubectl proxy in the shell and go tests. 2015-02-25 09:32:41 -08:00
Lénaïc Huard c23046dc0a Assert pre and post conditions of all commands in test-cmd.sh
`hack/test-cmd.sh` contains a list of `kubectl` commands to test.
However, the effect of the execution of those commands was not systematically
checked. As a consequence, it was possible to break a command without breaking
those tests.

This commit surrounds every single `kubectl` command with assertions on
pre and post condition.
2015-02-25 18:26:30 +01:00
Robert Bailey dd87c247a5 Remove host ports from the update demo and update tests 2015-02-24 15:34:18 -08:00
rsokolowski 635281ebe3 Update guestbook example to use replication controller. 2015-02-24 20:21:13 +01:00
Masahiro Sano 29aae75329 fix missing command in test-cmd.sh 2015-02-24 23:20:45 +09:00
Jeff Grafton 0f2e9dbac8 Revert "Use goveralls to report coverage results from Travis."
Revert "Produce a combined coverage report when running Go unit tests."

These caused unit tests to run very slowly, causing problems with
Travis.
2015-02-23 14:35:48 -08:00
Zach Loafman c0067656fb Revert "Add SKIP_PUSH_GCS env so we can run without a push to GCS" 2015-02-23 11:15:54 -08:00
Rohit Jnagal 28dd73dd8c Merge pull request #4667 from endocode/kbeecher/multi-resource
Adds support for multiple resources to kubectl
2015-02-23 10:29:32 -08:00
Zach Loafman 5269e06aa1 Merge pull request #4315 from justinsb/add_skip_push_gcs
Add SKIP_PUSH_GCS env so we can run without a push to GCS
2015-02-23 10:08:38 -08:00
Salvatore Dario Minonne 163ae10d78 adding minimal test for label command to hack/test-cmd.sh 2015-02-22 17:44:39 +01: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
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
Brian Grant 194f6571b8 Merge pull request #4545 from yujuhong/fixdochook
Fix hack/verify-description.sh to actually surface the error
2015-02-20 15:07:19 -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 b389b360f8 Port update.sh to ginkgo test 2015-02-20 13:17:15 -08:00
Daniel Smith 17feadf977 Merge pull request #4240 from thockin/hyperkube
Hyperkube cleanup
2015-02-20 11:12:32 -08:00
Daniel Smith a5fdac2f3f Merge pull request #4649 from sdminonne/bug_fix
Adding resize command to hack/test.cmd.sh
2015-02-20 10:47:32 -08:00
Tim Hockin 0810e1fa99 build hyperkube 2015-02-20 08:49:11 -08:00
Eric Paris 9965604d4b check gofmt with golang 1.4 2015-02-20 10:31:06 -05:00
Karl Beecher ecbb91cc08 Adds support for multiple resources to kubectl
You can specify multiple resources by name when using the delete, get
and stop commands.
2015-02-20 16:18:57 +01:00
Salvatore Dario Minonne b60dadae46 Adding resize command to hack/test.cmd.sh 2015-02-20 05:56:16 +01:00
Zach Loafman 7febce6321 Revert "Migrate the certs.sh e2e test to ginkgo" 2015-02-19 18:41:30 -08:00
Zach Loafman 2b5641deb8 Merge pull request #4574 from ixdy/travis-coveralls
Produce a combined coverage report when running Go unit tests, and use goveralls to report coverage results from Travis to Coveralls.io.
2015-02-19 18:04:52 -08:00
Jeff Grafton 26addee75b Produce a combined coverage report when running Go unit tests.
The Go coverage tool does not currently support recording a coverage
data profile across packages, so we must manually combine these coverage
profiles and use it to produce an HTML report when KUBE_COVER is
nonempty. The exact value of KUBE_COVER is now ignored; KUBE_COVERMODE
can be used to set the coverage mode from the default of "atomic".

Additionally, if KUBE_GOVERALLS_BIN is set, hack/test-go.sh will attempt
to report coverage results to Coveralls.io. This is intended to be used
with the Travis build.
2015-02-19 17:49:36 -08:00
Zach Loafman 597dedf762 Merge pull request #4551 from a-robinson/e2e
Migrate the certs.sh e2e test to ginkgo
2015-02-19 17:34:04 -08:00
Brendan Burns d9d5837510 Merge branch 'kubectl-man' of https://github.com/eparis/kubernetes into eparis-kubectl-man
Conflicts:
	docs/kubectl.md

    COMMIT_BLOCKED_ON_GENDOCS
2015-02-19 11:53:38 -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
Brendan Burns 6e2b733d4b Fix update.sh if DOCKER_HUB_USER isn't defined. 2015-02-18 19:38:26 -08:00
Robert Bailey e0cc7b4138 Remove the numbered shell scripts from the live update example and the
update.sh e2e test. They were needlessly obfuscating the actual kubectl
commands being run.
2015-02-18 17:02:44 -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
Yu-Ju Hong 69318a118c Fix hack/verify-description.sh to actually surface the error 2015-02-18 12:56:46 -08:00
Jeff Grafton 502b95f045 Jenkins e2e tests: ignore test exit status.
Since Jenkins has hopefully been set up properly to read test failures
from junit*.xml files, only exit with a nonzero status when there are
infrastructure failures. If there are only test failures, the nonzero
exit status will be ignored.

Also, disable Ginkgo's colors to make the Jenkin console logs more
readable.
2015-02-18 11:32:41 -08:00
Jeff Grafton ef801875ab Add --test_args flag to hack/e2e.go.
Add a flag to allow passing options to the Ginkgo test runner, for
example to pass --ginkgo.focus to run only particular specs.
2015-02-17 17:40:32 -08:00
Alex Robinson 3043ae9144 Merge pull request #4492 from jlowdermilk/e2e
Cleanup resources after services/guestbook e2e tests.
2015-02-17 12:04:46 -08:00
CJ Cullen 47622092fd Merge pull request #4164 from tkulczynski/mig
Use Managed Instance Group for managing Nodes in GCE
2015-02-17 12:01:48 -08:00
Tomek Kulczynski bcadad2e2e Use Managed Instance Group instead of manually creating Nodes in GCE 2015-02-17 20:33:31 +01:00
Jeff Lowdermilk 8ad671b01e Cleanup resources after shell tests exit 2015-02-17 11:27:54 -08:00
Brian Grant 866135e52c Merge pull request #4436 from EricMountain-1A/noargs-kubectl-create-test-fix
Fix "kubectl create with no args" test to verify exit code
2015-02-17 10:31:00 -08:00
Brian Grant f3ec56bba6 Merge pull request #4437 from filbranden/hack_e2e_simplify_cmd_exec
Simplify usage of os/exec
2015-02-17 09:59:05 -08:00
Brian Grant e1b07efd36 Merge pull request #4450 from mikedanese/update-fix
fix error where we can't use kubectl update patch
2015-02-17 09:58:18 -08:00
Brian Grant 876d651737 Merge pull request #4395 from smarterclayton/split_naming
Fix cross-namespace LIST and WATCH
2015-02-17 09:40:09 -08:00
Clayton Coleman 0e07e61a53 Merge pull request #4381 from sdminonne/bug_fix
kubectl delete resource : remove all resources
2015-02-17 12:25:56 -05:00
Clayton Coleman 9175082a1c Split naming behavior out into objects that are derived from the request
Fix bug with cross namespace queries not being possible.  Ensure selflink
is set on lists correctly.
2015-02-16 00:23:38 -05:00
Mike Danese 9f9153256d fix error where we can't use patch and add cmd-test for patch and file
update
2015-02-15 10:43:35 -08:00
Filipe Brandenburger 70d37800b7 Simplify usage of os/exec
For now, keep the finishRunning() wrapper but use a straight cmd.Run()
call instead of the convoluted goroutine trying to catch signals.

It turns out that Unix process group handling is enough to interrupt
pending processes when stopping the run with something like a Ctrl+C
which should be enough.

Tested:
- Full e2e run with hack/e2e-test.sh, two tests failed but looks like
  they've been failing before this change.
- Started a hack/e2e.go -v -build and interrupted it with Ctrl+C,
  confirmed that build-release.sh was killed in the process.
2015-02-13 14:53:42 -08:00
Eric Mountain b639f6ece4 Fix "kubectl create with no args" test to verify exit code instead of evaluating (empty) stdout of the command. 2015-02-13 23:18:24 +01:00
Jeff Lowdermilk aa32f1b2ce Retry #4337: Make gce kubeconfig context include project 2015-02-13 13:31:50 -08:00
Salvatore Dario Minonne fda17c1b7a kubectl delete resource : remove all resources 2015-02-13 18:25:41 +01:00
Jeff Lowdermilk 61cc821506 Make local clusters work painlessly with kubeconfig 2015-02-12 16:30:41 -08:00
Brendan Burns 8b66b3f1da Merge pull request #4400 from erictune/no_port_conflict
Make cleanup of local cluster more robust.
2015-02-12 16:16:54 -08:00
Eric Paris a6beb2e7df Autogenerate md documentation for kubectl
This does away with the giant dump from cobra for kubectl and instead
generates md files which contain similar information, but one per verb.
This might work well as part of the cobra project, instead of doing it
in kube, but this gets us nice, linked, documentation right now.  If
people like it, I will try to get something similar into cobra.
2015-02-12 19:08:57 -05:00
Eric Paris 8e64be1c66 Add godeps for man page autogeneration 2015-02-12 18:38:25 -05:00
Eric Tune e82b97d237 Make cleanup of local cluster more robust.
Try to cleanup if there is a failure in script at any point.
Handle undefined vars in cleanup.
Wait longer for apiserver.
Exit if apiserver doesn't come up.
2015-02-12 14:29:55 -08:00
Jerzy Szczepkowski f94da1e6aa Initial implementation of kube-dump.sh - script which dumps state of Kubernetes cluster for debugging. Tested on GCE only. This is initial attempt to fix #3500. 2015-02-12 21:48:34 +01:00
Filipe Brandenburger f9a4471eca Merge pull request #4356 from filbranden/hack_e2e_clustersize_output
Simplify ValidateClusterSize() to use cmd.Output() directly
2015-02-11 16:55:30 -08:00
roberthbailey 2ed888592b Merge pull request #4351 from rajatchopra/master
democratize restart-apiserver method across clouds
2015-02-11 15:23:06 -08:00
Filipe Brandenburger 43543faaa7 Simplify ValidateClusterSize() to use cmd.Output() directly
This is a first step towards getting rid of finishRunningWithOutputs and
using the native os/exec methods directly where possible.
2015-02-11 15:02:24 -08:00
Rajat Chopra 56462c020a democratize restart-apiserver method across clouds 2015-02-11 13:44:43 -08:00
Zach Loafman a08e04dd68 Unpatch Jenkins now that #4177 is fixed
And actually, make it more better: Go ahead and tear down the cluster
even when tests fail, but (hopefully) relay the test exit status
correctly. This fails if there's a double error (if -down *also*
fails, we'll fail due to errexit), but either way is a build failure,
and this means that the teardown of a test failure build isn't getting
charged to the next run.
2015-02-11 13:42:14 -08:00
Filipe Brandenburger 55e8357c0f Merge pull request #4339 from zmerlynn/issue_4177
Fix hack/e2e.go exit status for -test
2015-02-11 13:21:37 -08:00
Zach Loafman f08f7e6972 Clean up output handling in hack/e2e.go
Dovetail stdout/stderr and remove escaping for TAP.
2015-02-11 13:12:48 -08:00
Zach Loafman ab38a78d70 Test() was mis-tracked. Change the variable name / handling here, and
also just make it unset so that if it's ever uninitialized it's
obvious.

Fixes #4177
2015-02-11 13:11:03 -08:00
Filipe Brandenburger 50a399fa30 Merge pull request #4341 from zmerlynn/i4340
Fix e2e-internal scripts for cluster-size and watch-events
2015-02-11 13:00:27 -08:00
Justin Santa Barbara cf470f7da4 Fixes to get AWS tests to run
They don't pass (yet), but they at least run!
2015-02-11 15:58:33 -05:00
Zach Loafman 9257b58e68 Fix e2e-internal scripts for cluster-size and watch-events
Fixes #4340
2015-02-11 12:46:31 -08:00
Brian Grant 20f7cbb87b Merge pull request #4291 from jlowdermilk/delete-kubecfg
Remove kubecfg, cleanup a few stray references.
2015-02-11 11:18:59 -08:00
roberthbailey e14ebcbea8 Merge pull request #4317 from justinsb/retry_logic_on_update
Fix polling in e2e-suite/update.sh: exit if we time out
2015-02-11 11:09:04 -08:00
Justin Santa Barbara 934bf51fe9 Fix polling in e2e-suite/update.sh: exit if we time out
Also reduce the number of iterations to 20
2015-02-11 13:56:27 -05:00
roberthbailey ed8237119f Merge pull request #4316 from justinsb/optional_args
Default value for ${@}, otherwise nounset causes failure
2015-02-11 10:41:10 -08:00
roberthbailey d68107be5e Merge pull request #4314 from justinsb/e2e_fixes
Remove stray r
2015-02-11 10:29:20 -08:00
Justin Santa Barbara 8cbd97d8bd Default value for ${@}, otherwise nounset causes failure 2015-02-11 12:39:06 -05:00
Justin Santa Barbara 7f142b0ee0 Add SKIP_PUSH_GCS env so we can run without a push to GCS 2015-02-11 12:36:40 -05:00
Justin Santa Barbara 4cf0e4c37f Remove stray r 2015-02-11 12:34:19 -05:00
Jeff Lowdermilk 197059b65d Remove kubecfg, cleanup a few stray references. 2015-02-10 16:43:12 -08:00
CJ Cullen a840c20939 Merge pull request #4158 from HackToday/master
Check curl before use it
2015-02-10 16:24:53 -08:00
Zach Loafman 2f231e0a2a Merge pull request #4268 from rajatchopra/master
Fix vagrant networking round 2
2015-02-10 07:39:48 -08:00
Rajat Chopra 1d12cad456 Fix vagrant networking. Include the master as part of overlay. And remove STP for efficiency.
fix e2e services for vagrant
Kubelet should wait on SDN to finish
Do not require docker on master for default clouds
2015-02-09 14:37:27 -08:00
Zach Loafman 6b8c332cd3 Revert "Fix vagrant networking" 2015-02-09 13:40:11 -08:00
Clayton Coleman d6069aa13a Merge pull request #4204 from rajatchopra/master
Fix vagrant networking
2015-02-09 14:52:13 -05:00
Clayton Coleman 4369e31b9d Integration tests should use 127.0.0.1 consistently 2015-02-09 14:30:31 -05:00
Brendan Burns e7a69504b4 Now that we automatically format GCE PD, remove formatting from the e2e test.
Also remove docs that note that it is necessary.
2015-02-06 20:30:58 -08:00
Rajat Chopra a9d8713db4 fix e2e services for vagrant 2015-02-06 18:34:27 -08:00
Filipe Brandenburger 162d7a00b3 Fix hack/e2e.go --ctl output
Export the KUBE_CONFIG_FILE environment variable pointing to the test
output when calling cluster/kubectl.sh directly.

Tested by running:
$ go run ./hack/e2e.go -v -ctl='version --match-server-version=false'
2015-02-06 14:36:35 -08:00
Filipe Brandenburger e63ccfff6c Reintroduce "Turn the hack/e2e.go commands into standalone scripts."
This reverts commit 2765660101,
which reverted a commit 0c7dce77dd, so
we're reintroducing the same code from that commit here.
2015-02-06 14:35:43 -08:00
Zach Loafman 2765660101 Revert "Turn the hack/e2e.go commands into standalone scripts." 2015-02-06 14:13:00 -08:00
Zach Loafman fc06acdd2b Merge pull request #4198 from filbranden/e2e_standalone_scripts
Turn the hack/e2e.go commands into standalone scripts.
2015-02-06 12:24:48 -08:00
Filipe Brandenburger 0c7dce77dd Turn the hack/e2e.go commands into standalone scripts.
This gets rid of bashWrap() and of running bash -s passing it a script
on stdin. Also get rid of most of the runBash*() helpers.

In particular, `go run hack/e2e.go -build` will now work when it needs
to ask whether it is OK to download a large docker image, it used to
fail since stdin was not available for the bash script using the `read`
command.

Tested by running a full `hack/e2e-test.sh` run including the build
stage without the docker image loaded, which used to fail before this
change.
2015-02-06 11:18:14 -08: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
Rajat Chopra b61ea1bbf1 Fix vagrant networking. Include the master as part of overlay. And remove STP for efficiency. 2015-02-05 17:41:27 -08:00
Kennan 903ed06774 Merge remote-tracking branch 'upstream/master' 2015-02-06 08:16:28 +08:00
Kennan 492e03697f Merge branch 'master' of https://github.com/HackToday/kubernetes 2015-02-06 08:10:49 +08:00
Kennan eaab84a414 Check curl before use it
This check can help user figure out what's the issue during
local cluster setup
2015-02-06 08:02:50 +08:00
rsokolowski df26b43a9d Fix hack/e2e-test.sh broken due to removed flag from hack/e2e.go 2015-02-05 23:56:43 +01:00
Brian Grant c1ca07338f Merge pull request #4149 from nikhiljindal/autoSwaggerSpec
Adding static swagger spec and a script to update it
2015-02-05 12:13:33 -08:00
nikhiljindal fe27529d7e Adding static swagger spec and a script to update it 2015-02-05 12:00:28 -08:00
Zach Loafman 49a1984e98 Breakfix for #4177, not a real solution 2015-02-05 11:24:45 -08:00
Zach Loafman c15595fdf7 Revert jenkins/e2e.sh back to 606b517a, minus -tap 2015-02-05 10:25:59 -08:00
Brendan Burns 8b25b43039 Merge pull request #4117 from wojtek-t/validate_docker_version
Check Docker version in Kubelet /healthz handler
2015-02-05 10:06:33 -08:00
Zach Loafman dad85ef4f1 Add more logging 2015-02-05 10:01:45 -08:00
Zach Loafman 0b456e40bf Fix jenkins/hack/e2e.sh, log errors better 2015-02-05 09:16:11 -08:00
Zach Loafman f21a25e7fc Add hack/ginkgo-e2e.sh to kubernetes-test.tgz 2015-02-05 08:06:50 -08:00
Zach Loafman bace7593d0 Enable ginkgo.v (console output is missing spec without it) 2015-02-05 07:24:05 -08: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
Kennan 222c714cf6 Check curl before use it
This check can help user figure out what's the issue during
local cluster setup
2015-02-05 16:31:07 +08:00
Filipe Brandenburger 7bb62cbfb3 Make e2e shell tests work standalone
Simply incorporate some of the boilerplate from hack/e2e.go into the
scripts in hack/e2e-suite.

Use environment variables with default values to allow overrides in
kubectl command line and to use a versioned package root.

Tested:
- Ran `go run hack/e2e.go -test` on a test cluster.
- Ran the test cases individually.
- Ran hack/e2e-suite/goe2e.sh -t Pods to confirm it takes arguments.
- Also fixed cluster/test-network.sh (which should be more and more irrelevant.)
2015-02-05 00:22:16 -08:00
Wojciech Tyczynski 524cdba101 Fix hack/test-cmd.sh test. 2015-02-05 01:58:26 +01:00
Clayton Coleman 449f9d915e Make hack/local-up-cluster.sh work again for etcd 2 2015-02-04 17:45:53 -05:00
Brendan Burns b3014e4360 Fix goe2e.sh (I hope) 2015-02-03 23:04:58 -08:00
Zach Loafman acbadc8ade Merge pull request #3991 from zmerlynn/hermetic_jenkins_build
Clean out dead docker containers and docker images every Jenkins build
2015-02-03 14:56:59 -08:00
Brendan Burns aa5a724f8d Merge pull request #4067 from jlowdermilk/verify-gendocs
Point to hack/run-gendocs.sh in verify-gendocs.sh error message.
2015-02-03 12:20:01 -08:00
Jeff Lowdermilk c6c46753fd Point to hack/run-gendocs.sh in verify-gendocs.sh error message. 2015-02-03 11:53:30 -08:00
Jeff Lowdermilk 890615d93e Replace kubecfg with kubectl in e2e tests 2015-02-03 11:43:55 -08: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
Filipe Brandenburger 5b6eee294e Merge pull request #3993 from satnam6502/services
Fix services.sh to swap out broken kubecfg calls
2015-01-30 15:48:16 -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
Satnam Singh b7aa81ebc6 Fix services.sh to swap out broken kubectl calls 2015-01-30 15:22:39 -08:00
Zach Loafman 67c382b5f0 Clean out dead docker containers and docker images every Jenkins build
This will increase build times on Jenkins, but should make the build
times consistent and make them pull from sources every time versus
leftover artifacts. Also upping timeout. (Try to address recent
some aborted builds.)
2015-01-30 13:53:27 -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 c29d89a534 Merge pull request #3357 from proppy/fix-podex
contrib/podex: fix ordering and manifest generation
2015-01-30 12:02:15 -08:00
Brendan Burns a20ca78fb3 Update etcd to version 2.0.0 2015-01-29 17:53:53 -08: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
Clayton Coleman 053c2b2100 Fix grafana and heapster RC names 2015-01-29 16:26:39 -05:00
Tim Hockin 7603f88960 Merge pull request #3903 from brendandburns/e2e2
Add a simple script for running go e2e tests against existing clusters.
2015-01-29 11:51:36 -08:00
Brendan Burns 0ad036e0eb Put watch in a loop so that we grab all event logs, even if the watch hangs up. 2015-01-29 09:56:20 -08:00
Brendan Burns ca6de16df7 Merge pull request #3915 from brendandburns/fixer
Fix update.sh
2015-01-28 20:02:58 -08:00
Brendan Burns 9f5ca3f6ac Fix update.sh 2015-01-28 20:00:47 -08:00
roberthbailey 9bfdfa0522 Merge pull request #3902 from satnam6502/killshell
Remove basic.sh and private.sh shell e2e tests
2015-01-28 16:51:22 -08:00
Brendan Burns ca6576d060 Add a simple script for running go e2e tests against existing clusters.
Also add an even simpler script for testing the network setup.
2015-01-28 16:39:21 -08:00
Zach Loafman 668d8539b8 Merge pull request #3855 from filbranden/ginkgo1
Initial adoption of Ginkgo in Kubernetes e2e tests
2015-01-28 16:32:11 -08:00
Filipe Brandenburger 606b517a07 Enable Go e2e report_dir in Jenkins
Use the E2E_REPORT_DIR global environment variable to define the
location where the JUnit XML reports should be saved.

Modify the Jenkins e2e.sh script to export that variable pointing to the
top of the Jenkins build tree.

Tested by running `E2E_REPORT_DIR=${PWD}/.. hack/e2e-test.sh` and
confirmed ../junit.xml was generated and looked good.
2015-01-28 16:27:43 -08:00
Maxwell Forbes 5500b1a261 Merge pull request #3576 from jlowdermilk/examples
Update update-demo example to use kubectl
2015-01-28 15:43:18 -08:00
Jeff Lowdermlk c912b831ce Update update-demo example and e2e test to use kubectl 2015-01-28 15:26:56 -08:00
Satnam Singh 7e6a4ec0f5 Remove basic.sh and private.sh shell e2e tests 2015-01-28 14:43:53 -08:00
Filipe Brandenburger 18880d9086 Merge pull request #3895 from brendandburns/e2e
introduce a timeout for the update test.
2015-01-28 14:42:21 -08:00
Brendan Burns d13d2e8661 Add a hacky sleep in an attempt to deflake a test. 2015-01-28 14:19:19 -08:00
Brendan Burns 281b3c15ab introduce a timeout for the update test. 2015-01-28 14:10:51 -08:00
Tim Hockin 988d15943f Merge pull request #3787 from satnam6502/serve_hostname
Reduce size of serve_hostname image
2015-01-28 09:07:26 -08:00
Brendan Burns abce3ecf26 Fix update.sh given the renaming of the network container. 2015-01-27 21:58:21 -08:00
Tim Hockin a480794efc Tighten validation of Name and Namespace 2015-01-27 17:04:59 -05:00
Paul Morie 8917c669d1 Make it possible to test a single package w/o cover report 2015-01-25 21:26:36 -05:00
Satnam Singh 3841d1b5d1 Reduce size of serve_hostname image 2015-01-24 09:49:26 -08:00
Vishnu Kannan 2131ed5616 Fix monitoring.sh 2015-01-24 00:09:44 +00:00
Tim Hockin 9566467cdd Fix monitoring e2e to find kubectl 2015-01-23 12:36:03 -08:00
Vishnu Kannan adbbfbf62f Improve monitoring e2e test. 2015-01-23 18:59:05 +00:00
Joe Beda f3b0f285fa Fix min minions for e2e 2015-01-21 11:37:57 -08:00
Brian Grant fc1e3854af Merge pull request #3684 from smreed/services-e2e-fix
Fixes endpoint propagation failure in services e2e
2015-01-21 10:37:26 -08:00
Steve Reed 0d79cfc581 Adds trailing semi-colon as per PR comment 2015-01-21 10:30:58 -08:00
Steve Reed e3f7899be2 Extra echo in services.sh e2e test to get it to pass 2015-01-21 10:30:19 -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
Joe Beda a76b6dddad Turn of services.sh as it is broken.
See https://github.com/GoogleCloudPlatform/kubernetes/issues/3655.
2015-01-20 16:48:10 -08:00
Joe Beda c5634e90ba Verify cluster size before e2e 2015-01-20 09:11:29 -08:00
Paul Morie 0c51f9df8d Make e2e -up recreate running clusters; remove kube-up retry 2015-01-18 12:19:07 -05:00
Satnam Singh d8f07da775 Revert basic.sh and private.sh 2015-01-16 14:43:11 -08:00
Eric Tune 98bdd3f7c4 Test for and fix crash with nil client in kubelet.
Added test that fails before fix.
Fixed use of nil pointer.
2015-01-16 13:39:31 -08:00
Vishnu Kannan 50c32fbba4 Adding a replication controller for all monitoring pods.
Removed auth for Grafana to facilitate usage via service proxy on the api-server.
Added a grafana service
Removed elasticsearch dependency for monitoring - faster startup times.
2015-01-16 18:37:46 +00:00
Johan Euphrosine 363ce1b39a contrib: fix name and readability, exclude from test 2015-01-16 11:54:11 +01:00
Satnam Singh 33e00320bf Convert private.sh test to Go and remove basic.sh and private.sh 2015-01-15 18:04:12 -08:00
Satnam Singh 1bff012c36 Convert basic.sh e2e test to Go 2015-01-15 11:41:29 -08:00
Joe Beda 224ffa4567 Merge pull request #3480 from jbeda/all_pflag
Convert all main binaries to pflag library
2015-01-15 11:26:41 -08:00
Brendan Burns 718a563b1f Add a gendocs pre-submit hook. 2015-01-15 09:52:51 -08:00
Joe Beda 228659a177 Fix up for posix flags 2015-01-15 09:12:19 -08:00
Joe Beda ddcd2e1d2b Merge pull request #3463 from jlowdermilk/gendocs
Autogenerate markdown docs for kubectl
2015-01-14 13:32:38 -08:00
Jeff Lowdermlk 250c948ae7 Autogenerate markdown docs for kubectl
Add test to verify generated docs are up to date.
2015-01-14 13:21:14 -08:00
Zach Loafman 0c4119fb07 Revert "Add --v=4 to e2e bash executions by default"
This reverts commit abc621759a, which
interacts weirdly with Jenkins on the GKE provider. Tactical revert
until that can be figured out:

https://github.com/GoogleCloudPlatform/kubernetes/issues/3474
2015-01-14 13:10:45 -08:00