Blame lenses/tests/test_resolv.aug
|
Packit Service |
a2ae7a |
module Test_resolv =
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
let conf = "# Sample resolv.conf
|
|
Packit Service |
a2ae7a |
; With multiple comment styles
|
|
Packit Service |
a2ae7a |
nameserver 192.168.0.3 # and EOL comments
|
|
Packit Service |
a2ae7a |
nameserver ff02::1
|
|
Packit Service |
a2ae7a |
domain mynet.com # and EOL comments
|
|
Packit Service |
a2ae7a |
search mynet.com anotherorg.net
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# A sortlist now
|
|
Packit Service |
a2ae7a |
sortlist 130.155.160.0/255.255.240.0 130.155.0.0
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
options ndots:3 debug timeout:2
|
|
Packit Service |
a2ae7a |
options no-ip6-dotint single-request-reopen # and EOL comments
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
lookup file bind
|
|
Packit Service |
a2ae7a |
family inet6 inet4
|
|
Packit Service |
a2ae7a |
"
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
test Resolv.lns get conf =
|
|
Packit Service |
a2ae7a |
{ "#comment" = "Sample resolv.conf" }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "With multiple comment styles" }
|
|
Packit Service |
a2ae7a |
{ "nameserver" = "192.168.0.3"
|
|
Packit Service |
a2ae7a |
{ "#comment" = "and EOL comments" } }
|
|
Packit Service |
a2ae7a |
{ "nameserver" = "ff02::1" }
|
|
Packit Service |
a2ae7a |
{ "domain" = "mynet.com"
|
|
Packit Service |
a2ae7a |
{ "#comment" = "and EOL comments" } }
|
|
Packit Service |
a2ae7a |
{ "search"
|
|
Packit Service |
a2ae7a |
{ "domain" = "mynet.com" }
|
|
Packit Service |
a2ae7a |
{ "domain" = "anotherorg.net" } }
|
|
Packit Service |
a2ae7a |
{}
|
|
Packit Service |
a2ae7a |
{ "#comment" = "A sortlist now" }
|
|
Packit Service |
a2ae7a |
{ "sortlist"
|
|
Packit Service |
a2ae7a |
{ "ipaddr" = "130.155.160.0"
|
|
Packit Service |
a2ae7a |
{ "netmask" = "255.255.240.0" } }
|
|
Packit Service |
a2ae7a |
{ "ipaddr" = "130.155.0.0" } }
|
|
Packit Service |
a2ae7a |
{}
|
|
Packit Service |
a2ae7a |
{ "options"
|
|
Packit Service |
a2ae7a |
{ "ndots" = "3" }
|
|
Packit Service |
a2ae7a |
{ "debug" }
|
|
Packit Service |
a2ae7a |
{ "timeout" = "2" } }
|
|
Packit Service |
a2ae7a |
{ "options"
|
|
Packit Service |
a2ae7a |
{ "ip6-dotint"
|
|
Packit Service |
a2ae7a |
{ "negate" } }
|
|
Packit Service |
a2ae7a |
{ "single-request-reopen" }
|
|
Packit Service |
a2ae7a |
{ "#comment" = "and EOL comments" } }
|
|
Packit Service |
a2ae7a |
{}
|
|
Packit Service |
a2ae7a |
{ "lookup"
|
|
Packit Service |
a2ae7a |
{ "file" }
|
|
Packit Service |
a2ae7a |
{ "bind" } }
|
|
Packit Service |
a2ae7a |
{ "family"
|
|
Packit Service |
a2ae7a |
{ "inet6" }
|
|
Packit Service |
a2ae7a |
{ "inet4" } }
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
test Resolv.ip6_dotint
|
|
Packit Service |
a2ae7a |
put "ip6-dotint"
|
|
Packit Service |
a2ae7a |
after set "/ip6-dotint/negate" "" = "no-ip6-dotint"
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
test Resolv.lns get "; \r\n; \t \n" = { } { }
|