-
Notifications
You must be signed in to change notification settings - Fork 1.2k
chore: update kitchen config #2114
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
chore: update kitchen config #2114
Conversation
/gcbrun |
e1bb643
to
f46135c
Compare
/gcbrun |
Hmm, I'll re-trigger just to be sure.
|
I can repro that error locally, even without creds or a valid project setup... I'll take a look 🤔 |
kitchen-terraform is the latest version in the container too, so it's not an old version thing.
Anyway, if you have any pointers as to where this may be going wrong or where these vars are supposed to come from (a var file somewhere?), I can investigate more, or we can close this if it's taking your time for no good reason. |
Thanks @wyardley! We strongly encourage that all new tests be written using CFT, rather than Kitchen, so it's been a while since I've used it significantly. However this inspec file might be useful for the variables: https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/blob/master/test/integration/stub_domains/inspec.yml Ideally these Kitchen tests would be re-written using CFT, so keep that in mind before you invest a lot of time in this space. :) |
Right, understood... was really just trying to fix what seemed to be a very simple deprecation warning, but if it ends up being too involved, probably not worth it. I've worked with test kitchen pretty extensively in the past, but haven't touched it for a couple of years. That said, might be good to update the help text to make it more clear, as well as to provide links to whatever docs exist about the new framework. From a quick look, it had seemed like maybe kitchen was still used for provisioning, and that the go tests were just called instead of inspec for verification, but maybe I misunderstood. Either way, since kitchen-terraform is deprecated, totally understand the move to something else (also see #2108 -- while I'm mostly talking about unit testing with mocked provider or plan-only there, the native tests could be used for provisioning directly as well) |
Also, I think the inspec config is for verification vs. planning? In this case, since there are no defaults set in https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/blob/master/test/fixtures/shared_vpc/variables.tf, I think kitchen is barfing because these required vars have no values, and I'm still not seeing where they come from. FWIW, I ran the container and then ran |
This repo might be the only that has both Kitchen and CFT (go) tests, so it gets a bit muddled. Here is a simple CFT only example: https://github.com/terraform-google-modules/terraform-google-cloud-storage/blob/master/build/int.cloudbuild.yaml The |
Even with the fairly old (3.5) test kitchen version used by the tests, there are some parameters which have moved to new locations. Follow the suggestions of `kitchen doctor`.
85b2c14
to
626d129
Compare
/gcbrun |
/gcbrun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @wyardley!
With the test kitchen version (3.5) used by the tests, there are some parameters which have moved to new locations.
Follow the suggestions of
kitchen doctor
.