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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rspec/terraform/configuration/providers/base.rb +1 -0
- data/lib/rspec/terraform/configuration/providers/chain.rb +32 -0
- data/lib/rspec/terraform/configuration/providers.rb +1 -0
- data/lib/rspec/terraform/version.rb +1 -1
- data/lib/rspec/terraform.rb +11 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6943e11ee06400c867546fdb31c8ac4df490ca90ca445cc3b7bb3ec2a922a64d
|
4
|
+
data.tar.gz: aa4fd8df5f9c87d49f95106aaff6490ac66014895dcf6ec5bef158e2093bac5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 341f89f49d23c5935783c2994df1938fc00078fffdafa624bb6eb91ccaa6ae499cfd30e75959cdac37416c57406a1e12a47ab5ccc1e1f49333ef6a4bd7ff5404
|
7
|
+
data.tar.gz: 88f03b4ec8941a29fbf68bd6bb4499b5aa5ca2d7d71cf8a646044829fc0670d04447de09bf3a7d05e613a768df1913c0336a310c0b1ef65ef29cee7467af986c
|
data/Gemfile.lock
CHANGED
@@ -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
|
data/lib/rspec/terraform.rb
CHANGED
@@ -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.
|
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-
|
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
|