-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This allows us to inherit common controls Signed-off-by: Dan Webb <dan.webb@damacus.io>
- Loading branch information
Showing
42 changed files
with
229 additions
and
192 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
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,13 @@ | ||
describe directory '/etc/haproxy' do | ||
it { should exist } | ||
end | ||
|
||
describe file('/etc/haproxy/haproxy.cfg') do | ||
it { should exist } | ||
it { should be_owned_by 'haproxy' } | ||
it { should be_grouped_into 'haproxy' } | ||
end | ||
|
||
describe service('haproxy') do | ||
it { should be_running } | ||
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,7 @@ | ||
--- | ||
name: haproxy-common | ||
title: HAProxy Common Suite | ||
summary: HAProxy common tests | ||
supports: | ||
- os-family: linux | ||
- os-family: bsd |
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,10 @@ | ||
--- | ||
name: haproxy-config-2 | ||
title: HAProxy Config 2 Suite | ||
summary: HAProxy tests using example configuration | ||
supports: | ||
- os-family: linux | ||
- os-family: bsd | ||
depends: | ||
- name: haproxy-common | ||
path: test/integration/common |
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,10 @@ | ||
--- | ||
name: haproxy-config-3 | ||
title: HAProxy Config 3 Suite | ||
summary: HAProxy tests using example configuration | ||
supports: | ||
- os-family: linux | ||
- os-family: bsd | ||
depends: | ||
- name: haproxy-common | ||
path: test/integration/common |
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,10 @@ | ||
--- | ||
name: haproxy-config-acl | ||
title: HAProxy Config ACL Suite | ||
summary: HAProxy tests using example configuration | ||
supports: | ||
- os-family: linux | ||
- os-family: bsd | ||
depends: | ||
- name: haproxy-common | ||
path: test/integration/common |
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,10 @@ | ||
--- | ||
name: haproxy-config-array | ||
title: HAProxy Config Array Suite | ||
summary: HAProxy tests using example configuration | ||
supports: | ||
- os-family: linux | ||
- os-family: bsd | ||
depends: | ||
- name: haproxy-common | ||
path: test/integration/common |
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,10 @@ | ||
--- | ||
name: haproxy-config-backend-search | ||
title: HAProxy Config Backend Search Suite | ||
summary: HAProxy tests using example configuration | ||
supports: | ||
- os-family: linux | ||
- os-family: bsd | ||
depends: | ||
- name: haproxy-common | ||
path: test/integration/common |
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,10 @@ | ||
--- | ||
name: haproxy-config-custom-template | ||
title: HAProxy Config Custom Template Suite | ||
summary: HAProxy tests using example configuration | ||
supports: | ||
- os-family: linux | ||
- os-family: bsd | ||
depends: | ||
- name: haproxy-common | ||
path: test/integration/common |
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,10 @@ | ||
--- | ||
name: haproxy-config-fast-csgi | ||
title: HAProxy Config FastCGI Suite | ||
summary: HAProxy tests using example configuration | ||
supports: | ||
- os-family: linux | ||
- os-family: bsd | ||
depends: | ||
- name: haproxy-common | ||
path: test/integration/common |
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,10 @@ | ||
--- | ||
name: haproxy-config-resolver | ||
title: HAProxy Config Resolver Suite | ||
summary: HAProxy tests using example configuration | ||
supports: | ||
- os-family: linux | ||
- os-family: bsd | ||
depends: | ||
- name: haproxy-common | ||
path: test/integration/common |
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,10 @@ | ||
--- | ||
name: haproxy-config-ssl-redirect | ||
title: HAProxy Config SSL Redirect Suite | ||
summary: HAProxy tests using example configuration | ||
supports: | ||
- os-family: linux | ||
- os-family: bsd | ||
depends: | ||
- name: haproxy-common | ||
path: test/integration/common |
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,5 @@ | ||
describe file '/etc/haproxy/haproxy.cfg' do | ||
its(:mode) { should cmp '0640' } | ||
end | ||
|
||
include_controls 'common_spec' |
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,10 @@ | ||
--- | ||
name: haproxy-package | ||
title: HAProxy Package Suite | ||
summary: HAProxy tests using example configuration | ||
supports: | ||
- os-family: linux | ||
- os-family: bsd | ||
depends: | ||
- name: haproxy-common | ||
path: test/integration/common |
Oops, something went wrong.