forked from voxpupuli/puppet-nginx
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request voxpupuli#607 from 3flex/beaker
Switch acceptance tests to Beaker
- Loading branch information
Showing
20 changed files
with
210 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
files/server_test.crt | ||
files/server_test.pem | ||
pkg/ | ||
pkg/ | ||
log/ | ||
Gemfile.lock | ||
spec/fixtures/modules | ||
spec/fixtures/manifests | ||
vendor | ||
.ruby-version | ||
.vagrant/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
require 'spec_helper_acceptance' | ||
|
||
describe "nginx class:" do | ||
|
||
context 'default parameters' do | ||
it 'should run successfully' do | ||
pp = "class { 'nginx': }" | ||
|
||
# Run it twice and test for idempotency | ||
apply_manifest(pp, :catch_failures => true) | ||
expect(apply_manifest(pp, :catch_failures => true).exit_code).to be_zero | ||
end | ||
end | ||
|
||
describe package('nginx') do | ||
it { is_expected.to be_installed } | ||
end | ||
|
||
describe service('nginx') do | ||
it { is_expected.to be_running } | ||
it { is_expected.to be_enabled } | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
require 'spec_helper_acceptance' | ||
|
||
describe "nginx::resource::mailhost define:" do | ||
it 'should run successfully' do | ||
|
||
pp = " | ||
class { 'nginx': | ||
mail => true, | ||
} | ||
nginx::resource::mailhost { 'domain1.example': | ||
ensure => present, | ||
auth_http => 'localhost/cgi-bin/auth', | ||
protocol => 'smtp', | ||
listen_port => 587, | ||
ssl => true, | ||
ssl_port => 465, | ||
ssl_cert => '/tmp/blah.cert', | ||
ssl_key => '/tmp/blah.key', | ||
xclient => 'off', | ||
} | ||
" | ||
|
||
apply_manifest(pp, :catch_failures => true) | ||
end | ||
|
||
describe file('/etc/nginx/conf.mail.d/domain1.example.conf') do | ||
it { is_expected.to be_file } | ||
it { is_expected.to contain "auth_http localhost/cgi-bin/auth;" } | ||
end | ||
|
||
describe port(587) do | ||
it { is_expected.to be_listening } | ||
end | ||
|
||
describe port(465) do | ||
it { is_expected.to be_listening } | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HOSTS: | ||
centos-5-x64: | ||
roles: | ||
- master | ||
platform: el-5-x86_64 | ||
box : puppetlabs/centos-5.11-64-nocm | ||
box_url : https://vagrantcloud.com/puppetlabs/boxes/centos-5.11-64-nocm | ||
hypervisor : vagrant | ||
CONFIG: | ||
log_level: verbose | ||
type: foss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HOSTS: | ||
centos-6-x64: | ||
roles: | ||
- master | ||
platform: el-6-x86_64 | ||
box : puppetlabs/centos-6.6-64-nocm | ||
box_url : https://vagrantcloud.com/puppetlabs/boxes/centos-6.6-64-nocm | ||
hypervisor : vagrant | ||
CONFIG: | ||
log_level: verbose | ||
type: foss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HOSTS: | ||
centos-7-x64: | ||
roles: | ||
- master | ||
platform: el-7-x86_64 | ||
box : puppetlabs/centos-7.0-64-nocm | ||
box_url : https://vagrantcloud.com/puppetlabs/boxes/centos-7.0-64-nocm | ||
hypervisor : vagrant | ||
CONFIG: | ||
log_level: verbose | ||
type: foss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HOSTS: | ||
debian-6-x64: | ||
roles: | ||
- master | ||
platform: debian-6-amd64 | ||
box : puppetlabs/debian-6.0.10-64-nocm | ||
box_url : http://vagrantcloud.com/puppetlabs/debian-6.0.10-64-nocm | ||
hypervisor : vagrant | ||
CONFIG: | ||
log_level: debug | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HOSTS: | ||
debian-7-x64: | ||
roles: | ||
- master | ||
platform: debian-7-amd64 | ||
box : puppetlabs/debian-7.8-64-nocm | ||
box_url : http://vagrantcloud.com/puppetlabs/debian-7.8-64-nocm | ||
hypervisor : vagrant | ||
CONFIG: | ||
log_level: debug | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HOSTS: | ||
ubuntu-server-1404-x64: | ||
roles: | ||
- master | ||
platform: ubuntu-14.04-amd64 | ||
box: puppetlabs/ubuntu-14.04-64-nocm | ||
box_url: https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm | ||
hypervisor: vagrant | ||
CONFIG: | ||
log_level: debug | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HOSTS: | ||
ubuntu-server-1204-x64: | ||
roles: | ||
- master | ||
platform: ubuntu-12.04-amd64 | ||
box: puppetlabs/ubuntu-12.04-64-nocm | ||
box_url: https://vagrantcloud.com/puppetlabs/ubuntu-12.04-64-nocm | ||
hypervisor: vagrant | ||
CONFIG: | ||
log_level: debug | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HOSTS: | ||
ubuntu-server-1404-x64: | ||
roles: | ||
- master | ||
platform: ubuntu-14.04-amd64 | ||
box: puppetlabs/ubuntu-14.04-64-nocm | ||
box_url: https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm | ||
hypervisor: vagrant | ||
CONFIG: | ||
log_level: debug | ||
type: git |
Oops, something went wrong.