kitchen-inspec 0.26.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/kitchen/verifier/inspec.rb +7 -6
- data/lib/kitchen/verifier/inspec_version.rb +2 -2
- metadata +6 -37
- data/.github/CODEOWNERS +0 -3
- data/.gitignore +0 -11
- data/.kitchen.yml +0 -82
- data/.rspec +0 -2
- data/.travis.yml +0 -41
- data/Berksfile +0 -8
- data/CHANGELOG.md +0 -469
- data/Gemfile +0 -37
- data/Guardfile +0 -23
- data/MAINTAINERS.md +0 -13
- data/README.md +0 -275
- data/Rakefile +0 -129
- data/bin/console +0 -15
- data/bin/setup +0 -8
- data/kitchen-inspec.gemspec +0 -24
- data/spec/kitchen/verifier/inspec_spec.rb +0 -607
- data/spec/spec_helper.rb +0 -33
- data/test/cookbooks/os_prepare/metadata.rb +0 -8
- data/test/cookbooks/os_prepare/recipes/default.rb +0 -5
- data/test/integration/attributes/controls/example.rb +0 -11
- data/test/integration/attributes/inspec.yml +0 -8
- data/test/integration/contains_inspec/inspec/_debug_spec.rb +0 -1
- data/test/integration/contains_inspec/inspec/os_spec.rb +0 -7
- data/test/integration/duplicates/dup.rb +0 -13
- data/test/integration/profile-attribute.yml +0 -2
- data/test/integration/profile/controls/example.rb +0 -15
- data/test/integration/profile/controls/gordon.rb +0 -14
- data/test/integration/profile/inspec.yml +0 -10
- data/test/integration/profile/libraries/gordon_config.rb +0 -6
- data/test/recipes/default/_debug_test.rb +0 -1
- data/test/recipes/default/os_test.rb +0 -7
data/spec/spec_helper.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
#
|
3
|
-
# Author:: Fletcher Nichol (<fnichol@chef.io>)
|
4
|
-
#
|
5
|
-
# Copyright (C) 2015, Chef Software Inc.
|
6
|
-
#
|
7
|
-
# Licensed under the Apache License, Version 2.0 (the 'License");
|
8
|
-
# you may not use this file except in compliance with the License.
|
9
|
-
# You may obtain a copy of the License at
|
10
|
-
#
|
11
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
12
|
-
#
|
13
|
-
# Unless required by applicable law or agreed to in writing, software
|
14
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
-
# See the License for the specific language governing permissions and
|
17
|
-
# limitations under the License.
|
18
|
-
|
19
|
-
if ENV["CODECLIMATE_REPO_TOKEN"]
|
20
|
-
require "codeclimate-test-reporter"
|
21
|
-
CodeClimate::TestReporter.start
|
22
|
-
elsif ENV["COVERAGE"]
|
23
|
-
require "simplecov"
|
24
|
-
SimpleCov.profiles.define "gem" do
|
25
|
-
command_name "Specs"
|
26
|
-
|
27
|
-
add_filter ".gem/"
|
28
|
-
add_filter "/spec/"
|
29
|
-
|
30
|
-
add_group "Libraries", "/lib/"
|
31
|
-
end
|
32
|
-
SimpleCov.start "gem"
|
33
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
val_user = attribute("user", default: "alice", description: "An identification for the user")
|
3
|
-
val_password = attribute("password", description: "A value for the password")
|
4
|
-
|
5
|
-
describe val_user do
|
6
|
-
it { should eq "bob" }
|
7
|
-
end
|
8
|
-
|
9
|
-
describe val_password do
|
10
|
-
it { should eq "secret" }
|
11
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
p "You are currently running on OS family: #{os[:family] || 'unknown'}, OS release: #{os[:release] || 'unknown'}"
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
# This is an InSpec test, that will be successful the first run. If it is
|
4
|
-
# executed the second time, the test will fail
|
5
|
-
path = "/tmp/file"
|
6
|
-
describe file(path) do
|
7
|
-
it { should_not exist }
|
8
|
-
end
|
9
|
-
|
10
|
-
# HACK: create a second file to fail tests if they run twice
|
11
|
-
describe command("mkdir -p #{path}") do
|
12
|
-
its("exit_status") { should eq 0 }
|
13
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# copyright: 2015, Chef Software, Inc.
|
3
|
-
# license: All rights reserved
|
4
|
-
|
5
|
-
title "/tmp profile"
|
6
|
-
|
7
|
-
# you add controls here
|
8
|
-
control "tmp-1.0" do # A unique ID for this control
|
9
|
-
impact 0.7 # The criticality, if this control fails.
|
10
|
-
title "Create /tmp directory" # A human-readable title
|
11
|
-
desc "An optional description..."
|
12
|
-
describe file("/tmp") do # The actual test
|
13
|
-
it { should be_directory }
|
14
|
-
end
|
15
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
# copyright: 2015, Chef Software, Inc.
|
3
|
-
# license: All rights reserved
|
4
|
-
|
5
|
-
title "Gordon Config Checks"
|
6
|
-
|
7
|
-
control "gordon-1.0" do
|
8
|
-
impact 0.7
|
9
|
-
title "Verify the version number of Gordon"
|
10
|
-
desc "An optional description..."
|
11
|
-
describe gordon_config do
|
12
|
-
its("version") { should eq("1.0") }
|
13
|
-
end
|
14
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
name: profile
|
2
|
-
title: InSpec Example Profile
|
3
|
-
maintainer: Chef Software, Inc.
|
4
|
-
copyright: Chef Software, Inc.
|
5
|
-
copyright_email: support@chef.io
|
6
|
-
license: Apache 2 license
|
7
|
-
summary: Demonstrates the use of InSpec Compliance Profile
|
8
|
-
version: 1.0.0
|
9
|
-
supports:
|
10
|
-
- os-family: linux
|
@@ -1 +0,0 @@
|
|
1
|
-
p "You are currently running on OS family: #{os[:family] || 'unknown'}, OS release: #{os[:release] || 'unknown'}"
|