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.
@@ -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,8 +0,0 @@
1
- # encoding: utf-8
2
- name "os_prepare"
3
- maintainer "Chef Software, Inc."
4
- maintainer_email "support@chef.io"
5
- description "This cookbook prepares the test operating systems"
6
- version "1.0.0"
7
- depends "apt"
8
- depends "yum"
@@ -1,5 +0,0 @@
1
- # encoding: utf-8
2
- # author: Christoph Hartmann
3
- # author: Dominik Richter
4
- #
5
- # noop, do nothing
@@ -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,8 +0,0 @@
1
- name: attributes
2
- title: InSpec Profile
3
- maintainer: The Authors
4
- copyright: The Authors
5
- copyright_email: you@example.com
6
- license: All Rights Reserved
7
- summary: An InSpec Compliance Profile
8
- version: 0.1.0
@@ -1 +0,0 @@
1
- p "You are currently running on OS family: #{os[:family] || 'unknown'}, OS release: #{os[:release] || 'unknown'}"
@@ -1,7 +0,0 @@
1
- # encoding: utf-8
2
-
3
- family = os[:family]
4
-
5
- describe os[:family] do
6
- it { should eq family }
7
- end
@@ -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,2 +0,0 @@
1
- user: bob
2
- password: secret
@@ -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,6 +0,0 @@
1
- class GordonConfig < Inspec.resource(1)
2
- name "gordon_config"
3
- def version
4
- "1.0"
5
- end
6
- end
@@ -1 +0,0 @@
1
- p "You are currently running on OS family: #{os[:family] || 'unknown'}, OS release: #{os[:release] || 'unknown'}"
@@ -1,7 +0,0 @@
1
- # encoding: utf-8
2
-
3
- family = os[:family]
4
-
5
- describe os[:family] do
6
- it { should eq family }
7
- end