Skip to content

Commit 3293572

Browse files
authored
lca ipc: update the dns validation (#1357)
This change follows the upstream Kubernetes apimachinery update that now passes the real value to field.Invalid(), resulting in error messages like Invalid value: "192.168.130.261" instead of Invalid value: "string". Signed-off-by: Alexander Chuzhoy <achuzhoy@redhat.com>
1 parent 9711cce commit 3293572

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/lca/ipchange/tests/ipconfig-test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ var _ = Describe(
107107
return err
108108
}),
109109
Entry("Validates input for dnsServers list entry in the IPConfig spec", reportxml.ID("88106"),
110-
"spec.dnsServers[0]: Invalid value: \"string\": must be a valid IP address",
110+
"spec.dnsServers[0]: Invalid value: \""+string(tsparams.BadIPv4Address)+"\": must be a valid IP address",
111111
func(builder *lca.IPConfigBuilder) error {
112112
builder.Definition.Spec.DNSServers = []lcaipcv1.IPAddress{tsparams.BadIPv4Address}
113113

0 commit comments

Comments
 (0)