tfwrapper 0.5.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.travis.yml +62 -0
- data/ChangeLog.md +13 -0
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/lib/tfwrapper/raketasks.rb +5 -5
- data/lib/tfwrapper/version.rb +1 -1
- data/spec/acceptance/acceptance_helpers.rb +4 -3
- data/spec/acceptance/acceptance_spec.rb +15 -4
- data/spec/fixtures/landscapeTest/failingTerraform/main.tf +1 -1
- data/spec/fixtures/landscapeTest/main.tf +1 -1
- data/spec/fixtures/landscapeTest/with_landscape_dots.out +4 -4
- data/spec/fixtures/landscapeTest/with_landscape_lines.out +4 -4
- data/spec/fixtures/testOne.tf +1 -0
- data/spec/fixtures/testThree/bar/testThreeBar.tf +1 -0
- data/spec/fixtures/testThree/baz/testThreeBaz.tf +1 -0
- data/spec/fixtures/testThree/foo/testThreeFoo.tf +1 -0
- data/spec/fixtures/testTwo/foo/bar/testTwo.tf +1 -0
- data/spec/unit/raketasks_spec.rb +12 -6
- data/tfwrapper.gemspec +1 -0
- metadata +18 -6
- data/circle.yml +0 -32
- data/spec/fixtures/landscapeTest/when_terraform_fails.out +0 -67
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a409c24d94dc580e26177dffa66ee8fcda8dae2
|
4
|
+
data.tar.gz: cd17b03ffbd735a4b684e9fe7fcd280856f94c07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2494aca6b7e544589c582c6cc85b563423dd0c88eb0746eb07b0721380061f8aeef810d29a2cb14fda3489ace4dc6e5befa9768ee40bae568e428c9086edc13b
|
7
|
+
data.tar.gz: f6f2ce058a1739f12aaabfdbba0d9b0c2eee0bf7c7965fa76f83eb81d04a40ad8c8a016020eba92e79d43ed6cde84a18b7889d6436357fade5dc4b82e7155bf2
|
data/.rubocop.yml
CHANGED
data/.travis.yml
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
dist: xenial
|
3
|
+
language: ruby
|
4
|
+
cache: bundler
|
5
|
+
before_install:
|
6
|
+
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
7
|
+
- gem install bundler -v '< 2'
|
8
|
+
install: true
|
9
|
+
matrix:
|
10
|
+
include:
|
11
|
+
- rvm: ruby
|
12
|
+
install: bundle install --without landscape
|
13
|
+
script: ["bundle exec ruby --version", "bundle exec rake spec:unit"]
|
14
|
+
name: "ruby-latest unit"
|
15
|
+
- rvm: ruby
|
16
|
+
install: bundle install --without landscape
|
17
|
+
script: bundle exec rake rubocop
|
18
|
+
name: "ruby-latest rubocop"
|
19
|
+
- rvm: ruby
|
20
|
+
install: bundle install --without landscape
|
21
|
+
script: bundle exec rake yard:generate
|
22
|
+
name: "ruby-latest yard"
|
23
|
+
- rvm: 2.0
|
24
|
+
install: bundle install --without landscape
|
25
|
+
script: bundle exec rake spec:unit
|
26
|
+
name: "ruby-2.0 unit"
|
27
|
+
- rvm: 2.1
|
28
|
+
install: bundle install --without landscape
|
29
|
+
script: bundle exec rake spec:unit
|
30
|
+
name: "ruby-2.1 unit"
|
31
|
+
- rvm: 2.2
|
32
|
+
install: bundle install --without landscape
|
33
|
+
script: bundle exec rake spec:unit
|
34
|
+
name: "ruby-2.2 unit"
|
35
|
+
- rvm: 2.3
|
36
|
+
install: bundle install --without landscape
|
37
|
+
script: bundle exec rake spec:unit
|
38
|
+
name: "ruby-2.3 unit"
|
39
|
+
- rvm: 2.3
|
40
|
+
install: bundle install
|
41
|
+
script: bundle exec rake spec:acceptance TF_VERSION=0.10.0
|
42
|
+
name: "ruby-2.3 acceptance TF 0.10.0"
|
43
|
+
- rvm: 2.3
|
44
|
+
install: bundle install
|
45
|
+
script: bundle exec rake spec:acceptance TF_VERSION=0.10.2
|
46
|
+
name: "ruby-2.3 acceptance TF 0.10.2"
|
47
|
+
- rvm: 2.3
|
48
|
+
install: bundle install
|
49
|
+
script: bundle exec rake spec:acceptance TF_VERSION=0.11.2
|
50
|
+
name: "ruby-2.3 acceptance TF 0.11.2"
|
51
|
+
- rvm: 2.3
|
52
|
+
install: bundle install
|
53
|
+
script: bundle exec rake spec:acceptance TF_VERSION=latest
|
54
|
+
name: "ruby-2.3 acceptance TF latest"
|
55
|
+
- rvm: 2.4
|
56
|
+
install: bundle install
|
57
|
+
script: bundle exec rake spec:unit
|
58
|
+
name: "ruby-2.4 unit"
|
59
|
+
- rvm: 2.4
|
60
|
+
install: bundle install
|
61
|
+
script: bundle exec rake spec:acceptance TF_VERSION=latest
|
62
|
+
name: "ruby-2.4 acceptance TF latest"
|
data/ChangeLog.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
Version 0.6.0
|
2
|
+
|
3
|
+
- Include full terraform output when a terraform run fails with output including ``hrottling``, ``status code: 403``, or ``status code: 401``. Previously terraform output was suppressed in these cases, which causes confusion with providers other than "aws" that include these strings in their failure output.
|
4
|
+
- In ``Gemfile``, for testing, pin terraform-landscape gem to 0.2.2 for Ruby 2.x compatibility.
|
5
|
+
- Pin ``rb-inotify`` dependency to 0.9.10 to allow build with Ruby < 2.2
|
6
|
+
- Switch testing from circleci.com to travis-ci.org
|
7
|
+
- Pin terraform_landscape dependency to 0.2.2 for compatibility with ruby < 2.5
|
8
|
+
- Acceptance tests:
|
9
|
+
- Use HashiCorp checkpoint API instead of GitHub Releases API to find latest terraform version, to work around query failures
|
10
|
+
- Pin consul provider versions to 1.0.0 to fix intermittent failures
|
11
|
+
- Switch Ruby versions used in tests to latest TravisCI versions
|
12
|
+
- Stop acceptance testing terraform 0.9.x, as newer versions require pinning the consul provider version but 0.9 doesn't support versioned providers.
|
13
|
+
|
1
14
|
Version 0.5.1
|
2
15
|
|
3
16
|
- Fix bug where terraform plan errors were suppressed if a plan run with landscape support enabled exited non-zero.
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# tfwrapper
|
2
2
|
|
3
|
-
Build of master branch: [](https://travis-ci.org/manheim/tfwrapper)
|
4
4
|
|
5
5
|
Documentation: [http://www.rubydoc.info/gems/tfwrapper/](http://www.rubydoc.info/gems/tfwrapper/)
|
6
6
|
|
data/lib/tfwrapper/raketasks.rb
CHANGED
@@ -391,15 +391,15 @@ module TFWrapper
|
|
391
391
|
cmd, @tf_dir, progress: stream_type
|
392
392
|
)
|
393
393
|
if status != 0 && out_err.include?('hrottling')
|
394
|
-
raise StandardError,
|
394
|
+
raise StandardError, "#{out_err}\nTerraform hit AWS API rate limiting"
|
395
395
|
end
|
396
396
|
if status != 0 && out_err.include?('status code: 403')
|
397
|
-
raise StandardError,
|
398
|
-
'denied or credentials not propagated'
|
397
|
+
raise StandardError, "#{out_err}\nTerraform command got 403 error " \
|
398
|
+
'- access denied or credentials not propagated'
|
399
399
|
end
|
400
400
|
if status != 0 && out_err.include?('status code: 401')
|
401
|
-
raise StandardError,
|
402
|
-
'denied or credentials not propagated'
|
401
|
+
raise StandardError, "#{out_err}\nTerraform command got 401 error " \
|
402
|
+
'- access denied or credentials not propagated'
|
403
403
|
end
|
404
404
|
end
|
405
405
|
# end exponential backoff
|
data/lib/tfwrapper/version.rb
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
require 'ffi'
|
4
4
|
require 'faraday'
|
5
5
|
require 'json'
|
6
|
+
require 'retries'
|
6
7
|
|
7
8
|
def fixture_dir
|
8
9
|
File.absolute_path(
|
@@ -28,9 +29,9 @@ def desired_tf_version
|
|
28
29
|
end
|
29
30
|
|
30
31
|
def latest_tf_version
|
31
|
-
resp = Faraday.get('https://api.
|
32
|
-
rel = JSON.parse(resp.body)['
|
33
|
-
puts "Found latest terraform release
|
32
|
+
resp = Faraday.get('https://checkpoint-api.hashicorp.com/v1/check/terraform')
|
33
|
+
rel = JSON.parse(resp.body)['current_version']
|
34
|
+
puts "Found latest terraform release as: #{rel}"
|
34
35
|
rel
|
35
36
|
end
|
36
37
|
|
@@ -942,11 +942,22 @@ describe 'tfwrapper' do
|
|
942
942
|
expect(@ecode.exitstatus).to eq(1)
|
943
943
|
end
|
944
944
|
it 'returns the terraform output' do
|
945
|
-
|
946
|
-
|
947
|
-
|
945
|
+
expect(@out_err).to match(
|
946
|
+
/Terraform\sv0\.11\.2.*
|
947
|
+
terraform_runner\scommand:\s'terraform\sinit\s-input=false'.*
|
948
|
+
Running\swith:\sTerraform\sv0\.11\.2.*
|
949
|
+
Initializing\sthe\sbackend\.\.\..*
|
950
|
+
Successfully\sconfigured\sthe\sbackend\s"consul".*
|
951
|
+
Terraform\shas\sbeen\ssuccessfully\sinitialized.*
|
952
|
+
terraform_runner\scommand\s'terraform\sinit\s-input=false'\s
|
953
|
+
finished\sand\sexited\s0.*
|
954
|
+
consul_key_prefix\.landscapeTest:\s"path_prefix":\srequired\s
|
955
|
+
field\sis\snot\sset.*
|
956
|
+
rake\saborted.*
|
957
|
+
StandardError:\sErrors\shave\soccurred\sexecuting:\s
|
958
|
+
'terraform\splan\s-var-file.*
|
959
|
+
Tasks:\sTOP\s=>\sfailing_tf:plan.*/xm
|
948
960
|
)
|
949
|
-
expect(@out_err.strip).to eq(expected.strip)
|
950
961
|
end
|
951
962
|
end
|
952
963
|
end
|
@@ -2,7 +2,7 @@ Terraform v0.11.2
|
|
2
2
|
|
3
3
|
Your version of Terraform is out of date! The latest version
|
4
4
|
is %%TF_LATEST_VER%%. You can update by downloading from www.terraform.io/downloads.html
|
5
|
-
terraform_runner command: 'terraform init -input=false' (in
|
5
|
+
terraform_runner command: 'terraform init -input=false' (in %%FIXTUREPATH%%)
|
6
6
|
Running with: Terraform v0.11.2
|
7
7
|
|
8
8
|
Your version of Terraform is out of date! The latest version
|
@@ -27,10 +27,10 @@ If you ever set or change modules or backend configuration for Terraform,
|
|
27
27
|
rerun this command to reinitialize your working directory. If you forget, other
|
28
28
|
commands will detect it and remind you to do so if necessary.[0m
|
29
29
|
terraform_runner command 'terraform init -input=false' finished and exited 0
|
30
|
-
Terraform vars written to:
|
31
|
-
terraform_runner command: 'terraform plan -var-file
|
30
|
+
Terraform vars written to: %%FIXTUREPATH%%/dots_build.tfvars.json
|
31
|
+
terraform_runner command: 'terraform plan -var-file %%FIXTUREPATH%%/dots_build.tfvars.json' (in %%FIXTUREPATH%%)
|
32
32
|
Terraform vars:
|
33
|
-
..........................terraform_runner command 'terraform plan -var-file
|
33
|
+
..........................terraform_runner command 'terraform plan -var-file %%FIXTUREPATH%%/dots_build.tfvars.json' finished and exited 0
|
34
34
|
|
35
35
|
[0;33;49m~ consul_key_prefix.landscapeTest[0m
|
36
36
|
[0;33;49m subkeys.foo: [0m{
|
@@ -2,7 +2,7 @@ Terraform v0.11.2
|
|
2
2
|
|
3
3
|
Your version of Terraform is out of date! The latest version
|
4
4
|
is %%TF_LATEST_VER%%. You can update by downloading from www.terraform.io/downloads.html
|
5
|
-
terraform_runner command: 'terraform init -input=false' (in
|
5
|
+
terraform_runner command: 'terraform init -input=false' (in %%FIXTUREPATH%%)
|
6
6
|
Running with: Terraform v0.11.2
|
7
7
|
|
8
8
|
Your version of Terraform is out of date! The latest version
|
@@ -27,8 +27,8 @@ If you ever set or change modules or backend configuration for Terraform,
|
|
27
27
|
rerun this command to reinitialize your working directory. If you forget, other
|
28
28
|
commands will detect it and remind you to do so if necessary.[0m
|
29
29
|
terraform_runner command 'terraform init -input=false' finished and exited 0
|
30
|
-
Terraform vars written to:
|
31
|
-
terraform_runner command: 'terraform plan -var-file
|
30
|
+
Terraform vars written to: %%FIXTUREPATH%%/lines_build.tfvars.json
|
31
|
+
terraform_runner command: 'terraform plan -var-file %%FIXTUREPATH%%/lines_build.tfvars.json' (in %%FIXTUREPATH%%)
|
32
32
|
Terraform vars:
|
33
33
|
.
|
34
34
|
.
|
@@ -56,7 +56,7 @@ Terraform vars:
|
|
56
56
|
.
|
57
57
|
.
|
58
58
|
.
|
59
|
-
terraform_runner command 'terraform plan -var-file
|
59
|
+
terraform_runner command 'terraform plan -var-file %%FIXTUREPATH%%/lines_build.tfvars.json' finished and exited 0
|
60
60
|
[0;33;49m~ consul_key_prefix.landscapeTest[0m
|
61
61
|
[0;33;49m subkeys.foo: [0m{
|
62
62
|
[31m- "bar": "barval",[0m
|
data/spec/fixtures/testOne.tf
CHANGED
data/spec/unit/raketasks_spec.rb
CHANGED
@@ -1233,10 +1233,12 @@ describe TFWrapper::RakeTasks do
|
|
1233
1233
|
expect(STDERR).to receive(:puts).once
|
1234
1234
|
.with("terraform_runner command: 'foo' (in tfdir)")
|
1235
1235
|
expect(STDERR).to receive(:puts).once
|
1236
|
-
.with(/terraform_runner\sfailed\swith\
|
1236
|
+
.with(/terraform_runner\sfailed\swith\sfoo\sThrottling\sbar\s+
|
1237
|
+
Terraform\shit\sAWS\sAPI\srate\s
|
1237
1238
|
limiting;\sretry\sattempt\s1;\s.+\sseconds\shave\spassed\./x)
|
1238
1239
|
expect(STDERR).to receive(:puts).once
|
1239
|
-
.with(/terraform_runner\sfailed\swith\
|
1240
|
+
.with(/terraform_runner\sfailed\swith\sfoo\sThrottling\sbar\s+
|
1241
|
+
Terraform\shit\sAWS\sAPI\srate\s
|
1240
1242
|
limiting;\sretry\sattempt\s2;\s.+\sseconds\shave\spassed\./x)
|
1241
1243
|
expect(STDERR).to receive(:puts).once
|
1242
1244
|
.with("terraform_runner command 'foo' finished and exited 0")
|
@@ -1258,11 +1260,13 @@ describe TFWrapper::RakeTasks do
|
|
1258
1260
|
expect(STDERR).to receive(:puts).once
|
1259
1261
|
.with("terraform_runner command: 'foo' (in tfdir)")
|
1260
1262
|
expect(STDERR).to receive(:puts).once
|
1261
|
-
.with(/terraform_runner\sfailed\swith\
|
1263
|
+
.with(/terraform_runner\sfailed\swith\sfoo\sstatus\scode:\s403\sbar\s+
|
1264
|
+
Terraform\scommand\sgot\s403\s
|
1262
1265
|
error\s-\saccess\sdenied\sor\scredentials\snot\spropagated;\sretry\s
|
1263
1266
|
attempt\s1;\s.+\sseconds\shave\spassed\./x)
|
1264
1267
|
expect(STDERR).to receive(:puts).once
|
1265
|
-
.with(/terraform_runner\sfailed\swith\
|
1268
|
+
.with(/terraform_runner\sfailed\swith\sfoo\sstatus\scode:\s403\sbar\s+
|
1269
|
+
Terraform\scommand\sgot\s403\s
|
1266
1270
|
error\s-\saccess\sdenied\sor\scredentials\snot\spropagated;\sretry\s
|
1267
1271
|
attempt\s2;\s.+\sseconds\shave\spassed\./x)
|
1268
1272
|
expect(STDERR).to receive(:puts).once
|
@@ -1285,11 +1289,13 @@ describe TFWrapper::RakeTasks do
|
|
1285
1289
|
expect(STDERR).to receive(:puts).once
|
1286
1290
|
.with("terraform_runner command: 'foo' (in tfdir)")
|
1287
1291
|
expect(STDERR).to receive(:puts).once
|
1288
|
-
.with(/terraform_runner\sfailed\swith\
|
1292
|
+
.with(/terraform_runner\sfailed\swith\sfoo\sstatus\scode:\s401\sbar\s+
|
1293
|
+
Terraform\scommand\sgot\s401\s
|
1289
1294
|
error\s-\saccess\sdenied\sor\scredentials\snot\spropagated;\sretry\s
|
1290
1295
|
attempt\s1;\s.+\sseconds\shave\spassed\./x)
|
1291
1296
|
expect(STDERR).to receive(:puts).once
|
1292
|
-
.with(/terraform_runner\sfailed\swith\
|
1297
|
+
.with(/terraform_runner\sfailed\swith\sfoo\sstatus\scode:\s401\sbar\s+
|
1298
|
+
Terraform\scommand\sgot\s401\s
|
1293
1299
|
error\s-\saccess\sdenied\sor\scredentials\snot\spropagated;\sretry\s
|
1294
1300
|
attempt\s2;\s.+\sseconds\shave\spassed\./x)
|
1295
1301
|
expect(STDERR).to receive(:puts).once
|
data/tfwrapper.gemspec
CHANGED
@@ -23,6 +23,7 @@ Gem::Specification.new do |gem|
|
|
23
23
|
# awful, but these are to allow use with ruby 2.1.x
|
24
24
|
gem.add_development_dependency 'ruby_dep', '1.3.1'
|
25
25
|
gem.add_development_dependency 'listen', '3.0.7'
|
26
|
+
gem.add_development_dependency 'rb-inotify', '0.9.10'
|
26
27
|
|
27
28
|
# guard-yard uses Pry which needs readline. If we're in RVM, we'll need this:
|
28
29
|
gem.add_development_dependency 'rb-readline', '~> 0.5'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tfwrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jantman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: retries
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 3.0.7
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rb-inotify
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.9.10
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.9.10
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rb-readline
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -351,13 +365,13 @@ extra_rdoc_files: []
|
|
351
365
|
files:
|
352
366
|
- ".gitignore"
|
353
367
|
- ".rubocop.yml"
|
368
|
+
- ".travis.yml"
|
354
369
|
- ChangeLog.md
|
355
370
|
- Gemfile
|
356
371
|
- Guardfile
|
357
372
|
- LICENSE
|
358
373
|
- README.md
|
359
374
|
- Rakefile
|
360
|
-
- circle.yml
|
361
375
|
- lib/tfwrapper.rb
|
362
376
|
- lib/tfwrapper/helpers.rb
|
363
377
|
- lib/tfwrapper/raketasks.rb
|
@@ -370,7 +384,6 @@ files:
|
|
370
384
|
- spec/fixtures/landscapeTest/failingTerraform/main.tf
|
371
385
|
- spec/fixtures/landscapeTest/main.tf
|
372
386
|
- spec/fixtures/landscapeTest/state.json
|
373
|
-
- spec/fixtures/landscapeTest/when_terraform_fails.out
|
374
387
|
- spec/fixtures/landscapeTest/with_landscape_default.out
|
375
388
|
- spec/fixtures/landscapeTest/with_landscape_dots.out
|
376
389
|
- spec/fixtures/landscapeTest/with_landscape_lines.out
|
@@ -408,7 +421,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
408
421
|
version: '0'
|
409
422
|
requirements: []
|
410
423
|
rubyforge_project:
|
411
|
-
rubygems_version: 2.
|
424
|
+
rubygems_version: 2.5.2
|
412
425
|
signing_key:
|
413
426
|
specification_version: 4
|
414
427
|
summary: Rake tasks for running Hashicorp Terraform sanely
|
@@ -421,7 +434,6 @@ test_files:
|
|
421
434
|
- spec/fixtures/landscapeTest/failingTerraform/main.tf
|
422
435
|
- spec/fixtures/landscapeTest/main.tf
|
423
436
|
- spec/fixtures/landscapeTest/state.json
|
424
|
-
- spec/fixtures/landscapeTest/when_terraform_fails.out
|
425
437
|
- spec/fixtures/landscapeTest/with_landscape_default.out
|
426
438
|
- spec/fixtures/landscapeTest/with_landscape_dots.out
|
427
439
|
- spec/fixtures/landscapeTest/with_landscape_lines.out
|
data/circle.yml
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
|
2
|
-
dependencies:
|
3
|
-
cache_directories:
|
4
|
-
- "~/.rvm/gems"
|
5
|
-
pre:
|
6
|
-
- sudo add-apt-repository -y ppa:git-core/ppa && sudo apt-get update && sudo apt-get install git
|
7
|
-
override:
|
8
|
-
- 'bundle install --without landscape'
|
9
|
-
- 'rvm 2.0.0-p598 exec bundle install --without landscape'
|
10
|
-
- 'rvm 2.1.8 exec bundle install --without landscape'
|
11
|
-
- 'rvm 2.2.5 exec bundle install --without landscape'
|
12
|
-
- 'rvm 2.3.1 exec bundle install --without landscape'
|
13
|
-
- 'rvm 2.4.1 exec bundle install'
|
14
|
-
|
15
|
-
test:
|
16
|
-
override:
|
17
|
-
- 'bundle exec ruby --version'
|
18
|
-
- 'bundle exec rake spec:unit'
|
19
|
-
- 'bundle exec rake rubocop'
|
20
|
-
- 'rvm 2.0.0-p598 exec bundle exec rake spec:unit'
|
21
|
-
- 'rvm 2.1.8 exec bundle exec rake spec:unit'
|
22
|
-
- 'rvm 2.2.5 exec bundle exec rake spec:unit'
|
23
|
-
- 'rvm 2.3.1 exec bundle exec rake spec:unit'
|
24
|
-
- 'rvm 2.4.1 exec bundle exec rake spec:unit'
|
25
|
-
- 'rvm 2.3.1 exec bundle exec rake spec:acceptance TF_VERSION=0.9.2'
|
26
|
-
- 'rvm 2.3.1 exec bundle exec rake spec:acceptance TF_VERSION=0.9.7'
|
27
|
-
- 'rvm 2.3.1 exec bundle exec rake spec:acceptance TF_VERSION=0.10.0'
|
28
|
-
- 'rvm 2.3.1 exec bundle exec rake spec:acceptance TF_VERSION=0.10.2'
|
29
|
-
- 'rvm 2.3.1 exec bundle exec rake spec:acceptance TF_VERSION=0.11.2'
|
30
|
-
- 'rvm 2.3.1 exec bundle exec rake spec:acceptance TF_VERSION=latest'
|
31
|
-
- 'rvm 2.4.1 exec bundle exec rake spec:acceptance TF_VERSION=0.11.2'
|
32
|
-
- 'bundle exec rake yard:generate'
|
@@ -1,67 +0,0 @@
|
|
1
|
-
Terraform v0.11.2
|
2
|
-
|
3
|
-
Your version of Terraform is out of date! The latest version
|
4
|
-
is %%TF_LATEST_VER%%. You can update by downloading from www.terraform.io/downloads.html
|
5
|
-
terraform_runner command: 'terraform init -input=false' (in /home/jantman/manheim/git/github_dot_com/tfwrapper/spec/fixtures/landscapeTest/failingTerraform)
|
6
|
-
Running with: Terraform v0.11.2
|
7
|
-
|
8
|
-
Your version of Terraform is out of date! The latest version
|
9
|
-
is %%TF_LATEST_VER%%. You can update by downloading from www.terraform.io/downloads.html
|
10
|
-
|
11
|
-
[0m[1mInitializing the backend...[0m
|
12
|
-
[0m[32m
|
13
|
-
Successfully configured the backend "consul"! Terraform will automatically
|
14
|
-
use this backend unless the backend configuration changes.[0m
|
15
|
-
|
16
|
-
[0m[1mInitializing provider plugins...[0m
|
17
|
-
- Checking for available provider plugins on https://releases.hashicorp.com...
|
18
|
-
- Downloading plugin for provider "consul" (1.0.0)...
|
19
|
-
|
20
|
-
[0m[1m[32mTerraform has been successfully initialized![0m[32m[0m
|
21
|
-
[0m[32m
|
22
|
-
You may now begin working with Terraform. Try running "terraform plan" to see
|
23
|
-
any changes that are required for your infrastructure. All Terraform commands
|
24
|
-
should now work.
|
25
|
-
|
26
|
-
If you ever set or change modules or backend configuration for Terraform,
|
27
|
-
rerun this command to reinitialize your working directory. If you forget, other
|
28
|
-
commands will detect it and remind you to do so if necessary.[0m
|
29
|
-
terraform_runner command 'terraform init -input=false' finished and exited 0
|
30
|
-
Terraform vars written to: /home/jantman/manheim/git/github_dot_com/tfwrapper/spec/fixtures/landscapeTest/failing_build.tfvars.json
|
31
|
-
terraform_runner command: 'terraform plan -var-file /home/jantman/manheim/git/github_dot_com/tfwrapper/spec/fixtures/landscapeTest/failing_build.tfvars.json' (in /home/jantman/manheim/git/github_dot_com/tfwrapper/spec/fixtures/landscapeTest/failingTerraform)
|
32
|
-
Terraform vars:
|
33
|
-
............[31m
|
34
|
-
[1m[31mError: [0m[0m[1mconsul_key_prefix.landscapeTest: "path_prefix": required field is not set[0m
|
35
|
-
|
36
|
-
[0m[0m[0m
|
37
|
-
[31m
|
38
|
-
[1m[31mError: [0m[0m[1mconsul_key_prefix.landscapeTest: "subkeys": required field is not set[0m
|
39
|
-
|
40
|
-
[0m[0m[0m
|
41
|
-
[31m
|
42
|
-
[1m[31mError: [0m[0m[1mconsul_key_prefix.landscapeTest: : invalid or unknown key: invalid_param[0m
|
43
|
-
|
44
|
-
[0m[0m[0m
|
45
|
-
rake aborted!
|
46
|
-
StandardError: Errors have occurred executing: 'terraform plan -var-file /home/jantman/manheim/git/github_dot_com/tfwrapper/spec/fixtures/landscapeTest/failing_build.tfvars.json' (exited 1)
|
47
|
-
/home/jantman/manheim/git/github_dot_com/tfwrapper/lib/tfwrapper/raketasks.rb:409:in `terraform_runner'
|
48
|
-
/home/jantman/manheim/git/github_dot_com/tfwrapper/lib/tfwrapper/raketasks.rb:202:in `block (2 levels) in install_plan'
|
49
|
-
/home/jantman/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `load'
|
50
|
-
/home/jantman/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `kernel_load'
|
51
|
-
/home/jantman/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:28:in `run'
|
52
|
-
/home/jantman/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/lib/bundler/cli.rb:424:in `exec'
|
53
|
-
/home/jantman/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
|
54
|
-
/home/jantman/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
|
55
|
-
/home/jantman/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
|
56
|
-
/home/jantman/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/lib/bundler/cli.rb:27:in `dispatch'
|
57
|
-
/home/jantman/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
|
58
|
-
/home/jantman/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/lib/bundler/cli.rb:18:in `start'
|
59
|
-
/home/jantman/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/exe/bundle:30:in `block in <top (required)>'
|
60
|
-
/home/jantman/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/lib/bundler/friendly_errors.rb:122:in `with_friendly_errors'
|
61
|
-
/home/jantman/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.1/exe/bundle:22:in `<top (required)>'
|
62
|
-
/home/jantman/.rvm/gems/ruby-2.4.1/bin/bundle:23:in `load'
|
63
|
-
/home/jantman/.rvm/gems/ruby-2.4.1/bin/bundle:23:in `<main>'
|
64
|
-
/home/jantman/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
|
65
|
-
/home/jantman/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'
|
66
|
-
Tasks: TOP => failing_tf:plan
|
67
|
-
(See full trace by running task with --trace)
|