From e25b8ef306bb1a8beb649ef3d30138f8a4528bda Mon Sep 17 00:00:00 2001 From: Lvbo163 Date: Tue, 6 Mar 2018 10:50:40 +0800 Subject: add ut for removePod of msb Issue-ID: MSB-176 Change-Id: Iacf002a7ebda635989320a81be83700ec30bcf37 Signed-off-by: Lvbo163 --- src/kube2msb/msb_work_test.go | 4 ++++ 1 file changed, 4 insertions(+) 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\",}"}, -- cgit 1.2.3-korg