Commit Graph

51 Commits (198c1724c7f53edb375bc19ea4b7b9ee242c9c6d)

Author SHA1 Message Date
priyawadhwa 034046e931 Add integration test to make sure minikube starts and stops with cont… (#3394)
* Add integration test to make sure minikube starts and stops with containerd
* Skip testing containerd if using none driver
2018-12-05 10:23:36 -08:00
Thomas Strömberg e0df20f294 Restrict TestDocker commands to 10 minutes of total runtime. (#3350)
* Restrict TestDocker commands to 10 minutes of total runtime.
* Hide unneccesarily scary delete error
2018-11-27 08:24:28 -08:00
Balint Pato a681603daa
Fix `minikube tunnel` for hyperkit (#3349)
This change is a bit of a hack to make IP routing work over the virtio-net interface - it forces the virtio-net interface (bridge100) created by hyperkit/xhyve to reset via removing and readding the single member of the interface. Without this "reset" packets are just simply lost most of the time, despite a completely healthy IP route.

This error was also the reason for a large percentage of our integration test failures. While reducing the flakiness of tunnel related tests I also increased the timeout requirement and adding retries to the nginx request in TestTunnel.
2018-11-21 13:39:48 -08:00
Thomas Strömberg 2621bb3a27
Merge pull request #3187 from tstromberg/consistent_err_formatting
Globally replace %s format directives with %v for error strings
2018-10-19 16:44:46 -07:00
Thomas Strömberg 43cdeb9242
Merge pull request #3219 from tstromberg/docker-env
Fix broken TestFunctional/EnvVars test when run under non-bash shell.
2018-10-19 16:19:54 -07:00
Thomas Stromberg 13e580b588 Fix merge breakage. 2018-10-19 14:16:03 -07:00
Thomas Stromberg 72e596507a Merge branch 'master' into consistent_err_formatting 2018-10-19 14:08:35 -07:00
Thomas Stromberg 3d3926fd73 Remove scary looking log messages that distract from real failures. 2018-10-05 14:01:26 -07:00
Thomas Stromberg 633bd80dcb Merge branch 'master' into docker-env 2018-10-05 11:59:19 -07:00
Thomas Stromberg dc6d1bab8d Merge branch 'master' into dashboard_on_demand 2018-10-04 13:38:49 -07:00
Fernando Diaz 2ebdf5e1eb Enhance the Ingress Controller Addon (#3099)
- Updates Ingress-Controller Version to 0.19.0
- Adds Service Account for Ingress-Controller
- Adds Support for Prometheus
- Fixes bug with TCP/UDP ConfigMaps not Loading
- Adds more resource limits to default-backend
- Use new ingress class name
- Use app.kubernetes.io/xxxxxxxxxxx labels
2018-10-04 16:13:53 -04:00
Thomas Stromberg 534325e88f Use %v for errors instead of %s 2018-10-03 21:57:17 -07:00
Thomas Stromberg c079bb1934 Update integration tests to handle newly persistant dashboard. 2018-10-03 15:06:30 -07:00
Thomas Stromberg 8540e3a038 Consistently use %v for formatting error messages. 2018-09-28 16:18:22 -07:00
Thomas Stromberg 055c8002b1 Replace %s format directives with %v for errors.
Previously we were mixed between the two forms. This commit picks %v,
which is consistent with the Kubernetes code base. They both effectively
do the same thing in this case, though %v works with any object, and %s
only with string objects.
2018-09-28 16:05:27 -07:00
Thomas Stromberg 349ea5a06a Fix broken TestFunctional/EnvVars test when run under non-bash shell.
Make future failures to this test easier to debug. Here's an example of
the test failure I ran into:

    --- FAIL: TestFunctional/EnvVars (0.58s)
        cluster_env_test.go:36: SetEnvFromEnvCmdOutput: Error: No variables were parsed from docker-env output:
            set -gx DOCKER_TLS_VERIFY "1";
            set -gx DOCKER_HOST "tcp://192.168.39.199:2376";
            set -gx DOCKER_CERT_PATH "/usr/local/google/home/tstromberg/.minikube/certs";
            set -gx DOCKER_API_VERSION "1.35";
            # Run this command to configure your shell:
            # eval (minikube docker-env)
2018-09-26 17:53:42 -07:00
dlorenc 0a5efe156c Don't look for DNS by name. It might be coredns or kubedns.
Signed-off-by: dlorenc <dlorenc@google.com>
2018-08-21 09:12:40 -07:00
dlorenc 6b4c545a0f Deflake the dashboard test.
This was a bit overkill.
2018-06-08 10:22:43 -07:00
kairen d7c90bc3e5 Fix integration test for Ingress 2018-05-08 11:27:26 +02:00
kairen 08f4677511 Change kubernetes-dashboard from RC to Deployment 2018-01-10 02:15:07 +08:00
kairen 06f52cfe3e Add integration test for ingress addon 2017-12-01 18:40:30 +08:00
ulyssessouza 63b7f8fe12 #1944 Avoid failing GetStatus on integration test when exit status != 0 2017-10-26 22:39:42 +02:00
Matt Rickard 9747484e9e Move k8s utils to pkg/util 2017-09-08 20:14:28 -07:00
Matt Rickard f966c8cf31 Add NewMinikubeRunner, separate start args
* Separate start args from args passed to every command.  This is so
that we can call `minikube logs` and `minikube status` with the proper
flags (for the bootstrapper)

* Add a NewMinikubeRunner function to make getting a minikube runner
easier.
2017-09-08 20:14:21 -07:00
Matt Rickard ac65b58363 Review feedback 2017-09-06 10:22:09 -07:00
Matt Rickard 6ac177fd7a Make MinikubeRunner implement CommandRunner
It is useful to be able to have a command runner to call directly in the
integration tests
2017-08-30 22:36:21 -07:00
Matt Rickard 211ebb8a69 Use kubernetes client in integration tests 2017-08-23 13:09:30 -07:00
dlorenc 0b5bd79d50 Refactor of retries in integration tests. 2017-08-23 10:19:11 -07:00
dlorenc c9bb006283 Add retries to GetPod calls. (#1420) 2017-04-26 16:53:41 -07:00
Matt Rickard 2e94d88e77 Use normal kubectl for integration tests
We were using an alpha v1.6 kubectl to run 1.5 and 1.6 branches of
minikube at the same time.  Since we've merged in 1.6, we will always
use 1.6 kubectl.  I've updated the slaves to have it.
2017-04-11 11:15:51 -07:00
Matt Rickard 09e8cce24d Merge pull request #1314 from r2d4/k8s-v1.6-rebase-1
Upgrade to k8s v1.6 as default version
2017-04-06 14:37:51 -07:00
Aaron Prindle 8e801e3975 Update mount implementation, add mount integration tests, and check that path exists. 2017-04-06 13:39:25 -07:00
Matt Rickard 3b46c27b16 Minikube changes for v1.6.0-alpha.1 2017-03-31 13:23:59 -07:00
Dongsu Park c58e5dd10f test: check stopped status repeatedly
In TestStartStop(), check for stopped status once in 5 seconds,
up to 30 seconds, instead of always sleeping for 30 seconds
before stopping it. That way we can reduce duration of the test.

To do that, we need to split out MinikubeRunner.CheckStatus() into
CheckStatusNoFail() that doesn't lead to T.Fatalf(). Other call sites
of CheckStatus() would not be then affected.
2017-02-10 20:27:54 +01:00
dlorenc 220a5ad840 Add a test for required packages. 2017-02-01 16:06:05 -08:00
dlorenc 22dcd7a7c9 Add a starter test for ISO permissions.
We can continue to add other tests to this file.
2017-01-31 08:31:53 -08:00
Aaron Prindle 0e3a3749a7 Fixing windows integration tests 2016-11-10 13:00:25 -08:00
Matt Rickard 05ea00cf3d Increase retries for persistence test, add logging 2016-10-25 13:39:17 -07:00
Matt Rickard 4cfca59c5c Add RetryableError for the Retry util
This way we can selectively retry the errors that are caused by some
temporary or ephemeral condition such as the pods not being up yet.
2016-10-13 13:53:38 -07:00
Aaron Prindle 6017e34d4d Fixed integration tests, adding test output to ssh mock, change help text to use multi-line string and
updated docs.
2016-09-08 13:13:15 -07:00
Jimmi Dyson 806a950437
Fix docker-env integration test 2016-07-26 09:21:45 +01:00
Dan Lorenc f738e2ca13 Make the PersistenceTest more robust. 2016-07-19 11:57:00 -07:00
dlorenc b18739dc14 Merge pull request #305 from dlorenc/env
Fix up the docker-env integration test.
2016-07-09 12:35:56 -07:00
dlorenc 735e8da305 Add an integration test for cluster persistence. 2016-07-09 11:08:47 -07:00
Dan Lorenc 0334d223d1 Fix up the docker-env integration test. 2016-07-09 11:05:14 -07:00
dlorenc 37ea2f0eea Add a "--minikube-args" flag to the integration tests.
This flag lets you pass arbitrary flags to minikube start. For now,
this is useful for testing different iso URLs and VM drivers.
2016-06-30 14:11:37 -07:00
aprindle 9821f71ca4 Added dns integration test 2016-06-03 09:40:43 -07:00
dlorenc 7102d75eb7 Add an integration test for the addon manager and dashboard. 2016-06-02 10:49:40 -07:00
aprindle 4098745500 Added ssh integration test and updated RunCommand in util.go 2016-06-01 15:26:17 -07:00
aprindle 5b67cb5c14 Added env command integration test 2016-05-31 16:48:27 -07:00