Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /usr/share/augeas/lenses/dist/tests/ |
Upload File : |
(* 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" } }