-
Notifications
You must be signed in to change notification settings - Fork 144
verifier on GCP platform #286
Comments
Update: removing the exec transport (obvious in retrospect) seems to have helped, and this now works the way I expect: driver:
name: "terraform"
command_timeout: 1800
root_module_directory: test
provisioner:
name: "terraform"
platforms:
- name: local
verifier:
name: terraform
systems:
- name: local-gcp
backend: gcp
controls:
- gke_cluster |
I think this resolves my question. I'm going to close, but feel free to add labels as necessary. |
@wyardley You've run in to some obsolete code in the Terraform verifier plugin which is dependent on the SSH transport plugin. It's an artefact from when when the Terraform verifier plugin depended on the InSpec verifier plugin. Unfortunately, the present test coverage fails to include the use case where the transport plugin does not adhere to the SSH interface. Sorry about that 😅. InSpec has assumed a lot of the connection logic which was traditionally provided by different transport plugins which is why each verifier system includes an independent set of connection logic. I have thought about creating a Terraform transport plugin (#59) but I haven't reached a conclusion on what behaviour that will provide, especially considering that a long term goal is to remove the hard dependency on InSpec so that other test frameworks may be used with other plugins (#256). |
@aaron-lane No worries! Once I got rid of that transport line, everything works the way I had expected. The direct and indirect help is much appreciated. |
@aaron-lane: Figured this is different enough that I'll create a new issue; regarding some questions I had brought up in #263
[in
test/integration/default/inspec.yml
]:(so yes, I do have
platform: gcp
explicitly in the supported platforms).My current
kitchen.yml
Based on the examples, it seems like something like this should work:
In this case, I'm running commands locally against the GCP APIs.
As reported elsewhere, and as used in their docs, this works fine for me:
bundle exec inspec exec -t gcp:// test/integration/default
[I did try setting
user
,host
, etc. to nulls or empty strings, but that didn't seem to help]I recognize this may end up not being an issue with kitchen-terraform itself, but is there a way to accomplish the equivalent of the above command but via kitchen-terraform's verifier?
The text was updated successfully, but these errors were encountered: