From 7c702a5713bee9f57d49d8491d0fbb9d9c16df3c Mon Sep 17 00:00:00 2001 From: Terri Haber Date: Fri, 15 Nov 2013 15:51:37 -0800 Subject: [PATCH] adding basic manifest tests --- tests/fragment.pp | 19 +++++++++++++++++++ tests/init.pp | 7 +++++++ 2 files changed, 26 insertions(+) create mode 100644 tests/fragment.pp create mode 100644 tests/init.pp diff --git a/tests/fragment.pp b/tests/fragment.pp new file mode 100644 index 0000000..bf3f99a --- /dev/null +++ b/tests/fragment.pp @@ -0,0 +1,19 @@ +concat { 'testconcat': + path => '/tmp/concat', + ensure => present, + owner => 'root', + group => 'root', + mode => '0664', +} + +concat::fragment { '1': + target => 'testconcat', + content => '1', + order => '01', +} + +concat::fragment { '2': + target => 'testconcat', + content => '2', + order => '02', +} diff --git a/tests/init.pp b/tests/init.pp new file mode 100644 index 0000000..fd21427 --- /dev/null +++ b/tests/init.pp @@ -0,0 +1,7 @@ +concat { '/tmp/concat': + ensure => present, + force => true, + owner => 'root', + group => 'root', + mode => '0644', +}