starhawking / python-terrascript

Create Terraform files using Python scripts.
BSD 2-Clause "Simplified" License
515 stars 76 forks source link

Build errors introduced on branch issue33 #38

Closed nielsonsantana closed 6 years ago

nielsonsantana commented 6 years ago

After update '.travis-ci.yml' and add Terraform versions (0.10.1, 0.10.2, 0.10.3, 0.10.4, 0.10.5), a build error was introducted. For this versions of terraform, the build aren't working( https://travis-ci.org/mjuenema/python-terrascript/builds/372883420).

How we can solve this? Drop support for Terraform < 0.10.5? Or the problem is the test implemented in TestModule?

Exemple of error:

python3 -m nose --failed --verbose --with-coverage --cover-package=terrascript --stop --no-byte-compile --logging-level=DEBUG --detailed-errors --with-id tests/test.py tests/test_providers.py  tests/test_issue22.py tests/test_issue26.py tests/test_issue31.py tests/test_issue33.py tests/test_issue3a.py tests/test_issue3b.py
#1 test.Test0Terraform.test ... ok
#2 test.Test0Terraform.test_backend ... ok
#3 test.Test1ConfigDefaults.test_data ... ok
#4 test.Test1ConfigDefaults.test_module ... ok
#5 test.Test1ConfigDefaults.test_resource ... ok
#6 test.Test1ConfigDefaults.test_variable ... ok
#7 test.Test1ConfigDefaults.test_wrongkey ... ok
#8 test.Test2Config.test_bool ... ok
#9 test.Test2Config.test_dict ... ok
#10 test.Test2Config.test_float ... ok
#11 test.Test2Config.test_int ... ok
#12 test.Test2Config.test_interpol_data_attr ... ok
#13 test.Test2Config.test_interpol_resource_attr ... ok
#14 test.Test2Config.test_list ... ok
#15 test.Test2Config.test_string ... ok
#16 test.TestFunctions.test_resource ... ok
#17 test.TestFunctions.test_string ... ok
#18 test.TestFunctions.test_synonyms ... ok
#19 test.TestFunctions.test_variable ... ok
#20 test.TestModule.test ... Error downloading modules: Error loading modules: error downloading 
'file:///tmp/tmpiktcfx9_/devops-workflow/ami-ids/aws': source path error: stat /tmp/tmpiktcfx9_/devops-workflow/ami-ids/aws: no such file or directory
FAIL
mjuenema commented 6 years ago

Yes, the solution is to drop support for Terraform < 0.10.5. I don't have the ambition and time to support every version of Terraform.