By("deleting service "+serviceName1+" to release NodePort")
By("deleting service "+serviceName1+" to release NodePort")
err=t.DeleteService(serviceName1)
err=t.DeleteService(serviceName1)
...
@@ -707,8 +706,8 @@ var _ = Describe("Services", func() {
...
@@ -707,8 +706,8 @@ var _ = Describe("Services", func() {
iferr==nil{
iferr==nil{
Failf("failed to prevent update of service with out-of-range NodePort: %v",result)
Failf("failed to prevent update of service with out-of-range NodePort: %v",result)
}
}
expectedErr:=fmt.Sprintf("Service \"%s\" is invalid: spec.ports[0].nodePort: Invalid value: %d: provided port is not in the valid range",serviceName,outOfRangeNodePort)
expectedErr:=fmt.Sprintf("%d.*port is not in the valid range",outOfRangeNodePort)