From 97844d552bc3bb8b5f3ad6e0447543ac46463648 Mon Sep 17 00:00:00 2001 From: jessicagreben Date: Wed, 13 Feb 2019 14:51:12 -0800 Subject: [PATCH] fix network mssg wording --- pkg/validator/container.go | 2 +- pkg/validator/pod.go | 8 ++++---- pkg/validator/pod_test.go | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pkg/validator/container.go b/pkg/validator/container.go index cc403866..293d65e0 100644 --- a/pkg/validator/container.go +++ b/pkg/validator/container.go @@ -151,6 +151,6 @@ func (cv *ContainerValidation) validateHostPort(conf conf.HostNetworking) { return } } - cv.addSuccess("Host port should not be configured") + cv.addSuccess("Host port is not configured") } } diff --git a/pkg/validator/pod.go b/pkg/validator/pod.go index 22dc3284..95b87258 100644 --- a/pkg/validator/pod.go +++ b/pkg/validator/pod.go @@ -123,7 +123,7 @@ func (pv *PodValidation) hostAlias(conf conf.HostNetworking) { return } } - pv.addSuccess("Host alias should not be configured") + pv.addSuccess("Host alias is not configured") } } @@ -133,7 +133,7 @@ func (pv *PodValidation) hostIPC(conf conf.HostNetworking) { pv.addFailure("Host IPC is configured, but it shouldn't be") return } - pv.addSuccess("Host IPC should not be configured") + pv.addSuccess("Host IPC is not configured") } } @@ -143,7 +143,7 @@ func (pv *PodValidation) hostPID(conf conf.HostNetworking) { pv.addFailure("Host PID is configured, but it shouldn't be") return } - pv.addSuccess("Host PID should not be configured") + pv.addSuccess("Host PID is not configured") } } @@ -153,6 +153,6 @@ func (pv *PodValidation) hostNetwork(conf conf.HostNetworking) { pv.addFailure("Host network is configured, but it shouldn't be") return } - pv.addSuccess("Host network sould not be configured") + pv.addSuccess("Host network is not configured") } } diff --git a/pkg/validator/pod_test.go b/pkg/validator/pod_test.go index a288d88e..7897ac0f 100644 --- a/pkg/validator/pod_test.go +++ b/pkg/validator/pod_test.go @@ -31,10 +31,10 @@ func TestValidatePod(t *testing.T) { } expectedMssgs := []ResultMessage{ - ResultMessage{Message: "Host alias should not be configured", Type: "success"}, - ResultMessage{Message: "Host IPC should not be configured", Type: "success"}, - ResultMessage{Message: "Host PID should not be configured", Type: "success"}, - ResultMessage{Message: "Host network sould not be configured", Type: "success"}, + ResultMessage{Message: "Host alias is not configured", Type: "success"}, + ResultMessage{Message: "Host IPC is not configured", Type: "success"}, + ResultMessage{Message: "Host PID is not configured", Type: "success"}, + ResultMessage{Message: "Host network is not configured", Type: "success"}, } actualRR := ValidatePod(c, &pod.Spec)