mirror of
https://github.com/FairwindsOps/polaris.git
synced 2026-05-11 11:47:12 +00:00
fix network mssg wording
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user