Skip to content

Commit afc9dad

Browse files
committed
replace custom loopback dns address for cfnetworking
1 parent da00f32 commit afc9dad

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

api/cfnetworking/networking_connection_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,17 +197,17 @@ var _ = Describe("CF Networking Connection", func() {
197197
connection = NewConnection(Config{})
198198
})
199199

200-
// loopback.cli.fun is a custom DNS record setup to point to 127.0.0.1
200+
// 127.0.0.1.nip.io is a custom DNS record setup to point to 127.0.0.1
201201
It("returns a SSLValidationHostnameError", func() {
202-
altHostURL := strings.Replace(server.URL(), "127.0.0.1", "loopback.cli.fun", -1)
202+
altHostURL := strings.Replace(server.URL(), "127.0.0.1", "127.0.0.1.nip.io", -1)
203203
req, err := http.NewRequest(http.MethodGet, altHostURL, nil)
204204
Expect(err).ToNot(HaveOccurred())
205205
request := &Request{Request: req}
206206

207207
var response Response
208208
err = connection.Make(request, &response)
209209
Expect(err).To(MatchError(networkerror.SSLValidationHostnameError{
210-
Message: "x509: certificate is valid for example.com, not loopback.cli.fun",
210+
Message: "x509: certificate is valid for example.com, not 127.0.0.1.nip.io",
211211
}))
212212
})
213213
})

0 commit comments

Comments
 (0)