inspec 4.23.11 → 4.24.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +17 -35
- data/inspec.gemspec +2 -2
- data/lib/resources/aws/aws_billing_report.rb +1 -3
- data/lib/resources/aws/aws_ecs_cluster.rb +11 -12
- data/lib/resources/aws/aws_iam_policy.rb +3 -3
- data/lib/resources/aws/aws_security_group.rb +2 -2
- data/lib/resources/aws/aws_sqs_queue.rb +1 -1
- data/lib/resources/azure/azure_virtual_machine_data_disk.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ed919da0689377d83a0261e519e22ce42f810bdd7e34df9de7e7bc1bba1af0c
|
4
|
+
data.tar.gz: 321a20363ee39f65dd1995b6088eab6d0691e072c0fe991df8f70f965bab581e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19c948aaba13e7ca58049c12f23a70634ea73aa725326834bc9be4a722fb26e89cafee3fe225efaa37752a61bf285f228d8e4378ffdec36cf6f5d16f69f578e3
|
7
|
+
data.tar.gz: c1163891b018ab10ac77ba60248d903050598d9e8d6876e4cfd836265f219b9d54b3a6bf1dde6af04ee1619bc063cfa0a22f7001fcb0c5ff92d9d6966a91cd88
|
data/Gemfile
CHANGED
@@ -9,7 +9,12 @@ gem "inspec", path: "."
|
|
9
9
|
# in it in order to package the executable. Hence the odd backwards dependency.
|
10
10
|
gem "inspec-bin", path: "./inspec-bin"
|
11
11
|
|
12
|
-
gem "ffi", ">= 1.9.14", "!= 1.13.0"
|
12
|
+
gem "ffi", ">= 1.9.14", "!= 1.13.0", "!= 1.14.2"
|
13
|
+
|
14
|
+
if Gem.ruby_version.to_s.start_with?("2.5")
|
15
|
+
# 16.7.23 required ruby 2.6+
|
16
|
+
gem "chef-utils", "< 16.7.23" # TODO: remove when we drop ruby 2.5
|
17
|
+
end
|
13
18
|
|
14
19
|
group :omnibus do
|
15
20
|
gem "rb-readline"
|
@@ -19,46 +24,23 @@ group :omnibus do
|
|
19
24
|
end
|
20
25
|
|
21
26
|
group :test do
|
22
|
-
gem "chefstyle", "~> 1.
|
23
|
-
gem "minitest", "~> 5.5"
|
24
|
-
gem "minitest-sprint", "~> 1.0"
|
25
|
-
gem "rake", ">= 10"
|
26
|
-
gem "simplecov", ["~> 0.10", "<=0.18.2"]
|
27
|
+
gem "chefstyle", "~> 1.5.7"
|
27
28
|
gem "concurrent-ruby", "~> 1.0"
|
28
|
-
gem "
|
29
|
+
gem "html-proofer", platforms: :ruby # do not attempt to run proofer on windows
|
30
|
+
gem "json_schemer", ">= 0.2.1", "< 0.2.12"
|
31
|
+
gem "m"
|
32
|
+
gem "minitest-sprint", "~> 1.0"
|
33
|
+
gem "minitest", "~> 5.5"
|
29
34
|
gem "mocha", "~> 1.1"
|
35
|
+
gem "nokogiri", "~> 1.9"
|
36
|
+
gem "pry-byebug"
|
37
|
+
gem "pry", "~> 0.10"
|
38
|
+
gem "rake", ">= 10"
|
30
39
|
gem "ruby-progressbar", "~> 1.8"
|
40
|
+
gem "simplecov", "~> 0.18"
|
31
41
|
gem "webmock", "~> 3.0"
|
32
|
-
gem "m"
|
33
|
-
gem "pry", "~> 0.10"
|
34
|
-
gem "pry-byebug"
|
35
|
-
gem "html-proofer", platforms: :ruby # do not attempt to run proofer on windows
|
36
|
-
end
|
37
|
-
|
38
|
-
group :integration do
|
39
|
-
gem "berkshelf"
|
40
|
-
gem "test-kitchen"
|
41
|
-
gem "kitchen-vagrant"
|
42
|
-
gem "chef", "< 15"
|
43
|
-
gem "chef-zero", "< 15"
|
44
|
-
gem "kitchen-inspec"
|
45
|
-
gem "kitchen-ec2"
|
46
|
-
gem "kitchen-dokken"
|
47
|
-
gem "git"
|
48
|
-
end
|
49
|
-
|
50
|
-
# gems for Maintainers.md generation
|
51
|
-
group :maintenance do
|
52
|
-
gem "tomlrb"
|
53
|
-
|
54
|
-
# To sync maintainers with github
|
55
|
-
gem "octokit"
|
56
|
-
gem "netrc"
|
57
42
|
end
|
58
43
|
|
59
44
|
group :deploy do
|
60
45
|
gem "inquirer"
|
61
46
|
end
|
62
|
-
|
63
|
-
# add these additional dependencies into Gemfile.local
|
64
|
-
eval_gemfile(__FILE__ + ".local") if File.exist?(__FILE__ + ".local")
|
data/inspec.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
lib = File.expand_path("
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
3
|
require "inspec/version"
|
4
4
|
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.license = "Apache-2.0"
|
14
14
|
spec.require_paths = ["lib"]
|
15
15
|
|
16
|
-
spec.required_ruby_version = "
|
16
|
+
spec.required_ruby_version = ">= 2.5"
|
17
17
|
|
18
18
|
# ONLY the aws/azure/gcp files. The rest will come in from inspec-core
|
19
19
|
# the gemspec is necessary for appbundler so don't remove it
|
@@ -1,9 +1,7 @@
|
|
1
1
|
require "resource_support/aws/aws_singular_resource_mixin"
|
2
2
|
require "resource_support/aws/aws_backend_base"
|
3
3
|
|
4
|
-
require "
|
5
|
-
require "resource_support/aws/aws_backend_base"
|
6
|
-
require "aws-sdk-costandusagereportservice.rb"
|
4
|
+
require "aws-sdk-costandusagereportservice"
|
7
5
|
|
8
6
|
class AwsBillingReport < Inspec.resource(1)
|
9
7
|
name "aws_billing_report"
|
@@ -37,19 +37,18 @@ class AwsEcsCluster < Inspec.resource(1)
|
|
37
37
|
|
38
38
|
def fetch_from_api
|
39
39
|
backend = BackendFactory.create(inspec_runner)
|
40
|
-
begin
|
41
|
-
# Use default cluster if no cluster name is specified
|
42
|
-
params = cluster_name.nil? ? {} : { clusters: [cluster_name] }
|
43
|
-
clusters = backend.describe_clusters(params).clusters
|
44
40
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
41
|
+
# Use default cluster if no cluster name is specified
|
42
|
+
params = cluster_name.nil? ? {} : { clusters: [cluster_name] }
|
43
|
+
clusters = backend.describe_clusters(params).clusters
|
44
|
+
|
45
|
+
# Cluster name is unique, we either get back one cluster, or none
|
46
|
+
if clusters.length == 1
|
47
|
+
@exists = true
|
48
|
+
unpack_describe_clusters_response(clusters.first)
|
49
|
+
else
|
50
|
+
@exists = false
|
51
|
+
populate_as_missing
|
53
52
|
end
|
54
53
|
end
|
55
54
|
|
@@ -2,9 +2,9 @@ require "resource_support/aws/aws_singular_resource_mixin"
|
|
2
2
|
require "resource_support/aws/aws_backend_base"
|
3
3
|
require "aws-sdk-iam"
|
4
4
|
|
5
|
-
require "json"
|
6
|
-
require "set"
|
7
|
-
require "uri"
|
5
|
+
require "json" unless defined?(JSON)
|
6
|
+
require "set" unless defined?(Set)
|
7
|
+
require "uri" unless defined?(URI)
|
8
8
|
|
9
9
|
class AwsIamPolicy < Inspec.resource(1)
|
10
10
|
name "aws_iam_policy"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.24.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef InSpec Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inspec-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.
|
19
|
+
version: 4.24.32
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.
|
26
|
+
version: 4.24.32
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: train
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,16 +192,16 @@ require_paths:
|
|
192
192
|
- lib
|
193
193
|
required_ruby_version: !ruby/object:Gem::Requirement
|
194
194
|
requirements:
|
195
|
-
- - "
|
195
|
+
- - ">="
|
196
196
|
- !ruby/object:Gem::Version
|
197
|
-
version: '2.
|
197
|
+
version: '2.5'
|
198
198
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
199
199
|
requirements:
|
200
200
|
- - ">="
|
201
201
|
- !ruby/object:Gem::Version
|
202
202
|
version: '0'
|
203
203
|
requirements: []
|
204
|
-
rubygems_version: 3.
|
204
|
+
rubygems_version: 3.1.4
|
205
205
|
signing_key:
|
206
206
|
specification_version: 4
|
207
207
|
summary: Infrastructure and compliance testing.
|