- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for expectedHosts (0.23 sec)
-
okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt
requestedHosts.add(hostname) return hostAddresses[hostname] ?: throw UnknownHostException() } fun assertRequests(vararg expectedHosts: String?) { assertThat(requestedHosts).containsExactly(*expectedHosts) requestedHosts.clear() } /** Allocates and returns `count` fake IPv4 addresses like [255.0.0.100, 255.0.0.101]. */ fun allocate(count: Int): List<InetAddress> {
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.6K bytes - Viewed (0) -
pilot/pkg/model/gateway_test.go
mgw := MergeGateways(instances, &Proxy{}, nil) hosts := mgw.GetAutoPassthrughGatewaySNIHosts() expectedHosts := sets.Set[string]{} expectedHosts.InsertAll("a.apps.svc.cluster.local", "b.apps.svc.cluster.local") if !hosts.Equals(expectedHosts) { t.Errorf("expected to get: [a.apps.svc.cluster.local,b.apps.svc.cluster.local], got: %s", hosts.String()) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 02:36:23 UTC 2024 - 9K bytes - Viewed (0) -
cmd/net_test.go
testCases := []struct { hostPort string expectedHost string expectedPort string }{ {":54321", "", "54321"}, {"server:54321", "server", "54321"}, {":0", "", "0"}, {"server:https", "server", "443"}, {"server:http", "server", "80"}, } for _, testCase := range testCases { host, port := mustSplitHostPort(testCase.hostPort) if testCase.expectedHost != host {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 19 08:43:09 UTC 2024 - 9.3K bytes - Viewed (0)