From 9e5e717739b1ba1ed4c4929c620ba92bb9cc1270 Mon Sep 17 00:00:00 2001 From: Greg Larkin Date: Wed, 31 May 2017 18:33:26 -0700 Subject: [PATCH] Added spec tests for task #6 in quest --- tests/the_forge_spec.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/the_forge_spec.rb b/tests/the_forge_spec.rb index 0ca7768b..1ccbbafb 100644 --- a/tests/the_forge_spec.rb +++ b/tests/the_forge_spec.rb @@ -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