-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Terraform Test unable to resolve implicit dependencies #30071
Comments
note: the presence of the data source does not cause the error. just the usage: this works fine
|
more details to add here. it seems to be related to implicit dependencies? here is the branch im using. you'll see a lot of commented code in basically, the
|
Some how it escaped me entirely that terraform test has its own repo. Probably because it's a command on core... ? Anyways - if you'd prefer I can move these over to: https://github.com/apparentlymart/terraform-provider-testing/issues |
Hi @drewmullen, That repository is not related to the |
Hi @drewmullen, Thanks for filing the issue and trying out the testing functionality! You mention in the follow-up the problem is that the Terraform has no notion of "implied dependency", any interdependency between resources must be declared in the configuration; from what I see though, the only needed dependency between the You can also try with the latest v1.1.0-rc release, which has some bug fixes that could be applicable here. I'm not able to replicate the problem here with basic test using the default |
@jbardin sure i dont mind trying on 1.10-rc. i download the zip and ran
do you happen to have a compiled binary for darwin that i can use or a doc i can reference that might resolve? i said "implied dependency" only because thats how terraform's docs use the jargon - i agree though... its not really "implicit". what is more accurate wording i can use here?
I can confirm that this terraform builds 100% fine :) i actually wrote it and it was released yesterday :) Here is an acceptance test that looks almost identical the reason i suggested the implicit dependency is the problem is because i saw 2 examples where resource interdependencies have failed with similar errors. but youre right it could be something else entirely!
|
Ah thanks for the reminder about the docs, I see what you mean. Users often use the "implicit dependency" term to denote when they have resources that should somehow be dependent even when there is no reference between them, so I often default to that source of confusion. The releases are all published on releases.hashicorp.com, the v1.1.0-rc1 is here: https://releases.hashicorp.com/terraform/1.1.0-rc1/ |
Looks like that fixed it. Any idea when this will go GA? Latest Version (1.1 rc)
Previous Version:
|
Thanks for confirming @drewmullen! We don't have any specific dates for release since there is always the chance of last minute bugs or scheduling conflicts, but each branch's releases have been every 2 weeks on average. |
1 more note for completeness the thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Note: see comments. i started this PR thinking it was just related to a data_source but it turns out to be more broad
Terraform Version
Terraform Configuration Files
Debug Output
please LMK if you want this - i have to scrape the logs
Expected Behavior
test should pass
Actual Behavior
Steps to Reproduce
put hcl above in root module. place boilerplate test directory/provider definition
terraform test
Additional Context
References
The text was updated successfully, but these errors were encountered: