test_httpd.aug

Summary
test_httpd.aug
Augeas Tests
Httpd.lnsNewlines inside quoted value (GH issue #104)
Httpd.lnsSupport >= in tags (GH #154)

Augeas Tests

Httpd.lns

test Httpd.lns get "Single 'Foo\\ bar' Double \"Foo\\ bar\"\n" = { "directive" = "Single" { "arg" = "'Foo\\\nbar'" } } { "directive" = "Double" { "arg" = "\"Foo\\\nbar\"" } }

Newlines inside quoted value (GH issue #104)

Httpd.lns

let versioncheck = " <IfVersion = 2.1> <IfModule !proxy_ajp_module> LoadModule proxy_ajp_module modules/mod_proxy_ajp.so </IfModule> </IfVersion> <IfVersion >= 2.4> <IfModule !proxy_ajp_module> LoadModule proxy_ajp_module modules/mod_proxy_ajp.so </IfModule> </IfVersion> " test Httpd.lns get versioncheck = { } { "IfVersion" { "arg" = "=" } { "arg" = "2.1" } { "IfModule" { "arg" = "!proxy_ajp_module" } { "directive" = "LoadModule" { "arg" = "proxy_ajp_module" } { "arg" = "modules/mod_proxy_ajp.so" } } } } {} { "IfVersion" { "arg" = ">=" } { "arg" = "2.4" } { "IfModule" { "arg" = "!proxy_ajp_module" } { "directive" = "LoadModule" { "arg" = "proxy_ajp_module" } { "arg" = "modules/mod_proxy_ajp.so" } } } }

Support >= in tags (GH #154)

test Httpd.lns get "Single 'Foo\\ bar' Double \"Foo\\ bar\"\n" = { "directive" = "Single" { "arg" = "'Foo\\\nbar'" } } { "directive" = "Double" { "arg" = "\"Foo\\\nbar\"" } }
Newlines inside quoted value (GH issue #104)
Close