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
When using it { should exist } as per embedded documentation for google_compute_instance_group, getting error. Also, if this is indeed not supported, it would not be consistent with other resources.
× Instance Group gke-guestbook-default-pool-d84d40bd-grp should exist
expected Instance Group gke-guestbook-default-pool-d84d40bd-grp to exist but it does not respond to either `exist?` or `exists?`
Expected
Expected this to work as per embedded documentation:
Embedded Docs:
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 "
The text was updated successfully, but these errors were encountered:
Also, as per embedded doc example, the its('status') { should eq 'in_use' } is invalid:
× Instance Group gke-guestbook-default-pool-d84d40bd-grp status
undefined method `status' for Instance Group gke-guestbook-default-pool-d84d40bd-grp:#<Class:0x00007fc4b684a1c0>
* Ensure resources have consistent exists methods.
* Corrected a coupld of arguments in example doc strings.
Signed-off-by: Stuart Paterson <spaterson@chef.io>
Summary
When using
it { should exist }
as per embedded documentation forgoogle_compute_instance_group
, getting error. Also, if this is indeed not supported, it would not be consistent with other resources.Reproduce
Actual Result
Expected
Expected this to work as per embedded documentation:
Embedded Docs:
The text was updated successfully, but these errors were encountered: