inspec 4.22.1 → 4.23.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0617ca52a1e32ccc79646ed1afcbabe5ee38fa846bde842ce6217f12ef9b0be
4
- data.tar.gz: 2a34c28543888a356b94d085b98210f784eac9316ee342a59d547185583a44d3
3
+ metadata.gz: 1d2d2579fa5f0f7cd001179665c925508c24bba2f5f10da0352fa199ac6bb87d
4
+ data.tar.gz: 6633740cfc2bc8638bee17f92fa8315fd9f911e18b1570c640bb191baca0f949
5
5
  SHA512:
6
- metadata.gz: d247307b6ca0194a10259fa68b5eadc7f98488663b4acd413e4225848192f7524c24f1932a19237bc15101fd637e47b2123f95f98ae2ae657835a1bcd8f9ad8c
7
- data.tar.gz: d08bf61ff1f9c9ac1729e56193793686814118cbe60c0d9029067da3578a23d9a85acb8e34cc69db54ab8fe934b593f387abb53b2ea818b3861ef5c05b2c0700
6
+ metadata.gz: 4d197751f26f4c8a0039fc8762eafc4d42796b0b2031580e49c490769b257f58563156fc6db76fd4c78da174f726d317e85e9401572745cdfe6f518a9fc237d1
7
+ data.tar.gz: 8ce6ce9d880f04c3a2f5498754ad8e467f93e96f8d2d22d82596080c0e886bb9918340522fb3deb170f0dd215e46c64b7a9ce24ecb8d6f95adcb35a426d0d1fe
data/Gemfile CHANGED
@@ -19,12 +19,13 @@ group :omnibus do
19
19
  end
20
20
 
21
21
  group :test do
22
- gem "chefstyle", "~> 0.13.0"
22
+ gem "chefstyle", "~> 1.2.1"
23
23
  gem "minitest", "~> 5.5"
24
24
  gem "minitest-sprint", "~> 1.0"
25
25
  gem "rake", ">= 10"
26
26
  gem "simplecov", ["~> 0.10", "<=0.18.2"]
27
27
  gem "concurrent-ruby", "~> 1.0"
28
+ gem "nokogiri", "~> 1.9"
28
29
  gem "mocha", "~> 1.1"
29
30
  gem "ruby-progressbar", "~> 1.8"
30
31
  gem "webmock", "~> 3.0"
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.add_dependency "train", "~> 3.0"
28
28
 
29
29
  # Used for Azure profile until integrated into train
30
- spec.add_dependency "faraday_middleware", "~> 0.12.2"
30
+ spec.add_dependency "faraday_middleware", ">= 0.12.2", "< 1.1"
31
31
 
32
32
  # Train plugins we ship with InSpec
33
33
  spec.add_dependency "train-habitat", "~> 0.1"
@@ -26,7 +26,7 @@ Creating new profile at /Users/spaterson/my-profile
26
26
  aws_vpc_id: 'custom-vpc-id'
27
27
  ```
28
28
 
29
- The related control will simply be skipped if this is not provided. See the [InSpec DSL documentation](https://www.inspec.io/docs/reference/dsl_inspec/) for more details on conditional execution using `only_if`.
29
+ The related control will simply be skipped if this is not provided. See the [InSpec DSL documentation](https://docs.chef.io/inspec/dsl_inspec/) for more details on conditional execution using `only_if`.
30
30
 
31
31
  ## Run the tests
32
32
 
@@ -61,7 +61,7 @@ module AwsResourceMixin
61
61
  rescue Aws::Errors::MissingCredentialsError
62
62
  # The AWS error here is unhelpful:
63
63
  # "unable to sign request without credentials set"
64
- Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://www.inspec.io/docs/reference/platforms for details."
64
+ Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://docs.chef.io/inspec/platforms/ for details."
65
65
  fail_resource("No AWS credentials available")
66
66
  rescue Aws::Errors::ServiceError => e
67
67
  fail_resource e.message
@@ -34,7 +34,7 @@ class AwsEbsVolume < Inspec.resource(1)
34
34
  rescue Aws::Errors::MissingCredentialsError
35
35
  # The AWS error here is unhelpful:
36
36
  # "unable to sign request without credentials set"
37
- Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://www.inspec.io/docs/reference/platforms for details."
37
+ Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://docs.chef.io/inspec/platforms/ for details."
38
38
  fail_resource("No AWS credentials available")
39
39
  rescue Aws::Errors::ServiceError => e
40
40
  fail_resource(e.message)
@@ -35,7 +35,7 @@ class AwsEc2Instance < Inspec.resource(1)
35
35
  rescue Aws::Errors::MissingCredentialsError
36
36
  # The AWS error here is unhelpful:
37
37
  # "unable to sign request without credentials set"
38
- Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://www.inspec.io/docs/reference/platforms for details."
38
+ Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://docs.chef.io/inspec/platforms/ for details."
39
39
  fail_resource("No AWS credentials available")
40
40
  rescue Aws::Errors::ServiceError => e
41
41
  fail_resource e.message
@@ -43,7 +43,7 @@ class AwsIamPasswordPolicy < Inspec.resource(1)
43
43
  rescue Aws::Errors::MissingCredentialsError
44
44
  # The AWS error here is unhelpful:
45
45
  # "unable to sign request without credentials set"
46
- Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://www.inspec.io/docs/reference/platforms for details."
46
+ Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://docs.chef.io/inspec/platforms/ for details."
47
47
  fail_resource("No AWS credentials available")
48
48
  rescue Aws::Errors::ServiceError => e
49
49
  fail_resource e.message
@@ -98,7 +98,7 @@ class AwsIamPolicy < Inspec.resource(1)
98
98
  else
99
99
  # But if there is one statement, it is permissable to degenerate the array,
100
100
  # and place the statement as a hash directly under the 'Statement' key
101
- return 1
101
+ 1
102
102
  end
103
103
  end
104
104
 
@@ -24,7 +24,7 @@ class AwsIamRootUser < Inspec.resource(1)
24
24
  rescue Aws::Errors::MissingCredentialsError
25
25
  # The AWS error here is unhelpful:
26
26
  # "unable to sign request without credentials set"
27
- Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://www.inspec.io/docs/reference/platforms for details."
27
+ Inspec::Log.error "It appears that you have not set your AWS credentials. You may set them using environment variables, or using the 'aws://region/aws_credentials_profile' target. See https://docs.chef.io/inspec/platforms/ for details."
28
28
  fail_resource("No AWS credentials available")
29
29
  rescue Aws::Errors::ServiceError => e
30
30
  fail_resource e.message
@@ -292,7 +292,7 @@ class AwsSecurityGroup < Inspec.resource(1)
292
292
 
293
293
  @exists = true
294
294
  @description = dsg_response.security_groups[0].description
295
- @group_id = dsg_response.security_groups[0].group_id
295
+ @group_id = dsg_response.security_groups[0].group_id
296
296
  @group_name = dsg_response.security_groups[0].group_name
297
297
  @vpc_id = dsg_response.security_groups[0].vpc_id
298
298
  @inbound_rules = dsg_response.security_groups[0].ip_permissions.map(&:to_h)
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.22.1
4
+ version: 4.23.11
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: 2020-07-20 00:00:00.000000000 Z
11
+ date: 2020-09-25 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.22.1
19
+ version: 4.23.11
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.22.1
26
+ version: 4.23.11
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: train
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,16 +42,22 @@ dependencies:
42
42
  name: faraday_middleware
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.12.2
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: '1.1'
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
- - - "~>"
55
+ - - ">="
53
56
  - !ruby/object:Gem::Version
54
57
  version: 0.12.2
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '1.1'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: train-habitat
57
63
  requirement: !ruby/object:Gem::Requirement