6b331fdf03
It's a little tricky to find a balance between "brittle" and "thorough" in this test--I'd like to verify that e.g. the certificate is in clusters[0].cluster.certificate-authority-data, not at the root. On the other hand, we can't actually show that it's a valid kubeconfig file without actually *using* it, so there's a hard upper limit on the strength of the assertions. I've settled on verifying that all the settings make it into the file and the file is syntactically-valid yaml. |
||
---|---|---|
.. | ||
cmd.go | ||
cmd_test.go | ||
config.go | ||
help.go | ||
help_test.go | ||
initkube.go | ||
initkube_test.go | ||
lint.go | ||
lint_test.go | ||
uninstall.go | ||
uninstall_test.go | ||
upgrade.go | ||
upgrade_test.go |