josedonizetti
5d02839e74
Add integration test to flag --kvm-network
2019-05-22 17:25:42 -03:00
tstromberg
230443ceb6
Use NewMinikubeRunner so that release test uses the right VM driver
2019-05-20 14:28:06 -07:00
Thomas Strömberg
9d09ff069b
Merge pull request #4229 from medyagh/no_proxy_for_self
...
Allow minikube to function with misconfigured NO_PROXY value
2019-05-20 11:22:12 -07:00
Medya Gh
c428ce5ebd
Fix typo
2019-05-19 14:10:46 -07:00
Medya Gh
871c2e6704
Better clean up after tesdt proxy setup
2019-05-19 14:07:02 -07:00
Medya Gh
42e40e3bab
Debug
2019-05-19 00:40:01 -07:00
Jan Janik
21b9e95647
Whitelist for kubeadm extra args
2019-05-17 17:11:03 +12:00
Jan Janik
6fe47f3677
Expose ‘—pod-network-cidr’ argument in minikube
2019-05-17 16:59:06 +12:00
Medya Gh
0d58773af3
Clean up after unit test
2019-05-16 20:37:29 -07:00
Medya Gh
6484548a1f
fix formatting
2019-05-16 15:38:28 -07:00
Medya Gh
a1e34b01a1
Improve http server shutdown handling
2019-05-16 15:26:24 -07:00
Medya Gh
3ff806a595
Added unittest and rebase
2019-05-16 14:44:01 -07:00
Thomas Stromberg
c91d8e85c2
Test the upgrade of Kubernetes versions (oldest->newest)
2019-05-16 07:15:53 -07:00
Medya Gh
08d19bf15a
Improve formatting and messages
2019-05-15 15:39:50 -07:00
Medya Gh
b8501ea4f4
Fix formatting
2019-05-15 15:30:39 -07:00
Medya Gh
a0c6013e71
Fixed Error handling for http serve
2019-05-15 15:05:29 -07:00
Medya Gh
10799333f1
Added integration tests for proxy
2019-05-15 15:00:45 -07:00
tstromberg
313cf575fe
Merge branch 'master' into gomods
2019-05-14 21:06:00 -07:00
Thomas Stromberg
25579f5a58
Use consistent names for k8s API imports
2019-05-13 21:57:59 -07:00
Thomas Stromberg
6e693d22ee
lint-a-geddon is here
2019-05-13 21:43:52 -07:00
tstromberg
9a9f9edf5f
First pass at lint-ageddon
2019-05-13 18:31:55 -07:00
Himanshu Pandey
64f990cec1
Updated the test case
2019-05-07 13:58:33 -07:00
Himanshu Pandey
e23a78489c
Added a param in the test case to find the current-context after stop
2019-05-03 16:18:36 -07:00
Himanshu Pandey
dd8d3cf900
minor code change: Added strings.TrimRight()
2019-05-03 14:12:11 -07:00
Himanshu Pandey
fd7277ba4d
Changed the error message style in test case.
2019-05-02 12:17:33 -07:00
Himanshu Pandey
a533b5653f
Fixed the test case
2019-05-02 09:47:08 -07:00
Himanshu Pandey
a4018bfa72
Fixed the build error and formatting
2019-05-02 09:04:08 -07:00
Himanshu Pandey
fb0127f352
Fixed gofmt errors
2019-04-30 16:24:30 -07:00
Himanshu Pandey
c8af727416
Added tests to check current-context on start and stop of minikube
2019-04-30 15:32:40 -07:00
Balint Pato
3ebb16c678
fix tunnel integration tests for driver None ( #4105 )
...
* added more wait to the integration tests for the tunnel
2019-04-25 08:49:24 -07:00
Anders F Björklund
a73dfc5f9e
Merge branch 'master' into cyclo
2019-04-12 20:03:20 +02:00
Benn Linger
b7ffe5b7c2
Combined non-default apiserver port test with containerd test
2019-04-05 18:36:35 -04:00
Benn Linger
d102550644
Fixed status checking with non-default apiserver-port.
2019-04-04 21:43:43 -04:00
Thomas Stromberg
614f19b486
Add CNI flags to feature_gates_newest
2019-03-26 20:26:47 -07:00
Thomas Strömberg
ca51bada64
Merge pull request #3965 from tstromberg/v1.14-tmpl
...
Fix all the kubeadm config generation bugs, add tests across versions
2019-03-26 15:32:30 -07:00
Thomas Stromberg
7233a2d50d
Allow mount to work when the uid/gid of docker changes
2019-03-26 14:27:50 -07:00
Anders F Björklund
4667c28164
Merge branch 'master' into cyclo
2019-03-26 07:16:28 +01:00
Thomas Stromberg
9004134eb8
Fix invalid feature-gates argument
2019-03-25 21:02:44 -07:00
Thomas Stromberg
9f753c3027
Fix all the kubeadm config generation bugs I could find, add tests across versions
2019-03-25 18:25:01 -07:00
Thomas Strömberg
c3d0b33d21
Merge pull request #3929 from sharifelgamal/version-upgrade-test
...
Adding test to make sure HEAD can run on VM created by latest release
2019-03-25 13:27:58 -07:00
Sharif Elgamal
4fc03fe1ef
addressing comments
2019-03-25 11:50:06 -07:00
Thomas Strömberg
cc5d4e9724
Merge branch 'master' into rkt-remove
2019-03-25 11:31:09 -07:00
Anders F Björklund
71b3e3ec5d
Store the toolbox on the disk instead of rootfs
...
There was a lack of "disk" space, when using memory.
This also makes the toolbox persistent over reboots.
2019-03-25 07:41:21 +01:00
Anders F Björklund
2590fc7b9a
Remove the rkt container runtime
...
It has not been updated since kubernetes 1.9 or so
2019-03-24 08:50:58 +01:00
Thomas Strömberg
cbac94a53d
Merge pull request #3879 from marcosdiez/extra_config_for_kubeadm
...
--extra-config now work for kubeadm as well
2019-03-21 22:03:06 -07:00
Thomas Stromberg
1ff174b796
Run: gofmt -s -w
2019-03-21 22:00:14 -07:00
Sharif Elgamal
c3849b3781
gofmt
2019-03-21 17:46:46 -07:00
Sharif Elgamal
ffaa27b256
Adding test to make sure HEAD can run on VM created by latest release
2019-03-21 17:36:13 -07:00
Marcos Diez
8aec728a86
start_stop_delete_test.go now tests for "--extra-config kubeadm.ignore-preflight-errors=SystemVerification" too
2019-03-21 09:11:55 -03:00
Thomas Strömberg
4756b15bc1
Merge branch 'master' into lint
2019-03-20 10:16:09 -07:00
Anders F Björklund
03bdce47ee
Decrease cyclomatic complexity for test
...
Mostly by using the "extract method" pattern.
Here was the report (from gocyclo), before:
17 tunnel TestTunnelManagerCleanup pkg/minikube/tunnel/tunnel_manager_test.go:174:1
44 tunnel TestTunnel pkg/minikube/tunnel/tunnel_test.go:35:1
34 kubeconfig configEquals pkg/util/kubeconfig/config_test.go:420:1
25 integration testMounting test/integration/mount_test.go:36:1
18 integration testTunnel test/integration/tunnel_test.go:37:1
2019-03-16 23:04:24 +01:00
Anders F Björklund
edf46f003f
Document all exported functions outside minikube
2019-03-16 16:57:37 +01:00
Thomas Stromberg
4f44208ba3
Refactor functional tests to not rely on SetRuntime, use short variable name
2019-03-08 12:30:41 -08:00
Thomas Stromberg
02a06a8da6
Second Start call should also pass in the new test.args list
2019-03-06 15:50:57 -08:00
Thomas Stromberg
e09133892f
Fix docker/containerd caching, improve msgs, add tests
2019-02-27 13:58:33 -08:00
Thomas Stromberg
61d0516bba
Fix TestStartStop so that none tests are executed
2019-02-14 20:26:24 -08:00
Anders F Björklund
abb5fc0af0
Show name as CRI-O, even if class is CRIO
...
Should use the proper name for display, even if we use a name more
suitable to naming classes and methods for the implementation...
Also use the --runtime=cri-o when testing, and update the github
repository now that cri-o has graduated from incubator to a sig.
See https://cri-o.io/
2019-02-12 21:03:51 +01:00
Anders F Björklund
78806674f3
Merge branch 'master' into defaults
2019-02-09 18:25:27 +01:00
Thomas Stromberg
966b245dc6
Refactor and centralize container runtime code into a cruntime package
2019-02-05 14:42:12 -08:00
Anders F Björklund
7ef2918100
Remove default cni flags from integration tests
2019-02-05 20:03:29 +01:00
Thomas Strömberg
c27d1a0213
Merge pull request #3536 from tstromberg/crio-test
...
Add CRI-O to TestStartStop
2019-01-25 10:16:00 -08:00
Thomas Stromberg
a9ca1d7186
Add --enable-default-cni for CRIO
2019-01-24 16:08:40 -08:00
Nicholas Goozeff
d516caadb3
Merge branch 'master' into bug3044
2019-01-20 20:58:15 +11:00
Thomas Stromberg
9e0119b8e2
Add --network-plugin=cni as per afbjorklund's comment
2019-01-18 15:03:05 -08:00
Thomas Stromberg
d499497056
Add CRIO flags support to MinikubeRunner.Start()
2019-01-17 10:57:54 -08:00
Thomas Stromberg
218cf179dd
Fix T->t typo
2019-01-16 16:20:23 -08:00
Thomas Stromberg
f2c7860eab
Add CRI-O to TestStartStop
2019-01-16 15:13:20 -08:00
Thomas Strömberg
3aa83674a9
Merge pull request #3441 from brb/2907-no-cni-conf-by-default
...
Do not include the default CNI config by default
2019-01-15 17:14:20 -08:00
Thomas Stromberg
11f97460a2
Merge branch 'master' into crio-v1.13.0
2019-01-11 10:53:37 -08:00
Thomas Stromberg
d1f4e787c6
Don't error if delete fails: there may not be a cluster to delete
2019-01-08 16:22:03 -08:00
Martynas Pumputis
d982c4bf74
Do not include the default CNI config by default
...
Previously, minikube has been shipped with the default CNI config
(/etc/cni/net.d/k8s.conf) in its rootfs. This complicated a lot
when using a custom CNI plugin, as the default config was picked
by kubelet before the custom CNI plugin has installed its own CNI
config. So, the end result was that some Pods were attached to a
network defined in the default config, and some got managed by
the custom plugin.
This commit introduces the flag "--enable-default-cni" to
"minikube start" to trigger the provisioning of the default CNI
config.
Signed-off-by: Martynas Pumputis <m@lambda.lt>
2019-01-03 09:23:29 +01:00
Thomas Stromberg
6f5c380ff6
RunDaemon: tee stderr for debugging
2018-12-21 13:07:49 -08:00
Thomas Stromberg
44a230bfa0
Remove dashboard deployment check from TestPersistence - it's no longer default
2018-12-21 12:03:15 -08:00
Thomas Stromberg
8aae0f72f8
Set --v=5, which seems to be the initial right level for testing
2018-12-20 10:16:47 -08:00
Thomas Stromberg
7f7587d96c
Rename TeeWithPrefix to TeePrefix to match Go idioms
2018-12-20 09:54:09 -08:00
Thomas Stromberg
9b707fe234
Add TeeWithPrefix to ssh_runner as well
2018-12-19 17:03:55 -08:00
Thomas Stromberg
ab5d433448
Make tee work with RunWithContext also
2018-12-19 11:16:08 -08:00
Thomas Stromberg
bc5eb2a1f7
Stream command output from integration tests
2018-12-19 10:42:19 -08:00
priyawadhwa
1514511b7a
Change restart policy on gvisor pod ( #3445 )
...
* Change restart policy on gvisor pod
Change the restart policy on the gvisor pod to Always. This way, if a
user runs
minikube addons enable gvisor
minikube stop
minikube start
when the addon manager tries to restart the gvisor pod, it will be
restarted and gvisor will start running automatically. This PR also adds an
integration test for this functionality.
* Test stop and start
* Revert test to delete
Revert test to delete for now, for some reason "stop" and then "start"
is failing both locally and in Jenkins for VirtualBox with a "panic test
timed out after 30 min" error
2018-12-11 18:39:57 -08:00
priyawadhwa
8f128a7d10
Enable gvisor addon in minikube ( #3399 )
...
This PR adds the code for enabling gvisor in minikube. It adds the pod
that will run when the addon is enabled, and the code for the image
which will run when this happens.
When gvisor is enabled, the pod will download runsc and the
gvisor-containerd-shim. It will replace the containerd config.toml and
restart containerd.
When gvisor is disabled, the pod will be deleted by the addon manager.
This will trigger a pre-stop hook which will revert the config.toml to
it's original state and restart containerd.
2018-12-07 15:27:22 -08:00
Thomas Strömberg
ad415e252d
Merge pull request #3401 from tstromberg/cherry-2f81d
...
Add apiserver check to "status", and block "start" until it's healthy.
2018-12-07 15:20:07 -08:00
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 Stromberg
a9ad38cb82
MinikubeStatus->Host
2018-12-05 10:21:29 -08:00
Thomas Stromberg
a402c11057
Remove check for obsolete kube-dns label & validate kubernetes.default rather than localhost
2018-12-04 12:46:59 -08:00
Nicholas Goozeff
919c9d9d36
Remove extra debug logging for mount command.
2018-11-28 15:45:25 +11:00
Balint Pato
47579273d8
even longer timeout + timeout error is retriable now ( #3370 )
...
* even longer timeout + timeout error is retriable now
* fix for debugging when tunnel test has issues
2018-11-27 13:58:26 -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
4b11d63da1
debugging improvements and flakiness reduction ( #3363 )
...
Small improvements to debugging and reducing integration test flakiness:
* added logging to kubeadm init in the SSHExecutor
* increasing timeout for RBAC creation via the kubernetes client set
* only log tunnel output to test logger
2018-11-26 10:18: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 Stromberg
f0b358f2b4
Remove extra log statements
2018-11-13 12:42:00 -08:00
Nicholas Goozeff
ff93c6e067
Fix bug in construction of mount command for testing.
...
Only check access time is set for windows OS.
2018-11-10 18:32:41 +11:00
Thomas Stromberg
8771eae0ae
testDashboard: add timeout around reading URL from stdout.
...
This test typically takes <30s to execute, so 180s should leave plenty
of margin for error.
2018-11-07 16:40:45 -08:00
Thomas Stromberg
1b254773ef
Call t.Parallel() after t.Skip() to avoid confusion while debugging.
2018-11-07 16:40:21 -08:00
Thomas Stromberg
c9abdf46a7
Skip testTunnel on non-Windows platforms if route requires sudo password.
2018-11-07 16:39:28 -08:00
Nicholas Goozeff
14244b3645
Test cases for issue #3044 - timestamps of mounted files incorrect with windows host.
2018-10-31 05:42:27 +01:00
Thomas Strömberg
2ec03ebf61
Merge pull request #3260 from tstromberg/disable-mount-osx
...
Disable mount tests in Darwin to workaround panic: timeout bug
2018-10-19 17:03:08 -07: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
88ab68305b
Add runtime import for Darwin check.
2018-10-19 16:16:32 -07:00
Thomas Stromberg
1f968bc893
More merge conflicts.
2018-10-19 14:20:17 -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
Balint Pato
ae9f4b20c7
minikube tunnel ( #3015 )
...
This commit introduces a new command, `minikube tunnel`, a LoadBalancer emulator functionality, that must be run with root permissions.
This command:
* Establishes networking routes from the host into the VM for all IP ranges used by Kubernetes.
* Enables a cluster controller that allocates IPs to services external `LoadBalancer` IPs.
* Cleans up routes and IPs when stopped (Ctrl+C), when `minikube` stops, and when `minikube tunnel` is ran with the `--cleanup` flag
2018-10-18 11:01:47 -07:00
Thomas Stromberg
f20bf4d3b2
Disable mount tests in Darwin to workaround panic: timedout bug
...
These tests reliably cause a "panic: timed out" condition due to
hitherto unknown reasons. See issue #3200 for context.
dlorenc mentioned that this test never worked, so when I re-enabled it
recently for all platforms in af61bf790c
,
it introduced a persistent test failure for darwin.
I'll leave issue #3200 open until we are able to re-enable this test.
2018-10-17 14:58:40 -07:00
Thomas Stromberg
07015bf43c
Improve wording.
2018-10-05 14:02:04 -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
57054acfb6
Add missing reference to cmd.
2018-10-03 15:12:40 -07:00
Thomas Stromberg
c079bb1934
Update integration tests to handle newly persistant dashboard.
2018-10-03 15:06:30 -07:00
Thomas Stromberg
df54c6a5b4
Use "kubectl proxy" instead of a NodePort to expose the dashboard.
...
This provides an additional level of security, by enforcing host checking, applying port randomization, and requiring explicit user intent to expose the service to the host.
2018-10-02 22:25:45 -07:00
Thomas Strömberg
4b1ee9cffb
Merge branch 'master' into directives
2018-09-28 19:20:49 -07:00
Thomas Stromberg
5ea3ef88ec
Revert "Remove lint issues from integration tests, mostly by adding error"
...
This reverts commit af61bf790c
.
2018-09-28 17:00:55 -07:00
Thomas Stromberg
3706b3b8ac
Fix dangling format issues.
2018-09-28 16:48:37 -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
6d93bd5ffe
Wait for k8s-app=kube-dns pods to be Running before testing.
...
This effectively reverts 0a5efe156c
- whose behavior was apparently correct. Both coredns and kubedns share k8s-app=kube-dns labels in our current environment.
2018-09-28 15:08:33 -07:00
Thomas Stromberg
af61bf790c
Remove lint issues from integration tests, mostly by adding error
...
handlers.
2018-09-28 11:57:48 -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
Thomas Stromberg
45379c61c2
Fix T.Log call containing a formatting directive.
2018-09-26 15:38:18 -07:00
dlorenc
86f44ad4ff
Manual changes for go-containerregistry update.
2018-08-22 20:24:46 -05:00
dlorenc
20b4020019
Also disable persistence test.
2018-08-21 09:12:40 -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
232080ae0c
Remove some more vendored k8s.
2018-07-26 08:23:21 -07:00
Aaron Prindle
a4606583e4
remove all localkube references from code, change /var/lib/localkube to /var/lib/minikube
2018-07-24 12:36:42 -07:00
dlorenc
80e934b845
Fix e2e test compilation.
...
Signed-off-by: dlorenc <dlorenc@google.com>
2018-06-13 14:13:38 -07:00
dlorenc
a2218d2e7e
Add two more kubeadm preflight ignores to make e2e tests pass.
2018-06-12 13:48:29 -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
Yongkun Anfernee Gui
c07258b45a
Fix more permissions
2018-02-09 14:32:53 -08:00
kairen
08f4677511
Change kubernetes-dashboard from RC to Deployment
2018-01-10 02:15:07 +08:00
dlorenc
030a4c747f
Manual changes for 1.9 update.
2017-12-21 14:15:48 -08:00
kairen
797925f183
Update ingress controller, and fix integration test
2017-12-12 21:43:39 -08:00
kairen
e93a2f4254
Ignore the ingress test in Linux-None
2017-12-02 04:04:39 +08:00
kairen
745645b929
Use yaml file to create nginx pod and service
2017-12-02 03:28:47 +08:00
kairen
06f52cfe3e
Add integration test for ingress addon
2017-12-01 18:40:30 +08:00
Matt Rickard
f368ac4999
Merge pull request #2137 from priyawadhwa/storage-provisioner-as-pod
...
Run storage provisioner as pod
2017-11-01 14:00:57 -07:00
Matt Rickard
afc991ad3f
fix tests
2017-10-31 10:11:50 -07:00
Matt Rickard
30667cb406
Calculate ServiceClusterIP and DNS IP from CIDR
2017-10-31 10:06:51 -07:00
Matt Rickard
e2dd95ed39
update kubeadm
2017-10-31 10:06:51 -07:00
Priya Wadhwa
7098431c6a
Small changes
2017-10-30 13:52:45 -07:00
Priya Wadhwa
71b38d1e4e
Tests passing with storage-provisioner in addons
2017-10-30 13:45:31 -07:00
ulyssessouza
c208e9088a
#1944 Disable Report error prompt before running start/stop integration tests
2017-10-27 01:12:00 +02:00
ulyssessouza
63b7f8fe12
#1944 Avoid failing GetStatus on integration test when exit status != 0
2017-10-26 22:39:42 +02:00
Matt Rickard
cae751ad38
Disable busybox cache for windows
2017-10-03 08:53:41 -07:00
Matt Rickard
5ba262d1ce
Disable provisioning test for kubeadm for now.
...
Until we get caching and can run an external storage provisioner.
2017-09-14 13:51:37 -07:00
Matt Rickard
3180e2e897
Merge pull request #1938 from r2d4/integration-test-cleanup-
...
Integration test cleanup
2017-09-12 14:28:28 -07:00
Matt Rickard
53341aa30d
golint, go vet, etc. changes
2017-09-11 14:17:58 -07: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
86ecc90fe2
Run busybox integration test in default namespace
...
If we choose a random namespace, the test will fail since RBAC
permissions will not be set up correctly.
This also chooses a randomly generated name, so that if we are running
an integration test while another busybox pod is still cleaning up,
there are no errors
2017-09-08 20:14:21 -07:00
Matt Rickard
ac65b58363
Review feedback
2017-09-06 10:22:09 -07:00
Matt Rickard
eb73bad9c5
Cache busybox in integration test
2017-08-30 22:36:21 -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
6c73183cea
Add target for none driver integration
...
Theres currently no good way to run the integration tests for the none
driver locally. Now that we've added the e2e target, we can depend on
that. Running the e2e test binary locally requires the testdata folder
to be in a different path, since it is relative to where the code is
being ran. I added a testdata-dir flag to the integration tests so we
can set it appropriately for when we want to run the e2e binary by
itself.
I also made the e2e test binary a PHONY target, so we rebuild it each
time. I had trouble collecting the dependencies on the integration
test packages
2017-08-28 11:56:30 -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
Matt Rickard
c7247b9b17
Remove 30 second wait from start stop
...
I removed this awhile ago, but I'm not sure how it snuck back in.
The original issue was that the VM was getting a new IP, but the driver
was parsing the leases file and still picking the old IP. So the only
way to fix it was to wait for the old lease to expire.
2017-08-21 21:39:55 -07:00
Matt Rickard
4e9c1c8a17
Remove systemd integration test
...
It didn't really do much, and we don't require systemd anymore.
2017-06-20 14:17:19 -07:00
Nick Kubala
cf911b82c0
change build rule to be logical AND instead of OR
2017-06-13 10:28:19 -07:00
Nick Kubala
99ebdf0977
remove log entry and rename file
2017-06-13 10:28:19 -07:00
Nick Kubala
5d66ac22f0
use go build tag over make flag
2017-06-13 10:28:19 -07:00
Nick Kubala
13395a067d
add integration-versioned make rule to run certain integration tests on all supported k8s versions
2017-06-13 10:28:19 -07:00
Aaron Prindle
a7c2ff3e84
Merge pull request #1173 from aaron-prindle/minikube-no-vm
...
None driver
2017-05-26 15:22:01 -07:00
Aaron Prindle
f4a8ece0ae
Additional none driver changes
2017-05-26 13:33:26 -07:00
dlorenc
99be45d40c
Update kubedns to 1.14.2. ( #1526 )
...
* Update kubedns to 1.14.2.
* Also change integration test to cover the naked "kubernetes" domain.
2017-05-26 10:15:38 -07:00
Aaron Prindle
88613090a9
Added none driver
2017-05-19 14:51:19 -07:00
Aaron Prindle
847b52d50f
Fixed mount daemon to be off by default and to use different directories than the current mounts until they are turned off.
2017-05-19 14:00:18 -07:00
dlorenc
fa118e1a94
Increase the status timeout. ( #1429 )
2017-04-28 13:30:02 -07:00
dlorenc
dd5b303a35
Minor e2e cleanups. ( #1425 )
2017-04-28 10:38:55 -07:00
dlorenc
4b7a59425b
Temporarily disable the mount test. ( #1424 )
2017-04-28 09:51:45 -07:00
dlorenc
56b45d6488
Move the pod setup outside of the mount test loop. ( #1423 )
...
Deleting pods with HVs takes some time, so let's do that separately.
2017-04-27 12:50:04 -07:00
dlorenc
c9bb006283
Add retries to GetPod calls. ( #1420 )
2017-04-26 16:53:41 -07:00
Aaron Prindle
41c5ba7663
Merge pull request #1350 from aaron-prindle/mount-vm-path
...
Changed mount syntax to be host-path:vm-path
2017-04-19 12:03:22 -07:00
Aaron Prindle
b3ad7539b1
Changed mount syntax to be host-path:vm-path
2017-04-19 10:15:04 -07:00
Aaron Prindle
715ee87dc9
Merge pull request #1298 from aaron-prindle/no-network-wait
...
Removed dependency on localkube to wait for the network to be up
2017-04-12 09:10:49 -07:00
Aaron Prindle
a11b47160f
Removed dependency on localkube to wait for the network to be up
2017-04-12 08:38:14 -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
Mike Grass
82f6713cef
Tell systemctl not to try to page output
...
This integration test was hanging on Windows because systemctl was paging the
(one line) output and waiting for stdin. Specify the `--no-pager` cmd to systemctl
to avoid this.
2017-04-07 12:39:21 -07:00
Mike Grass
11c2dbc8d2
Dump docker systemd config using systemctl
...
The TestDocker integration test shouldn't hard code the path to the systemd config for docker.service -- instead, it can use `systemctl show` to dump the configuration for the docker service.
2017-04-07 12:39:21 -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
4b94b14459
Merge pull request #1293 from aaron-prindle/switch-mount
...
Update mount implementation, add mount integration tests, and check t…
2017-04-06 14:33:22 -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
Aaron Prindle
6ca6a8993b
Removed B2D start commands and also a reference of B2D in docker_test
2017-03-29 13:57:46 -07:00
Max Lavrenov
ae153c6348
add --docker-opt parameter which passes flags to docker daemon
2017-03-20 23:39:55 +01:00
dlorenc
b17a097c01
Add logging of the storageclass list.
2017-02-27 13:56:57 -08:00
Dan Lorenc
8fd8564acd
Add an integration test for pvcs.
2017-02-27 13:43:19 -08:00
dlorenc
fb910496a3
Add a test that the right directories are persisted.
2017-02-16 09:41:25 -08:00
Matt Rickard
cee7653285
Retry error for addons kubectl cmd
2017-02-13 12:55:28 -08: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
e57170061a
Merge pull request #1057 from dlorenc/isoperms
...
Add a starter test for ISO permissions.
2017-02-01 12:09:20 -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
Matt Rickard
dfdbc6a768
Fixes from gometalinter
2017-01-30 15:39:35 -08:00
Aaron Prindle
e9717abc78
Fixed Windows CI: now systemd integration test is skipped on Windows
2017-01-20 15:48:03 -08:00
Matt Rickard
52dc0a1c4f
Add non-blocking test for systemd units
...
Integration test for failing systemd units. Once we fix the hostname
service, we can make this a blocking test.
2017-01-12 14:02:23 -08:00
Dan Lorenc
855dcf37a1
Switch e2e tests to use glibc.
2017-01-07 16:37:44 -08:00
Aaron Prindle
8ebdafa3ce
Working on adding localkube to minikube-iso. Have added check for which iso is running to support both isos. Added localkube restarting.
2016-12-13 11:15:57 -08:00
Dan Lorenc
35acd21cb1
Move some integration tests to the subtest framework, and run them in parallel.
2016-12-05 18:36:03 -08:00
Dan Lorenc
ee2bfd3056
Add an integration test for service list.
2016-12-03 13:02:06 -08:00
Aaron Prindle
0e3a3749a7
Fixing windows integration tests
2016-11-10 13:00:25 -08:00
Matt Rickard
ec02c3cbd8
Add linux KVM integration tests, wait in StartStop
...
The KVM driver has trouble starting and stopping immediately. This
happens with docker-machine also.
2016-11-04 11:41:40 -07:00
Matt Rickard
ec0acbb6ca
Increase waiting time for integration tests
...
There have been flakes on the integration tests where the dashboard pod has been getting ready but the test does not wait long enough and fails.
2016-11-03 12:25:33 -07:00
dlorenc
8d1da576a0
Add an integration run with the new ISO.
2016-10-31 09:16:28 -07:00
Jimmi Dyson
09a28e16cc
Update dashboard integration test wrong port error message
2016-10-29 09:34:00 +01:00
Jimmi Dyson
b64ad5c457
Add dashboard command integration test
2016-10-29 09:33:59 +01:00
Jimmi Dyson
a8a22c0212
Fix vet printf errors
2016-10-29 09:29:45 +01:00
dlorenc
d23a7a53a8
Add docker-env options to the buildroot provisioner.
2016-10-27 15:07:34 -07:00
Matt Rickard
05ea00cf3d
Increase retries for persistence test, add logging
2016-10-25 13:39:17 -07:00
Matt Rickard
d257fca5db
Fix docker-env integration test
...
Make sure that --minikube-args are passed through to the start command
in our docker-env integration test
2016-10-18 14:52:06 -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
dlorenc
5bc27063ff
Increase the pull timeout even more.
...
We're still seeing some flakes with 1 minute.
2016-07-21 10:36:21 -07:00
Dan Lorenc
f738e2ca13
Make the PersistenceTest more robust.
2016-07-19 11:57:00 -07:00
Dan Lorenc
c6b2649966
Add a flag to minikube start to allow passing environment variables to Docker.
2016-07-18 10:27:09 -07:00
dlorenc
783828e8ba
Add an integration test to make sure the dashboard works after a restart.
2016-07-12 15:14:49 -07:00
Dan Lorenc
85ca802888
Switch the DNS test to use GCR instead of dockerhub.
2016-07-11 09:14:51 -07:00
Dan Lorenc
80ad525d39
Fix bad merge conflict.
2016-07-09 12:44:28 -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
1b446b896a
Fix the addons_test to work with xhyve.
...
When you run with the xhyve driver, the addon-manager has a different
name.
2016-07-07 14:32:26 -07:00
dlorenc
9428c5a7a4
Increase the timeout on the addon manager pod.
2016-07-06 14:33:29 -07:00
dlorenc
7885c385d7
Fix addons integration test.
2016-07-06 09:24:48 -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
Subhas Dandapani
a0d610df79
Fixed nodePort for dashboard #185
2016-06-21 19:20:33 +02:00
dlorenc
89c5d10b11
Switch more tests to EnsureRunning.
2016-06-06 11:41:27 -07:00
dlorenc
19e18b0237
Add a retry to the cluster_env test.
2016-06-06 11:40:13 -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
dlorenc
f5d55d2ef5
Fix logging for cluster_env_test.
2016-06-01 17:21:05 -07:00
Dan Lorenc
94aca79782
Wait a few seconds for the cluster to become healthly.
2016-06-01 16:41:07 -07:00
aprindle
4098745500
Added ssh integration test and updated RunCommand in util.go
2016-06-01 15:26:17 -07:00
aprindle
44c3a6a126
Adding logs command integration tests
2016-06-01 09:05:07 -07:00
aprindle
5b67cb5c14
Added env command integration test
2016-05-31 16:48:27 -07:00
Lucas Käldström
d4c23777ed
Merge pull request #90 from dlorenc/race
...
Fix race condition in cluster setup.
2016-05-23 08:35:57 +03:00
Dan Lorenc
43f5851e6d
Fix race condition in cluster setup.
...
We now explicitly generate certs before starting the cluster.
2016-05-22 14:21:10 -07:00
Dan Lorenc
e6eb9b6dee
Add a test for the new IP command.
2016-05-19 13:06:34 -07:00
Dan Lorenc
f0fdf425c3
Integration test to verify cluster components are healthy.
2016-05-14 09:54:47 -07:00
Lucas Käldström
b3cc4d2bae
Fix integration default path
2016-05-05 16:47:36 +03:00
Lucas Käldström
6b2d1ed1cd
Restructure the whole project, gofmt and improve the makefile
2016-05-05 16:38:23 +03:00