Use same /24 network for testing immutable field update (#2213)

This commit is contained in:
jannfis 2019-08-23 19:56:44 +02:00 committed by Alex Collins
parent 16883df273
commit 43a333d3a6

View file

@ -66,8 +66,8 @@ func TestImmutableChange(t *testing.T) {
text := errors.FailOnErr(fixture.Run(".", "kubectl", "get", "service", "-n", "kube-system", "kube-dns", "-o", "jsonpath={.spec.clusterIP}")).(string)
parts := strings.Split(text, ".")
n := rand.Intn(254)
ip1 := fmt.Sprintf("%s.%s.10.%d", parts[0], parts[1], n)
ip2 := fmt.Sprintf("%s.%s.10.%d", parts[0], parts[1], n+1)
ip1 := fmt.Sprintf("%s.%s.%s.%d", parts[0], parts[1], parts[2], n)
ip2 := fmt.Sprintf("%s.%s.%s.%d", parts[0], parts[1], parts[2], n+1)
Given(t).
Path("service").
When().