forked from sous-chefs/jenkins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace serverspec with InSpec profile for jenkins_proxy_config
Signed-off-by: Josh Barker <[email protected]>
- Loading branch information
1 parent
031c7c4
commit 768efe0
Showing
3 changed files
with
36 additions
and
17 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
test/integration/jenkins_proxy_config/controls/jenkins_proxy_config.rb
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,25 @@ | ||
# encoding: utf-8 | ||
# copyright: 2018, The Authors | ||
|
||
title 'Jenkins Proxy' | ||
|
||
control 'jenkins_proxy_config-1.0' do | ||
impact 0.7 | ||
title 'Jenkins Proxy is configured' | ||
|
||
describe jenkins_proxy('1.2.3.4:5678') do | ||
it { should exist } | ||
its('name') { should_not eq '1.2.3.4' } | ||
its('port') { should_not eq 5678 } | ||
its('noproxy') { should_not eq 'localhost' } | ||
its('noproxy') { should_not eq '127.0.0.1' } | ||
end | ||
|
||
describe jenkins_proxy('5.6.7.8:9012') do | ||
it { should exist } | ||
its('name') { should eq '5.6.7.8' } | ||
its('port') { should eq 9012 } | ||
its('noproxy') { should include 'nohost' } | ||
its('noproxy') { should include '*.nodomain' } | ||
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,11 @@ | ||
name: jenkins_proxy_config | ||
title: InSpec Profile | ||
maintainer: The Authors | ||
copyright: The Authors | ||
copyright_email: [email protected] | ||
license: Apache-2.0 | ||
summary: An InSpec Compliance Profile | ||
version: 0.1.0 | ||
depends: | ||
- name: jenkins_inspec | ||
path: test/integration/helpers/jenkins_inspec |
17 changes: 0 additions & 17 deletions
17
test/integration/jenkins_proxy_config/serverspec/assert_created_spec.rb
This file was deleted.
Oops, something went wrong.