inspec 4.37.30 → 4.41.20

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: 8111ebc34a934ea311092125b48cd46047c31a7b8c13ba00d65be14ff9c10d3b
4
- data.tar.gz: 000f0eef35c028468496a9511ae7c876773d716c76092d5515fcda8dff09f9b9
3
+ metadata.gz: 7240f94918299475b475b5ce172e5737693a0981a5096bb796ef17e3165c10fd
4
+ data.tar.gz: bbc6a6284ac06f17ec0144801ea0be2d0eba253cd7ab22c906dd01ec6e2455dc
5
5
  SHA512:
6
- metadata.gz: 35a840e69af1ddd95d56938f93f4b6e76ad63fef52aade848bc79d1f76c8f8fb48ba71a560d465e09a8ade6932915a1c22208172a51a7d0d582d4ae68d1c8437
7
- data.tar.gz: 6b00d38a8b3f23f7853fa03425adaf7e836e70ea6acac92b1d3344ea1ef5116aa1bfaaa4bd954eb7adbbf3cdf1d73080164c582bacd1d1de2aac09a1d40375df
6
+ metadata.gz: 581ea1ccb1a6b5902bc2a4db6ae13184158e275cbe72d51aa0d0e6b46c4b7d66a3e0c3afc0e7b9b39b6cb333d993e28d49dc6112ad9da83c2deadd0edb734490
7
+ data.tar.gz: 723c161dfea6d4d0b050624964226dc3ce8555c8712b25f0eb6c0060dd2555ed18486210f4f7c7f0c74c2d7f11750e70e83a18d1f35bc5f3067106ab8917c59a
data/Gemfile CHANGED
@@ -20,28 +20,21 @@ end
20
20
  # but our runtime dep is still 3.9+
21
21
  gem "rspec", ">= 3.10"
22
22
 
23
- def probably_x86?
24
- # We don't currently build on ARM windows, so assume x86 there
25
- return true if RUBY_PLATFORM =~ /windows|mswin|msys|mingw|cygwin/
26
-
27
- # Otherwise rely on uname -m
28
- `uname -m`.match?(/^(x86_64|i\d86)/)
29
- end
30
-
31
23
  group :omnibus do
32
24
  gem "rb-readline"
33
25
  gem "appbundler"
34
26
  gem "ed25519" # ed25519 ssh key support done here as its a native gem we can't put in the gemspec
35
27
  gem "bcrypt_pbkdf" # ed25519 ssh key support done here as its a native gem we can't put in the gemspec
36
- if probably_x86?
37
- gem "x25519" # ed25519 KEX module, not supported on ARM
38
- end
39
28
  end
40
29
 
41
30
  group :test do
42
31
  gem "chefstyle", "~> 2.0.3"
43
32
  gem "concurrent-ruby", "~> 1.0"
44
- gem "html-proofer", platforms: :ruby # do not attempt to run proofer on windows
33
+ if Gem.ruby_version.to_s.start_with?("2.5")
34
+ gem "html-proofer", "= 3.19.1" , platforms: :ruby # do not attempt to run proofer on windows
35
+ else
36
+ gem "html-proofer", platforms: :ruby # do not attempt to run proofer on windows
37
+ end
45
38
  gem "json_schemer", ">= 0.2.1", "< 0.2.19"
46
39
  gem "m"
47
40
  gem "minitest-sprint", "~> 1.0"
data/inspec.gemspec CHANGED
@@ -31,6 +31,7 @@ Gem::Specification.new do |spec|
31
31
 
32
32
  # Train plugins we ship with InSpec
33
33
  spec.add_dependency "train-habitat", "~> 0.1"
34
- spec.add_dependency "train-aws", "~> 0.1"
34
+ spec.add_dependency "train-aws", "~> 0.2"
35
35
  spec.add_dependency "train-winrm", "~> 0.2"
36
+ spec.add_dependency "mongo", "= 2.13.2" # 2.14 introduces a broken symlink in mongo-2.14.0/spec/support/ocsp
36
37
  end
@@ -16,6 +16,6 @@ inputs:
16
16
  description: 'Optional Custom AWS VPC Id'
17
17
  depends:
18
18
  - name: inspec-aws
19
- url: https://github.com/inspec/inspec-aws/archive/master.tar.gz
19
+ url: https://github.com/inspec/inspec-aws/archive/main.tar.gz
20
20
  supports:
21
21
  - platform: aws
@@ -9,6 +9,6 @@ version: 0.1.0
9
9
  inspec_version: '>= 2.2.7'
10
10
  depends:
11
11
  - name: inspec-azure
