/usr/share/augeas/lenses/dist/tests/test_puppetfile.aug is in augeas-lenses 1.10.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | (*
Module: Test_Puppetfile
Provides unit tests and examples for the <Puppetfile> lens.
*)
module Test_Puppetfile =
(* Test: Puppetfile.lns *)
test Puppetfile.lns get "forge \"https://forgeapi.puppetlabs.com\"
mod 'puppetlabs-razor'
mod 'puppetlabs-ntp', \"0.0.3\"
mod 'puppetlabs-apt',
:git => \"git://github.com/puppetlabs/puppetlabs-apt.git\"
mod 'puppetlabs-stdlib',
:git => \"git://github.com/puppetlabs/puppetlabs-stdlib.git\"
mod 'puppetlabs-apache', '0.6.0',
:github_tarball => 'puppetlabs/puppetlabs-apache'
metadata\n" =
{ "forge" = "https://forgeapi.puppetlabs.com" }
{ }
{ "1" = "puppetlabs-razor" }
{ "2" = "puppetlabs-ntp"
{ "@version" = "0.0.3" }
}
{ }
{ "3" = "puppetlabs-apt"
{ "git" = "git://github.com/puppetlabs/puppetlabs-apt.git" }
}
{ }
{ "4" = "puppetlabs-stdlib"
{ "git" = "git://github.com/puppetlabs/puppetlabs-stdlib.git" }
}
{ }
{ "5" = "puppetlabs-apache"
{ "@version" = "0.6.0" }
{ "github_tarball" = "puppetlabs/puppetlabs-apache" }
}
{ }
{ "metadata" }
(* Test: Puppetfile.lns
Complex version conditions *)
test Puppetfile.lns get "mod 'puppetlabs/stdlib', '< 5.0.0'
mod 'theforeman/concat_native', '>= 1.3.0 < 1.4.0'
mod 'herculesteam/augeasproviders', '2.1.x'\n" =
{ "1" = "puppetlabs/stdlib"
{ "@version" = "< 5.0.0" }
}
{ "2" = "theforeman/concat_native"
{ "@version" = ">= 1.3.0 < 1.4.0" }
}
{ "3" = "herculesteam/augeasproviders"
{ "@version" = "2.1.x" }
}
(* Test: Puppetfile.lns
Owner is not mandatory if git is given *)
test Puppetfile.lns get "mod 'stdlib',
:git => \"git://github.com/puppetlabs/puppetlabs-stdlib.git\"\n" =
{ "1" = "stdlib"
{ "git" = "git://github.com/puppetlabs/puppetlabs-stdlib.git" } }
|