Skip to content

Commit 0ac06e8

Browse files
committed
added tests
1 parent 6b43006 commit 0ac06e8

File tree

2 files changed

+10
-39
lines changed

2 files changed

+10
-39
lines changed

software/tests/infrastructure/features/deployment.feature

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,12 @@ Feature: Scripted provisioning of target environment
66
Background:
77
Given I am sshed into the environment
88

9-
Scenario: Is the rails application deployed into the correct directory?
10-
When I run "ls -las /var/www/rails/"
11-
Then I should see "Gemfile"
12-
13-
Scenario Outline: Have all the required gems been installed?
14-
When I run "gem list"
15-
Then I should see "<gem>"
16-
17-
Scenarios: Gems installed
18-
| gem |
19-
| rails |
20-
| sqlite |
21-
22-
Scenario: Is the Apache service running?
23-
When I run "/sbin/chkconfig --list httpd"
24-
Then I should see "3:on"
9+
Scenario: Is Tomcat Running?
10+
When I run "ps -ef | grep tomcat6"
11+
Then I should see "tomcat"
2512

2613
Scenario: The application is up and running
2714
When I run "/usr/bin/wget -qO- http://target.devopscloud.com"
28-
Then I should see "Sample App"
15+
Then I should see "Brewery Manager"
2916

3017

software/tests/infrastructure/features/target.feature

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,13 @@ Feature: Scripted provisioning of target environment
55

66
Background:
77
Given I am sshed into the environment
8-
9-
Scenario: Is Passenger installed?
10-
When I run "gem list"
11-
Then I should see "passenger"
12-
13-
Scenario: Is the proper version of Ruby installed?
14-
When I run "/usr/bin/ruby -v"
15-
Then I should see "ruby 1.8.7"
168

17-
Scenario: Is the proper version of Apache installed?
18-
When I run "/usr/sbin/httpd -v"
19-
Then I should see "2.2.22"
20-
21-
Scenario: Is the Apache service running?
22-
When I run "/sbin/chkconfig --list httpd"
23-
Then I should see "3:on"
24-
25-
Scenario: Httpd conf should have passenger variables
26-
When I scrape "/etc/httpd/conf/httpd.conf"
27-
Then "PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.12" should be present
9+
Scenario: Is Tomcat Running?
10+
When I run "ps -ef | grep tomcat6"
11+
Then I should see "tomcat"
2812

29-
Scenario: Httpd conf should have a virtual host added
30-
When I scrape "/etc/httpd/conf/httpd.conf"
31-
Then "NameVirtualHost \*:80" should be present
13+
Scenario: Is Java installed?
14+
When I run "java"
15+
Then I should see "Usage: java"
3216

3317

0 commit comments

Comments
 (0)