rspec-terraform 0.1.0.pre.31 → 0.1.0.pre.32

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: eaa5c41415be59f0dc571fa3f26d719ef78d5e18604688ade58770f39f3b124a
4
- data.tar.gz: a27d2cef84a89423e11ddb46e117c9c37677ae54d1d23d28ba2f5d2ff5a2ac94
3
+ metadata.gz: 6943e11ee06400c867546fdb31c8ac4df490ca90ca445cc3b7bb3ec2a922a64d
4
+ data.tar.gz: aa4fd8df5f9c87d49f95106aaff6490ac66014895dcf6ec5bef158e2093bac5d
5
5
  SHA512:
6
- metadata.gz: 2306fb4b85b10fb4bbe7e2bf05e9782d0a9b7c08792597c14495d1efa1819af4188878621e988fd71d06d880f928280002922fb71669359135a8e84323918043
7
- data.tar.gz: 408eff4057c23a6185aa34065ebc8f1c64aa309d2f574983a40020ec129b5747656ebf12bea469997139b7d6b37f7102d2a8ea20e17c28793f384ff2be3206e8
6
+ metadata.gz: 341f89f49d23c5935783c2994df1938fc00078fffdafa624bb6eb91ccaa6ae499cfd30e75959cdac37416c57406a1e12a47ab5ccc1e1f49333ef6a4bd7ff5404
7
+ data.tar.gz: 88f03b4ec8941a29fbf68bd6bb4499b5aa5ca2d7d71cf8a646044829fc0670d04447de09bf3a7d05e613a768df1913c0336a310c0b1ef65ef29cee7467af986c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-terraform (0.1.0.pre.31)
4
+ rspec-terraform (0.1.0.pre.32)
5
5
  confidante (>= 0.27)
6
6
  rspec (>= 3.0)
7
7
  ruby-terraform (= 1.7.0.pre.15)
@@ -7,6 +7,7 @@ module RSpec
7
7
  module Configuration
8
8
  module Providers
9
9
  class Base
10
+ def resolve(_ = {}); end
10
11
  def reset; end
11
12
  end
12
13
  end
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'ruby_terraform'
4
+
5
+ require_relative './base'
6
+
7
+ module RSpec
8
+ module Terraform
9
+ module Configuration
10
+ module Providers
11
+ class Chain < Base
12
+ attr_reader(:providers)
13
+
14
+ def initialize(opts = {})
15
+ super()
16
+ @providers = opts[:providers] || []
17
+ end
18
+
19
+ def resolve(overrides = {})
20
+ providers.reduce(overrides) do |acc, provider|
21
+ provider.resolve(acc)
22
+ end
23
+ end
24
+
25
+ def reset
26
+ providers.each { |provider| provider.reset }
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -4,6 +4,7 @@ require_relative 'providers/identity'
4
4
  require_relative 'providers/in_memory'
5
5
  require_relative 'providers/confidante'
6
6
  require_relative 'providers/seed'
7
+ require_relative 'providers/chain'
7
8
 
8
9
  module RSpec
9
10
  module Terraform
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RSpec
4
4
  module Terraform
5
- VERSION = '0.1.0.pre.31'
5
+ VERSION = '0.1.0.pre.32'
6
6
  end
7
7
  end
@@ -8,6 +8,17 @@ require_relative 'terraform/configuration'
8
8
  require_relative 'terraform/matchers'
9
9
  require_relative 'terraform/helpers'
10
10
 
11
+ # TODO
12
+ # ====
13
+ #
14
+ # * Helper functions
15
+ # * Logging
16
+ # * Test session
17
+ # * Before support in matchers
18
+ # * Reference support in matchers
19
+ # * Sensitive support in matchers
20
+ #
21
+
11
22
  RSpec.configure do |config|
12
23
  config.include(RSpec::Terraform::Matchers)
13
24
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.31
4
+ version: 0.1.0.pre.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-26 00:00:00.000000000 Z
11
+ date: 2022-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: confidante
@@ -297,6 +297,7 @@ files:
297
297
  - lib/rspec/terraform/configuration/merger.rb
298
298
  - lib/rspec/terraform/configuration/providers.rb
299
299
  - lib/rspec/terraform/configuration/providers/base.rb
300
+ - lib/rspec/terraform/configuration/providers/chain.rb
300
301
  - lib/rspec/terraform/configuration/providers/confidante.rb
301
302
  - lib/rspec/terraform/configuration/providers/identity.rb
302
303
  - lib/rspec/terraform/configuration/providers/in_memory.rb