kubectx/test
peter woodman ff2f9661a2
stop using XDG_CACHE_HOME as home directory (#299)
* stop using XDG_CACHE_HOME as home directory

XDG_CACHE_HOME is not a substitute for $HOME, see [1].

[1]: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

* fix bats testing setup/teardown

since cmdutil.Homedir() would treat $XDG_CACHE_HOME as $HOME, deleting
$XDG_CACHE_HOME would wipe out previous kubens state. now that we're not
doing that, we need to make a real synthetic $HOME and clear it out so
that $HOME/.kube/kubens doesn't persist between runs.
2021-05-28 16:09:32 -07:00
..
testdata test: Add more kubectx tests (#111) 2018-12-25 11:38:45 -08:00
common.bash stop using XDG_CACHE_HOME as home directory (#299) 2021-05-28 16:09:32 -07:00
kubectx.bats do not fail on non-existing kubeconfig files 2020-04-29 12:52:56 -07:00
kubens.bats kubens add a short-circuit to bypass API call for tests 2020-04-29 12:52:56 -07:00
mock-kubectl add cli tests for kubens (#117) 2019-01-03 10:06:13 -08:00