Permalink
Browse files

Added check for package installation on centos

  • Loading branch information...
frankmt committed Feb 3, 2012
1 parent 2e7098c commit 7e61263082c38f70da49e67387637bb656e56ffd
View
@@ -27,3 +27,8 @@ Scenario: Run puppet manifest with template dir configuration
Given I have a clean running node n1
When I run puppet manifest "test_template.pp" with config file "puppet_template.conf" on node "n1"
Then Node "n1" should have file or directory "/tmp/puppet_test_template"
+
+Scenario: Check that package was installed on centos box
+ Given I have a clean running node n1
+ When I run puppet manifest "test_install.pp" on node "n1"
+ Then Node "n1" should have package "zip" installed in the centos box
@@ -0,0 +1,4 @@
+Then /^Node "([^"]*)" should have package "([^"]*)" installed in the centos box$/ do |node, package|
+ result = find(node).run_ssh("rpm -qa #{package}")
+ result.stdout.should include(package)
+end
@@ -0,0 +1,5 @@
+class { 'test': }
+
+class test {
+ package { "zip": ensure => installed }
+}

0 comments on commit 7e61263

Please sign in to comment.