Skip to content

Commit

Permalink
Replace serverspec with InSpec profile for jenkins_proxy_config
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Barker <[email protected]>
  • Loading branch information
josh-barker committed Sep 24, 2018
1 parent 031c7c4 commit 768efe0
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 17 deletions.
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
11 changes: 11 additions & 0 deletions test/integration/jenkins_proxy_config/inspec.yml
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

This file was deleted.

0 comments on commit 768efe0

Please sign in to comment.