Lines Matching full:host
49 SECTION("complex host name without special characters") {
50 const auto str = "some.host.domain"s;
58 SECTION("complex host name with special characters") {
59 const auto str = "some-mul.host-32.domain."s;
92 const auto host = "::"s; variable
93 const auto str = "[" + host + "]";
96 REQUIRE(sc.chost == host);
102 const auto host = "::1"s; variable
103 const auto str = "[" + host + "]";
106 REQUIRE(sc.chost == host);
112 const auto host = "fc00:0:12::1"s; variable
113 const auto str = "[" + host + "]";
116 REQUIRE(sc.chost == host);
122 const auto host = "fc00:0:1x::1"s; variable
123 const auto str = "[" + host + "]";
125 REQUIRE(sc.error == host + ": Name does not resolve");
128 const auto host = "fc00::0:12::1"s; variable
129 const auto str = "[" + host + "]";
131 REQUIRE(sc.error == host + ": Name does not resolve");
134 const auto host = "1:2:3:4:5:6:7:8:9"s; variable
135 const auto str = "[" + host + "]";
137 REQUIRE(sc.error == host + ": Name does not resolve");
140 const auto host = "::"s; variable
141 const auto str = "[" + host + "]" + "xxx";
152 const auto host = "somehost"s; variable
154 const auto str = host + ":" + port;
157 REQUIRE(sc.chost == host);
163 const auto host = "somehost"s; variable
165 const auto str = host + ":" + port;
168 REQUIRE(sc.chost == host);
174 const auto host = "somehost:foo"s; variable
176 const auto str = host + ":" + port;
179 REQUIRE(sc.chost == host);
185 const auto host = "bla.blub:foo.baz."s; variable
187 const auto str = host + ":" + port;
190 REQUIRE(sc.chost == host);
196 const auto host = "somehost"s; variable
198 const auto str = host + ":" + port;
209 const auto host = "::"s; variable
211 const auto str = "[" + host + "]:" + port;
214 REQUIRE(sc.chost == host);
220 const auto host = "::1"s; variable
222 const auto str = "[" + host + "]:" + port;
225 REQUIRE(sc.chost == host);
231 const auto host = "fc00:00:01::2:3"s; variable
233 const auto str = "[" + host + "]:" + port;
244 const auto host = "127"s; variable
245 const auto str = host;
248 REQUIRE(sc.chost == host);
254 const auto host = "127.1"s; variable
255 const auto str = host;
258 REQUIRE(sc.chost == host);
264 const auto host = "127.23.1"s; variable
265 const auto str = host;
268 REQUIRE(sc.chost == host);
274 const auto host = "127.18.23.1"s; variable
275 const auto str = host;
278 REQUIRE(sc.chost == host);
284 const auto host = "0300.077.0377.01"s; variable
285 const auto str = host;
288 REQUIRE(sc.chost == host);
294 const auto host = "x80.x12.xff.x1"s; variable
295 const auto str = host;
298 REQUIRE(sc.chost == host);
309 SECTION("udp and host") {
311 const auto host = "somehost"s; variable
312 const auto str = trans + "::" + host;
315 REQUIRE(sc.chost == host);
322 const auto host = "240.0.1.2"s; variable
323 const auto str = trans + "::" + host;
326 REQUIRE(sc.chost == host);
331 SECTION("udp6 and host") {
333 const auto host = "somehost"s; variable
334 const auto str = trans + "::" + host;
337 REQUIRE(sc.chost == host);
344 const auto host = "fec0:0:2::17"s; variable
345 const auto str = trans + "::[" + host + "]";
348 REQUIRE(sc.chost == host);
353 SECTION("dgram and host") {
355 const auto host = "somehost"s; variable
356 const auto str = trans + "::" + host;
359 REQUIRE(sc.chost == host);
364 SECTION("stream and host") {
366 const auto host = "somehost"s; variable
367 const auto str = trans + "::" + host;
370 REQUIRE(sc.chost == host);
375 SECTION("unknown transport and host") {
377 const auto host = "somehost"s; variable
378 const auto str = trans + "::" + host;
382 SECTION("empty transport and host") {
384 const auto host = "somehost"s; variable
385 const auto str = trans + "::" + host;
391 TEST_CASE("snmp_parse_server: transport, host and port", "[snmp_parse_server]") {
395 SECTION("udp, host and port") {
397 const auto host = "somehost"s; variable
399 const auto str = trans + "::" + host + ":" + port;
402 REQUIRE(sc.chost == host);
407 SECTION("udp, host with colon and port") {
409 const auto host = "somehost:foo"s; variable
411 const auto str = trans + "::" + host + ":" + port;
414 REQUIRE(sc.chost == host);
421 const auto host = ""s; variable
423 const auto str = trans + "::" + host + ":" + port;
426 REQUIRE(sc.chost == host);
433 const auto host = "::1:2"s; variable
435 const auto str = trans + "::[" + host + "]:" + port;
438 REQUIRE(sc.chost == host);
445 TEST_CASE("snmp_parse_server: community and host", "[snmp_parse_server]")
450 SECTION("community and host") {
452 const auto host = "server.com"s; variable
453 const auto str = comm + "@" + host;
456 REQUIRE(sc.chost == host);
461 SECTION("community with @ and host") {
463 const auto host = "server.com"s; variable
464 const auto str = comm + "@" + host;
467 REQUIRE(sc.chost == host);
472 SECTION("empty community and host") {
474 const auto host = "server.com"s; variable
475 const auto str = comm + "@" + host;
478 REQUIRE(sc.chost == host);
485 TEST_CASE("snmp_parse_server: transport, community, host and port", "[snmp_parse_server]")
490 SECTION("transport, community, host and numeric port") {
493 const auto host = "server.com"s; variable
495 const auto str = trans + "::" + comm + "@" + host + ":" + port;
498 REQUIRE(sc.chost == host);
506 const auto host = "127.1"s; variable
508 const auto str = trans + "::" + comm + "@" + host + ":" + port;
511 REQUIRE(sc.chost == host);
519 const auto host = "fe80::1:2"s; variable
521 const auto str = trans + "::" + comm + "@[" + host + "]:" + port;
524 REQUIRE(sc.chost == host);