12
- url: https://github.com/inspec/inspec-azure/archive/master.tar.gz
12
+ url: https://github.com/inspec/inspec-azure/archive/main.tar.gz
13
13
  supports:
14
14
  - platform: azure
@@ -13,6 +13,6 @@ inputs:
13
13
  description: 'The GCP project identifier.'
14
14
  depends:
15
15
  - name: inspec-gcp
16
- url: https://github.com/inspec/inspec-gcp/archive/master.tar.gz
16
+ url: https://github.com/inspec/inspec-gcp/archive/main.tar.gz
17
17
  supports:
18
18
  - platform: gcp
@@ -86,7 +86,7 @@ class AwsIamAccessKey < Inspec.resource(1)
86
86
  end
87
87
 
88
88
  if access_keys.count > 1
89
- raise "More than one access key matched for aws_iam_access_key. Use more specific paramaters, such as access_key_id."
89
+ raise "More than one access key matched for aws_iam_access_key. Use more specific parameters, such as access_key_id."
90
90
  end
91
91
 
92
92
  @exists = true
@@ -6,7 +6,7 @@ module Inspec::Resources
6
6
  class AzureResourceBase < Inspec.resource(1)
7
7
  attr_reader :opts, :client, :azure
8
8
 
9
- # Constructor that retreives the specified resource
9
+ # Constructor that retrieves the specified resource
10
10
  #
11
11
  # The opts hash should contain the following
12
12
  # :group_name - name of the resource group in which to look for items
@@ -275,7 +275,7 @@ end
275
275
 
276
276
  # Class object to maintain a count of the Azure Resource types that are found
277
277
  # when a less specific test is carried out. For example if all the resoures of a resource
278
- # group are called for, there will be variaous types and number of those types.
278
+ # group are called for, there will be various types and number of those types.
279
279
  #
280
280
  # Each type is namespaced, so for example a virtual machine has the type 'Microsoft.Compute/virtualMachines'
281
281
  # This is broken down into the 'Microsoft' class with the type 'Compute/virtualMachines'
@@ -310,7 +310,7 @@ class AzureResourceTypeCounts
310
310
  end
311
311
 
312
312
  # Class object that is created for each element that is returned by Azure.
313
- # This is what is interogated by Inspec. If they are nested hashes, then this results
313
+ # This is what is interrogated by InSpec. If they are nested hashes, then this results
314
314
  # in nested AzureResourceProbe objects.
315
315
  #
316
316
  # For example, if the following was seen in an Azure Resource
@@ -127,7 +127,7 @@ module Inspec::Resources
127
127
  password_authentication?
128
128
  end
129
129
 
130
- # Deteremine if the machine allows password authentication
130
+ # Determine if the machine allows password authentication
131
131
  #
132
132
  # @return boolean
133
133
  def password_authentication?
@@ -85,7 +85,7 @@ module Inspec::Resources
85
85
  # return hashtable
86
86
  def parse_datadisk(disk, index)
87
87
  # Configure parsed hashtable to hold the information
88
- # Initialise this with common attributes from the different types of disk
88
+ # Initialize this with common attributes from the different types of disk
89
89
  parsed = {
90
90
  disk: index,
91
91
  number: index + 1,
@@ -115,7 +115,7 @@ module Inspec::Resources
115
115
  parsed[:storage_account_type] = disk.managedDisk.storageAccountType
116
116
  parsed[:id] = disk.managedDisk.id
117
117
 
118
- # Break up the ID string so that the following information can get retreived
118
+ # Break up the ID string so that the following information can get retrieved
119
119
  # - subscription_id
120
120
  # - resource_group
121
121
  id_parts = parsed[:id].split(%r{/}).reject(&:empty?)
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.37.30
4
+ version: 4.41.20
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: 2021-06-16 00:00:00.000000000 Z
11
+ date: 2021-09-01 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.37.30
19
+ version: 4.41.20
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.37.30
26
+ version: 4.41.20
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: train
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -78,14 +78,14 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '0.1'
81
+ version: '0.2'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '0.1'
88
+ version: '0.2'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: train-winrm
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -100,6 +100,20 @@ dependencies:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0.2'
103
+ - !ruby/object:Gem::Dependency
104
+ name: mongo
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - '='
108
+ - !ruby/object:Gem::Version
109
+ version: 2.13.2
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - '='
115
+ - !ruby/object:Gem::Version
116
+ version: 2.13.2
103
117
  description: InSpec provides a framework for creating end-to-end infrastructure tests.
104
118
  You can use it for integration or even compliance testing. Create fully portable
105
119
  test profiles and use them in your workflow to ensure stability and security. Integrate