Skip to content

Commit

Permalink
Added spec tests for task puppetlabs-toy-chest#6 in quest
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Larkin authored and kjhenner committed Jun 12, 2017
1 parent 82e9ac1 commit e145640
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/the_forge_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,18 @@
.should be_zero
end
end

describe "Task 6:", host: :pastureapp do
it 'Trigger an agent run on pasture-app.puppet.vm and test service' do
package('thin')
.should be_installed
.by('gem')
process('pasture')
.should be_running
port('80')
.should be_listening
file('/etc/pasture_config.yaml')
.content
.should match /^:db:\s+postgres:\/\/pasture:m00m00@pasture\-db\.puppet\.vm\/pasture$/
end
end

0 comments on commit e145640

Please sign in to comment.