Commit Graph

28 Commits (51a3155cfd4512b6f1f5130e229dcf01c7846a96)

Author SHA1 Message Date
ZouYu 1b2707d086 Add unit test for function ChownR&MaybeChownDirRecursiveToMinikubeUser
Signed-off-by: ZouYu <zouy.fnst@cn.fujitsu.com>
2020-04-22 10:06:57 +08:00
Vincent Link b5d5aa1d52 Parse --disk-size and --memory sizes with binary suffixes 2020-03-24 17:20:59 +01:00
Thomas Strömberg a29c5739ab
Merge pull request #6988 from tstromberg/v1.18.0-beta
Update NewestKubernetesVersion to 1.18.0-beta.2
2020-03-11 17:00:35 -07:00
Thomas Stromberg 71a22787c3 Update Kubernetes image mapping to match v1.18 2020-03-10 20:48:38 -07:00
Thomas Stromberg c6333b95aa Test fixes: Add viper.SetDefault back, and make CalculateSizeInMB return an error instead of exit early 2020-03-10 17:43:56 -07:00
tstromberg 6f6663ec77 Make filesync unit tests excellent again 2020-02-04 15:06:43 -08:00
Zhou Hao d864ac3f04 pkg/util: add CalculateSizeInMB test
Signed-off-by: zhouhao <zhouhao@cn.fujitsu.com>
2019-12-19 18:36:05 +08:00
Medya Gh eaa01716ea move unit tests from util to command_runner 2019-10-02 15:56:21 -07:00
Medya Gh fb24d04fef remove unused code 2019-08-14 00:35:39 -07:00
Medya Gh f17f3408a8 convert all RetryAfter to retry.Expo 2019-08-13 23:48:30 -07:00
tstromberg 22ae10c267 Remove unused getTestArgs struct 2019-07-18 18:17:19 -07:00
tstromberg 14c67d46a5 Remove TestParseSHAFromURL (not well isolated, takes 30 seconds) 2019-07-18 18:12:28 -07:00
tstromberg 9a9f9edf5f First pass at lint-ageddon 2019-05-13 18:31:55 -07:00
Jan Janik e3cd27264d Escape systemd special chars in —docker-env 2019-03-29 16:56:51 +13:00
Anders F Björklund 46640cef68 Address all lint except undocumented and stutter
These two lint warnings still remain, after the cleanup:
"exported ... should have comment or be unexported"

"type name will be used as foo.FooBar by other packages,
 and that stutters; consider calling this Bar"
2019-03-02 22:03:55 +01: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 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
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
Budh Ram Gurung 68285d1779 Refactor get download url for minikube 2018-02-12 13:15:06 +05:30
Aaron Prindle 68973786d6 Added test coverage for ParseSHAFromURL 2017-02-21 21:33:40 -08: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
aprindle 7e78514174 Added opt in to stackdriver error reporting 2016-10-03 09:22:30 -07:00
Aaron Prindle 3fcfb67f58 Added error reporting functionality and testing. 2016-09-13 11:18:25 -07:00
Aaron Prindle dab3190fef Changed minikube code to use pkg/errors, this is to improve error
messages to allow for stacktraces for future error-reporting. Added
error messages to .Wrap errors.
2016-09-08 14:59:35 -07:00
Dan Lorenc b85a90702a Return a MultiError from retry. 2016-08-06 12:29:56 -07:00
Aaron Prindle 1a89345b4c Added tests for GetLocalkubeDownloadURL. 2016-08-03 08:58:18 -07:00
dlorenc 0ff6bbfa17 Add a retry utility to util, and use it to retry cluster creation.
This fixes the phantom errors we see on ubuntu that are fixed by rerunning start.
2016-06-01 13:53:09 -07:00