HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //snap/certbot/current/usr/share/augeas/lenses/dist/tests/test_tinc.aug
module Test_tinc =

let lns = Tinc.lns

test lns get "Subnet = 10.1.4.5\n" = { "Subnet" = "10.1.4.5" }
test lns get "foo = bar\n" = { "foo" = "bar" }
test lns get "foo bar\n" = { "foo" = "bar" }
test lns get "foo  bar\n" = { "foo" = "bar" }

test lns get
"-----BEGIN RSA PUBLIC KEY-----
abcde
-----END RSA PUBLIC KEY-----" = { "#key" = "abcde" }

test lns get "foo = bar\nbar = baz\n" =
  { "foo" = "bar" }
  { "bar" = "baz" }

test lns get
"foo = bar

-----BEGIN RSA PUBLIC KEY-----
bar
-----END RSA PUBLIC KEY-----" =
  { "foo" = "bar" }
  {  }
  { "#key" = "bar" }


(*
test lns get
"-----BEGIN RSA PUBLIC KEY-----
foo
-----END RSA PUBLIC KEY-----

-----BEGIN RSA PUBLIC KEY-----
bar
-----END RSA PUBLIC KEY-----
" = ?
*)