You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The google_compute_instance_group example incorrectly documents location as a valid symbol. Also, if invalid symbol is used, get a cryptic message as the result.
× Control Source Code Error guestbook-profile/controls/cluster_test.rb:10
765: unexpected token at 'Not Found'
Expect Result
If there was a bad symbol used, I would expect a message that states: Symbol location: not supported or something.
The example in the class documents this:
classGoogleComputeInstanceGroup < GcpResourceBasename'google_compute_instance_group'desc'Verifies settings for a compute instance group'example" describe google_compute_instance_group(project: 'chef-inspec-gcp', location: 'us-west2', name: 'gcp-inspec-test') do it { should exist } its('name') { should eq 'inspec-test' } its('status') { should eq 'in_use' } ... end "
When the code expects zone. Interestingly, google uses the term location, but expects a zone, and the Inspec class supports zone.
The text was updated successfully, but these errors were encountered:
* Ensure resources have consistent exists methods.
* Corrected a coupld of arguments in example doc strings.
Signed-off-by: Stuart Paterson <[email protected]>
Description
The
google_compute_instance_group
example incorrectly documentslocation
as a valid symbol. Also, if invalid symbol is used, get a cryptic message as the result.Reproduce
Actual Result
Expect Result
If there was a bad symbol used, I would expect a message that states:
Symbol location: not supported
or something.The example in the class documents this:
When the code expects
zone
. Interestingly, google uses the termlocation
, but expects azone
, and the Inspec class supportszone
.The text was updated successfully, but these errors were encountered: