cluster/tools/kartongips: init
This forks bitnami/kubecfg into kartongips. The rationale is that we
want to implement hscloud-specific functionality that wouldn't really be
upstreamable into kubecfg (like secret support, mulit-cluster support).
We forked off from github.com/q3k/kubecfg at commit b6817a94492c561ed61a44eeea2d92dcf2e6b8c0.
Change-Id: If5ba513905e0a86f971576fe7061a471c1d8b398
diff --git a/cluster/tools/kartongips/cmd/completion_test.go b/cluster/tools/kartongips/cmd/completion_test.go
new file mode 100644
index 0000000..1334aa2
--- /dev/null
+++ b/cluster/tools/kartongips/cmd/completion_test.go
@@ -0,0 +1,19 @@
+package cmd
+
+import (
+ "testing"
+)
+
+func TestGuessShell(t *testing.T) {
+ t.Parallel()
+
+ for _, test := range [][]string{
+ {"/bin/bash", "bash"},
+ {"/usr/bin/zsh", "zsh"},
+ {"/usr/bin/zsh5", "zsh"},
+ } {
+ if result := guessShell(test[0]); result != test[1] {
+ t.Errorf("Guessed %q instead of %q from %q", result, test[1], test[0])
+ }
+ }
+}