HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //usr/share/augeas/lenses/dist/tests/test_backuppchosts.aug
module Test_BackupPCHosts =

let conf = "host        dhcp    user      moreUsers
hostname1     0     user1     anotheruser,athirduser
hostname2     1     user2     stillanotheruser\n"

test BackupPCHosts.lns get conf =
  { "1"
    { "host" = "host" }
    { "dhcp" = "dhcp" }
    { "user" = "user" }
    { "moreusers" = "moreUsers" }
  }
  { "2"
    { "host" = "hostname1" }
    { "dhcp" = "0" }
    { "user" = "user1" }
    { "moreusers" = "anotheruser" }
    { "moreusers" = "athirduser" }
  }
  { "3"
    { "host" = "hostname2" }
    { "dhcp" = "1" }
    { "user" = "user2" }
    { "moreusers" = "stillanotheruser" }
  }