aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/kube2msb/kube2msb_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/kube2msb/kube2msb_test.go b/src/kube2msb/kube2msb_test.go
index 3a4e3d9..435fb3f 100644
--- a/src/kube2msb/kube2msb_test.go
+++ b/src/kube2msb/kube2msb_test.go
@@ -48,7 +48,7 @@ func urlFormateValidate(t *testing.T, method string) {
if method == "getMSBUrl" {
argMSBUrl = &c.in
got, _ = getMSBUrl()
- } else {
+ } else if method == "getKubeMasterUrl" {
argKubeMasterUrl = &c.in
got, _ = getKubeMasterUrl()
}
@@ -58,6 +58,11 @@ func urlFormateValidate(t *testing.T, method string) {
}
}
}
+
func TestGetMSBUrl(t *testing.T) {
urlFormateValidate(t, "getMSBUrl")
}
+
+func TestGetKubeMasterUrl(t *testing.T) {
+ urlFormateValidate(t, "getKubeMasterUrl")
+}