Commit Graph

604 Commits (b63212eacf34f9b44d9836abb0ecfddf1cd7b320)

Author SHA1 Message Date
Medya Gh 16e5aeec5e lint 2019-08-21 15:56:46 -07:00
Medya Gh 8cadce302a lint and add profile name to end of obvious log block 2019-08-21 15:56:46 -07:00
Medya Gh 246f33f52b Less Retry on minikube, new auto fail helpers MustStart,MustRun 2019-08-21 15:56:46 -07:00
Medya Gh 8796539112 skip cache imge test for none 2019-08-21 15:56:46 -07:00
Medya Gh b3c9eea3d8 improve logging, fix expected filename for downloadonly 2019-08-21 15:56:46 -07:00
Medya Gh c7e0d3aa8e lint and simplify download_only 2019-08-21 15:56:46 -07:00
Medya Gh eef31403b4 Unified StartFail Logging, more t.Error and Added download only test, 2019-08-21 15:56:46 -07:00
Medya Gh 8923e4b5cd Fix string replace 2019-08-21 15:56:46 -07:00
Medya Gh 0e13fecd8b fix replace 2019-08-21 15:56:46 -07:00
Medya Gh 441f999e1d Add better logging 2019-08-21 15:56:46 -07:00
Medya Gh e325516ab1 remove retry start from integeration tests 2019-08-21 15:56:46 -07:00
Thomas Strömberg b9a88eb52b
Merge pull request #5116 from josedonizetti/refactor-read-config
Refactor config.ReadConfig to accept a file
2019-08-21 10:16:08 -07:00
josedonizetti 1ed3f4481b Improve variable naming 2019-08-21 10:53:48 -04:00
Medya Ghazizadeh cebaad1836
fix none perm flake test (#5151) 2019-08-20 16:32:48 -07:00
josedonizetti 19364326b1 Change TestConfig to use RunCommandRetriable 2019-08-20 09:19:40 -04:00
josedonizetti 5e45bb2297 Fix doc 2019-08-20 09:17:20 -04:00
josedonizetti 11bd62a625 Extract TestConfig from TestFunction 2019-08-20 08:58:57 -04:00
Medya Ghazizadeh c3cfedff79
Merge pull request #5121 from medyagh/refactor_util_kube
Add wait-timeout flag to start command and refactor util/kubernetes
2019-08-19 22:11:36 -07:00
josedonizetti 15f6e90ce2 Fix testConfig 2019-08-19 20:35:59 -04:00
josedonizetti 06da850ed7 Change testConfig profile name 2019-08-19 20:23:07 -04:00
josedonizetti 0843e01c94 Change testConfig to use default cpus 2019-08-19 20:11:23 -04:00
josedonizetti 911ce1276d Rename integration to testConfig 2019-08-19 20:08:52 -04:00
josedonizetti 69dfac387d Add config integration test 2019-08-19 19:37:02 -04:00
Medya Gh f75b558ac2 rename kube pkg to kapi 2019-08-19 16:11:38 -07:00
AllenZMC f4adb99c31
fix wrong spells in flags.go 2019-08-19 20:52:44 +08:00
Medya Gh 6554a5146f make TestVersionUpgrade campatible with the new flag 2019-08-18 02:36:18 -07:00
Medya Gh af16d336da Fixed givsor test setup and added time out to integration test 2019-08-18 01:39:42 -07:00
Medya Gh 5464a7c9e2 adding a new flag wait-timeout and reduce default wait from 5 to 3 2019-08-18 01:14:02 -07:00
Medya Gh 5811610697 refactor util/kuberentes and ExtraOptions 2019-08-17 19:05:54 -07:00
Priya Wadhwa 198d6397f9 Merge branch 'master' of github.com:kubernetes/minikube into gvisor-image 2019-08-15 13:56:37 -07:00
Sharif Elgamal 88c27daf70
Merge pull request #5082 from sharifelgamal/windows-ci
Fix TestVersionUpgrade for Windows
2019-08-14 14:08:47 -07:00
Sharif Elgamal 36961c90d5
fix TestVersionUpgrade for Windows 2019-08-14 12:21:42 -07:00
Medya Gh c8e6f61bc1 convert all util.Retry to retry.Expo 2019-08-14 00:24:51 -07:00
Medya Gh f17f3408a8 convert all RetryAfter to retry.Expo 2019-08-13 23:48:30 -07:00
Medya Gh 06d0e48156 move all RetryX to retry.Expo 2019-08-13 22:18:47 -07:00
Medya Gh 998d305af3 Adding lock to most ioutil.WriteFile 2019-08-13 21:12:34 -07:00
Medya Ghazizadeh 7bb085ad24
Merge pull request #5003 from medyagh/kubeconfig
Refactor Kubeconfig
2019-08-13 14:57:49 -07:00
Sharif Elgamal 95dd194bf5
Make sure minikube is up before checkout .minikube directory (#5050) 2019-08-12 14:13:45 -07:00
Medya Gh f0f4352bb1 goimport 2019-08-09 16:08:14 -07:00
Medya Gh 3ad2aecb82 add kubecontext integraiton tests to functional tests as well 2019-08-09 15:56:05 -07:00
Medya Gh 8763e6d692 Add integration test for kubeconfig current-context 2019-08-09 15:52:48 -07:00
Thomas Strömberg 4a335cbd56
Merge pull request #5026 from tstromberg/drvmnt
Restore --disable-driver-mounts flag
2019-08-09 07:49:05 -07:00
Thomas Stromberg 32c405d44d Fix way flags are being passed into crio test 2019-08-09 06:35:39 -07:00
Thomas Stromberg d18978450c Restore --disable-driver-mounts flag 2019-08-08 17:12:33 -07:00
Sharif Elgamal 1f48364487
Fix prepareNone and add integration test for it (#5023)
* Fix prepareNone and add integration test for it

* add test file

* only compile none test on linux

* build tags are confusing

* build tags are quite confusing

* build tags are very confusing
2019-08-08 15:47:44 -07:00
Priya Wadhwa d5e4cc1c43 No longer need to build out/gvisor-addon since it's built in the docker image 2019-08-08 11:28:40 -07:00
Priya Wadhwa cdbb2dd572 Updated gvisor test 2019-08-05 15:21:09 -07:00
Priya Wadhwa 24a2748af8 rebased, fixed merge conflicts 2019-08-05 13:53:23 -07:00
Priya Wadhwa f216fe68ad Check local daemon for cached image before checking remote repo 2019-08-05 13:07:47 -07:00
Medya Gh e6079dc358 final touch on parallel integration 2019-08-01 16:42:29 -07:00
Medya Gh 4b03e68366 making functional test not parallel 2019-08-01 14:36:46 -07:00
Medya Gh 4df651a4f8 fix download binary func 2019-08-01 13:44:57 -07:00
Medya Gh 5a5bec97dc detect profile name for all tests using profileName(t) 2019-08-01 12:44:41 -07:00
Medya Gh 3907c1564a remove util.go 2019-08-01 12:27:27 -07:00
Medya Gh c4951ec6a7 merge upstream master 2019-08-01 12:16:57 -07:00
Medya Gh 6b495f8cdb move download logic to TestDownloadOnly 2019-08-01 10:58:00 -07:00
Medya Gh 4be502826b move helpers to test file, remove more unused funcs 2019-08-01 10:39:59 -07:00
Medya Gh 00b41a794d remove unsed funcs 2019-08-01 09:58:43 -07:00
Medya Gh 0f8dcb6deb moving util func used by single test 2019-08-01 09:55:26 -07:00
Medya Gh c315178937 remove unused Copy func 2019-08-01 09:53:46 -07:00
Zoltán Reegn de27472759 Remove ingress-nginx default backend
It's not needed since nginx 0.20.0.

See the following pull-requests for context:
* https://github.com/kubernetes/ingress-nginx/pull/3126
* https://github.com/kubernetes/ingress-nginx/pull/3156
2019-08-01 09:51:30 -07:00
Medya Gh 59e6dc8f46 add more tear down and clean up 2019-08-01 00:31:38 -07:00
Medya Gh 270317b860 tweak 2019-07-31 23:05:43 -07:00
Medya Gh 4de8fe5aeb making parallel optional 2019-07-31 22:50:04 -07:00
Medya Gh 45430fddb0 faster retryX 2019-07-31 22:25:33 -07:00
Medya Gh f38292f61d combine gvisor tests to one 2019-07-31 21:28:52 -07:00
Medya Gh 5f16becbab handle minikube status retruning error for no good reason 2019-07-31 18:15:35 -07:00
Medya Gh b08a2d8f92 fix minikube runner status 2019-07-31 17:31:28 -07:00
Medya Gh 8f30c75b1f remove duplicate test 2019-07-31 16:58:34 -07:00
Medya Gh 5a80367e70 handle status error on none 2019-07-31 14:46:28 -07:00
Medya Gh d8dcc6d3ac fix check status 2019-07-31 13:53:56 -07:00
Medya Gh 14219e1967 fix minikube runner get status 2019-07-31 13:17:08 -07:00
Medya Gh 9170ee9c42 fix nil err 2019-07-31 12:10:12 -07:00
Medya Gh 43751a4f4a linting 2019-07-31 12:05:57 -07:00
Medya Gh 942921ed16 Getting rid of ensure running 2019-07-31 11:37:35 -07:00
Medya Gh 78e15577bd log stderr added retriable command 2019-07-31 11:32:49 -07:00
Medya Gh da5a2a3b0e adding exponential retry 2019-07-30 22:48:51 -07:00
Medya Gh 5fb29ebae7 refactor] 2019-07-30 16:36:53 -07:00
Medya Gh aee599f011 add hostname friendly testnames, improve download-only test 2019-07-30 15:38:46 -07:00
Medya Gh 3926125c76 Create a new run group for start_stop_delete tests 2019-07-30 13:20:44 -07:00
Medya Gh fe05e0d372 skipping proxy warnning 2019-07-30 11:50:06 -07:00
Medya Gh 9ee922e286 Proxy tear down none 2019-07-30 10:46:46 -07:00
Medya Gh ce27dba276 Added timeout for start 2019-07-30 10:45:52 -07:00
Medya Gh e94da73884 Fix zombie defuncts by not waiting for tear down 2019-07-30 10:45:44 -07:00
Medya Gh 4728165354 Add run group for defer paralell 2019-07-30 10:45:44 -07:00
Medya Gh 4c8ea939ab defer delete minikube in all tests 2019-07-30 10:45:31 -07:00
Medya Gh ff747089cc add minikube delete to all tests at the end 2019-07-30 10:45:22 -07:00
Medya Gh dabd0c41d4 get profile names automaticly from test names 2019-07-30 10:45:05 -07:00
Medya Gh e865c93fc9 move all starts to new start func 2019-07-30 10:45:05 -07:00
Medya Gh f104fc68e1 Rename all subset tests files 2019-07-30 10:44:54 -07:00
Medya Gh 050c7aedb3 add new helper for minikube runner fix proxy test
merge upstream commons
2019-07-30 10:44:21 -07:00
Medya Gh a9b18cdc94 Changed hardcoded testdata path 2019-07-30 10:44:21 -07:00
Medya Gh a63e6c3633 moving all containerd tests one file and fix profile 2019-07-30 10:44:12 -07:00
Medya Gh e3db9a41ba decouple isNoneDriver from minikube driver for more reusability 2019-07-30 10:43:47 -07:00
Medya Gh 25bc27e170 move file download logic to common.sh 2019-07-30 10:43:20 -07:00
Medya Gh 04144ca1d4 wait for dashboard 2019-07-30 10:43:10 -07:00
Medya Gh 9b3f72024a list vms after clean up 2019-07-30 10:42:55 -07:00
Medya Gh c6c84ab835 Add profile to test start stop 2019-07-30 10:42:42 -07:00
Medya Gh ab28a3ced1 # This is a combination of 5 commits.
# This is the 1st commit message:

organize integration tests files by type

# This is the commit message #2:

Adding separate profile for each kind of test

# This is the commit message #3:

Adding clean up to delete newly added TestVms

# This is the commit message #4:

goimport

# This is the commit message #5:

making them run in parallel
2019-07-30 10:40:38 -07:00
Medya Gh d47d51d8ab Adding optional set kubecontext 2019-07-30 10:40:25 -07:00
Medya Gh 59fd6df393 prepend instead of append for minikube runner 2019-07-30 10:40:11 -07:00
Medya Gh 29aa58df7e prepend kube-context instead of append 2019-07-30 10:40:11 -07:00
Medya Gh d1a41e0015 Added default profile 2019-07-30 10:40:11 -07:00
Medya Gh 43d1c66705 Added profile to kubectl_runner 2019-07-30 10:40:10 -07:00
Medya Gh 676ad09b12 Adding profile to minikube runner 2019-07-30 10:40:10 -07:00
Medya Gh a3eeb9e083 removing unused functions 2019-07-30 10:40:10 -07:00
Medya Gh f6e6d6ca55 moving minikube runner to its own file
Fix typo
2019-07-30 10:40:02 -07:00
Medya Gh 2367553316 moving commonutils to its own files 2019-07-30 09:53:32 -07:00
Medya Gh c6dbaf1ce7 moving KubectlRunner to its own file 2019-07-30 09:53:32 -07:00
Medya Gh aeaa5733f8 consistant naming for kubectl runner 2019-07-30 09:53:32 -07:00
Medya Gh 673b82a157 consistant naming for all minikube runners 2019-07-30 09:53:32 -07:00
Zoltán Reegn d1436b40fe Remove ingress-nginx default backend
It's not needed since nginx 0.20.0.

See the following pull-requests for context:
* https://github.com/kubernetes/ingress-nginx/pull/3126
* https://github.com/kubernetes/ingress-nginx/pull/3156
2019-07-30 09:32:02 +02:00
Sharif Elgamal 2bca6dccac
Fix minikube start args for integration tests (#4885)
I've been seeing errors like `Error running command: -p=TestPersistence start --vm-driver=hyperv --hyperv-virtual-switch=primary-virtual-switch --bootstrapper=kubeadm--wait=false --v=10 --logtostderr  --alsologtostderr --v=2 . Output: * minikube v1.2.0 on windows (amd64)` in my hyperV testing which means we need an extra space here.
2019-07-29 13:14:40 -07:00
Jose Donizetti fe00076341
Revert "Fix flag.Parse error logging" 2019-07-25 23:03:04 -03:00
Priya Wadhwa 876af77019 cache image before minikube start 2019-07-25 14:00:24 -07:00
Medya Gh 10f721fc0a add comment for lint 2019-07-25 13:25:52 -07:00
josedonizetti 6ccf62096e Add initflag to test binary 2019-07-25 14:37:37 -03:00
Medya Ghazizadeh 9f42df6209
Merge pull request #4811 from medyagh/add_profile_list_cmd
Add a new command (profile list)
2019-07-19 15:43:50 -07:00
Medya Gh 136aa61463 Added integeration tests for profile list 2019-07-19 11:31:00 -07:00
Thomas Stromberg caa2719b86 Reduce log noise in TestRegistry 2019-07-19 10:38:33 -07:00
Thomas Stromberg 56ae84b921 Refactor TestRegistry for new label configuration 2019-07-19 10:35:41 -07:00
Priya Wadhwa d243c30616 cache gvisor image 2019-07-17 15:25:30 -07:00
tstromberg 146b87158a Merge branch 'master' into faster-kubelet 2019-07-17 11:35:47 -07:00
Thomas Strömberg 1d567eabad
Merge pull request #4639 from castlemilk/registry-integration-tests
Added integration tests for registry
2019-07-17 09:56:04 -07:00
tstromberg 2d46f42e7b Omit --wait for the released version, as it does not support this new flag 2019-07-15 08:53:42 -07:00
tstromberg 9f2590752b Set --wait=false to more tests where appropriate 2019-07-12 17:03:41 -07:00
tstromberg 21ab32eaf8 Make GlobalArgs vs StartArgs more explicit 2019-07-12 16:57:23 -07:00
tstromberg 44c8dd52a8 Add --wait flag to allow users to skip pod health checks 2019-07-12 14:18:43 -07:00
Priya Wadhwa 065045e02a Save gvisor-image.tar in /files 2019-07-11 15:18:56 -07:00
Priya Wadhwa 1ec4012052 Merge branch 'master' of github.com:kubernetes/minikube into gvisor-image 2019-07-11 12:43:42 -07:00
Priya Wadhwa d68e054dfd Attempt to copy gvisor tar and load with ctr 2019-07-11 11:58:57 -07:00
Priya Wadhwa 3ffe2af1e4 Point docker daemon to minikube and rebuild docker image 2019-07-10 16:14:46 -07:00
Priya Wadhwa 1a49eecaf7 Upload gvisor-addon to integration tests bucket; build gvisor image from common.sh 2019-07-09 17:08:36 -07:00
Priya Wadhwa d2e5a4b052 build gvisor image locally in integration tests; add temporary error to make sure that image is used 2019-07-09 12:46:57 -07:00
Priya Wadhwa 5688e17d73 fix cmd directory 2019-07-08 17:11:54 -07:00
Priya Wadhwa a8f1ed7a26 Rebuild gvisor image for integration tests
We should rebuild the gvisor image for integration tests, so that if
changes are made to the gvisor image they are tested. I added an
environment variable that, when set, will change the expected gvisor
image repo.
2019-07-08 15:54:30 -07:00
Ben Ebsworth 39a136fdb9 fix raising fatal error on retryablehttp 2019-07-06 19:03:14 +10:00
Ben Ebsworth 8b2d1ec2e6 fixed registryEndpoint string 2019-07-06 18:52:40 +10:00
Ben Ebsworth 637262cea2 re-added int testds 2019-07-06 18:52:40 +10:00
Kyle Bai c5f695e8a0 Better comment syntax 2019-07-05 11:17:10 +08:00
Ben Ebsworth 05683a0d01 moved to using retryablehttp 2019-07-01 06:31:52 +10:00
Ben Ebsworth 6fa12ea036 fixed linting 2019-06-29 21:33:19 +10:00
Jose Donizetti ad97983d9e # This is a combination of 8 commits.
# This is the 1st commit message:

Fix doc comment version.gitCommitID doc


# This is the commit message #2:

Add hyperkit doc


# This is the commit message #3:

Add commit id to docker-machine-driver-kvm2 version


# This is the commit message #4:

removed label selector for registry-proxy daemonset

# This is the commit message #5:

Add support to custom qemu uri on kvm2 driver


# This is the commit message #6:

Improve hyperkit vm stop


# This is the commit message #7:

Make virtualbox DNS settings configurable 


# This is the commit message #8:

added integration tests for registry addon
2019-06-29 18:27:47 +10:00
Jose Donizetti 9dfe660c64 Add support to custom qemu uri on kvm2 driver 2019-06-28 14:12:58 -07:00
Medya Ghazizadeh e0c20a4202
Merge pull request #4558 from afbjorklund/reportcard-new
Fix the reportcard: gofmt, golint and gocyclo
2019-06-24 11:44:42 -07:00
Thomas Stromberg 7d394fa597 Add missing import and parens 2019-06-24 11:42:05 +08:00
Thomas Stromberg a9ec145bcb Allow --kubernetes-version to be specified without the leading v 2019-06-24 10:29:09 +08:00
Anders F Björklund f20f223c02 Decrease cyclomatic complexity
Here is the report (from gocyclo), before:

21 tests (*SSHServer).Start pkg/minikube/tests/ssh_mock.go:76:1
19 cmd runStart cmd/minikube/cmd/start.go:173:1
18 integration testTunnel test/integration/tunnel_test.go:40:1
17 extract checkCallExpression pkg/minikube/extract/extract.go:198:1
17 kubeadm TestGenerateConfig pkg/minikube/bootstrapper/kubeadm/kubeadm_test.go:133:1
16 kvm (*Driver).deleteNetwork pkg/drivers/kvm/network.go:153:1
2019-06-22 17:21:42 +02:00
Sharif Elgamal 44856928f6
Merge pull request #4474 from medyagh/4418_fixTestVersionUpgrade
adding retriable http get
2019-06-14 10:09:46 -07:00
Medya Gh 657469310c Use retryable http to avoid connection flakes 2019-06-13 22:58:14 -07:00
Y.Horie 8c88558cb0 Fix busybox version in integration tests
Fixes https://github.com/kubernetes/minikube/issues/4475 related to this https://github.com/docker-library/busybox/issues/48
2019-06-13 22:30:27 -07:00
Medya Gh 68b5ed9916 check error 2019-06-12 11:15:34 -07:00
Medya Gh d3855d4b09 adding retriable http get 2019-06-12 10:44:04 -07:00
Medya Gh c58a3b63db Fixing filepath to be os agnostic 2019-06-05 19:31:50 -07:00
Medya Gh b9ecd558e8 fixing file path for windows 2019-06-05 16:58:52 -07:00
Medya Gh 15cc4f8a64 Adding non-parallel dashboard test for proxy 2019-06-03 19:22:26 -07:00
Medya Gh ed8d55c64a Fixing TestProxy Setup
making sure minikube is deleted before setup to avoid https://github.com/kubernetes/minikube/issues/4132
2019-06-03 19:14:05 -07:00
josedonizetti c7bace6903 Fix --kvm-network integration test 2019-05-23 02:30:21 -03:00
josedonizetti a20d789613 Improve --kvm-network integration test
Change the network to test-net to avoid conflicts.
2019-05-22 18:03:15 -03:00
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