Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestTerraformAwsRdsExample/mysql UnitTest Failure #1478

Closed
james03160927 opened this issue Dec 5, 2024 · 2 comments · Fixed by #1479
Closed

TestTerraformAwsRdsExample/mysql UnitTest Failure #1478

james03160927 opened this issue Dec 5, 2024 · 2 comments · Fixed by #1479
Assignees
Labels
bug Something isn't working

Comments

@james03160927
Copy link
Contributor

TestTerraformAwsRdsExample/mysql continues to fail

�[31m╵�[0m�[0m}
    destroy.go:11: 
        	Error Trace:	/home/circleci/project/modules/terraform/destroy.go:11
        	            				/usr/local/go/src/runtime/panic.go:523
        	            				/usr/local/go/src/testing/testing.go:999
        	            				/home/circleci/project/modules/terraform/apply.go:15
        	            				/home/circleci/project/test/terraform_aws_rds_example_test.go:108
        	Error:      	Received unexpected error:
        	            	FatalError{Underlying: error while running command: exit status 1; �[31m╷�[0m�[0m
        	            	�[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mRequired plugins are not installed�[0m
        	            	�[31m│�[0m �[0m
        	            	�[31m│�[0m �[0m�[0mThe installed provider plugins are not consistent with the packages
        	            	�[31m│�[0m �[0mselected in the dependency lock file:
        	            	�[31m│�[0m �[0m  - registry.terraform.io/hashicorp/aws: the cached package for registry.terraform.io/hashicorp/aws 4.67.0 (in .terraform/providers) does not match any of the checksums recorded in the dependency lock file
        	            	�[31m│�[0m �[0m
        	            	�[31m│�[0m �[0mTerraform uses external plugins to integrate with a variety of different
        	            	�[31m│�[0m �[0minfrastructure services. To download the plugins required for this
        	            	�[31m│�[0m �[0mconfiguration, run:
        	            	�[31m│�[0m �[0m  terraform init
        	            	�[31m╵�[0m�[0m}
        	Test:       	TestTerraformAwsRdsExample/mysql
    --- FAIL: TestTerraformAwsRdsExample/mysql (3.10s)
@james03160927 james03160927 added the bug Something isn't working label Dec 5, 2024
@wakeful
Copy link
Contributor

wakeful commented Dec 5, 2024

hey @james03160927, can I pick this one? I have some suspicions about why it’s failing.

wakeful added a commit to wakeful/terratest that referenced this issue Dec 5, 2024
…irectory before running tests in parallel
@james03160927
Copy link
Contributor Author

Ah yeah, that would be amazing. Thanks @wakeful!

@james03160927 james03160927 self-assigned this Dec 6, 2024
james03160927 added a commit that referenced this issue Dec 9, 2024
fix #1478 we should copy the TF module into a temporary directory before running tests in parallel
@odgrim odgrim reopened this Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants