Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Commit

Permalink
Add integration test for CentOS 6.3
Browse files Browse the repository at this point in the history
Use official CentOS 6 AMI:
  http://wiki.centos.org/Cloud/AWS

The image has iptables firewall enabled that only allow SSH connections
in and thus makes the Apache cookbook test to fail. So we just shut down
the whole firewall.
  • Loading branch information
tmatilai committed May 3, 2013
1 parent b7c1f4a commit deb622d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ test/integration/cases/cache_path_usage.rb
test/integration/cases/empty_cook.rb
test/integration/cases/encrypted_data_bag.rb
test/integration/cases/knife_bootstrap.rb
test/integration/centos5_6_test.rb
test/integration/centos5_8_test.rb
test/integration/centos6_3_test.rb
test/integration/debian6_bootstrap_test.rb
test/integration/debian7_knife_bootstrap_test.rb
test/integration/gentoo2011_test.rb
Expand Down
24 changes: 24 additions & 0 deletions test/integration/centos6_3_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
require 'integration_helper'

class Centos6_3Test < IntegrationTest
def user
"root"
end

def image_id
"ami-86e15bef"
end

def prepare_server
disable_firewall
super
end

def disable_firewall
system "ssh #{connection_string} service iptables stop >> #{log_file}"
end

include EmptyCook
include Apache2Cook
include EncryptedDataBag
end

0 comments on commit deb622d

Please sign in to comment.