From 3e7ce833d9344780c669ab09976b63f7817ae06d Mon Sep 17 00:00:00 2001 From: Francisco Trindade Date: Wed, 1 Feb 2012 15:52:21 +1100 Subject: [PATCH] Feature to run manifest with included nodes --- features/puppet.feature | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/features/puppet.feature b/features/puppet.feature index 5b4b233..568049e 100644 --- a/features/puppet.feature +++ b/features/puppet.feature @@ -5,8 +5,10 @@ Scenario: Run Puppet manifest on nodes When I run puppet manifest "test.pp" on node "n1" Then Node "n1" should have file or directory "/tmp/puppet_test" -Scenario: Run puppet manifest with specific hostname - Given I have a clean running node n1 with hostname "correct.puppet.com" +Scenario: Run puppet manifest with included nodes + Given I have a clean running node n1 + And I change the internal hostname for "n1" to "correct.puppet.com" + And I run puppet manifest "site.pp" on node "n1" Then Node "n1" should have file or directory "/tmp/puppet_test_correct" And Node "n1" should have file or directory "/tmp/puppet_test_default" - And Node "n1" should not have file or directory "/tmp/puppet_test_incorrect" + And Node "n1" should have not file or directory "/tmp/puppet_test_incorrect"