aboutsummaryrefslogtreecommitdiffstats
path: root/src/kube2msb
diff options
context:
space:
mode:
authorLvbo163 <lv.bo163@zte.com.cn>2018-03-06 10:50:40 +0800
committerLvbo163 <lv.bo163@zte.com.cn>2018-03-06 10:50:40 +0800
commite25b8ef306bb1a8beb649ef3d30138f8a4528bda (patch)
tree2c87335c54bdee539f68a6cf6dfb05ddeca0d22d /src/kube2msb
parent778089700e2bcd51877b8793f86b7589bad5da4e (diff)
add ut for removePod of msb
Issue-ID: MSB-176 Change-Id: Iacf002a7ebda635989320a81be83700ec30bcf37 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
Diffstat (limited to 'src/kube2msb')
-rw-r--r--src/kube2msb/msb_work_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kube2msb/msb_work_test.go b/src/kube2msb/msb_work_test.go
index c3602a1..d234a38 100644
--- a/src/kube2msb/msb_work_test.go
+++ b/src/kube2msb/msb_work_test.go
@@ -152,6 +152,10 @@ func TestRemoveServiceMsb(t *testing.T) {
removeServiceOrPodTest(t, "Service")
}
+func TestRemovePodMsb(t *testing.T) {
+ removeServiceOrPodTest(t, "Pod")
+}
+
func TestMergeIP(t *testing.T) {
cases := []struct{ ip, sInfo, want string }{
{"127.0.0.1", "{}", "{\"ip\":\"127.0.0.1\",}"},