aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/kube2msb/kube2msb_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/kube2msb/kube2msb_test.go b/src/kube2msb/kube2msb_test.go
index 63efd8e..a71c035 100644
--- a/src/kube2msb/kube2msb_test.go
+++ b/src/kube2msb/kube2msb_test.go
@@ -205,3 +205,18 @@ func TestRunBookKeeper(t *testing.T) {
}
}
}
+
+func TestNewKubeClient(t *testing.T) {
+ url := "http://192.168.1.2"
+ argKubeMasterUrl = &url
+ _, err := newKubeClient()
+ if err != nil {
+ t.Errorf("newKubeClient() error")
+ }
+
+ os.Setenv("AUTH_TOKEN", "autoToken1")
+ _, err2 := newKubeClient()
+ if err2 != nil {
+ t.Errorf("newKubeClient() error")
+ }
+}