A google_compute_global_forwarding_rules is used to test a Google GlobalForwardingRule resource


describe google_compute_global_forwarding_rules(project: 'chef-gcp-inspec') do
  its('count') { should be >= 1 }
  its('port_ranges') { should include '80-80' }


Properties that can be accessed from the google_compute_global_forwarding_rules resource:

See for more detailed information * creation_timestamps: an array of google_compute_global_forwarding_rule creationtimestamp * descriptions: an array of `googlecomputeglobalforwardingruledescription *ids: an array ofgooglecomputeglobalforwardingruleid *ipaddresses: an array ofgooglecomputeglobalforwardingruleip_address *ipprotocols: an array ofgooglecomputeglobalforwardingrule` ipprotocol * ip_versions: an array of google_compute_global_forwarding_rule ipversion * `loadbalancingschemes: an array ofgooglecomputeglobalforwardingrule` loadbalancingscheme * `metadatafilters: an array ofgooglecomputeglobalforwardingrulemetadata_filters *names: an array ofgooglecomputeglobalforwardingrulename *networks: an array ofgooglecomputeglobalforwardingrulenetwork *portranges: an array ofgooglecomputeglobalforwardingrule` portrange * targets: an array of google_compute_global_forwarding_rule target

Filter Criteria

This resource supports all of the above properties as filter criteria, which can be used with where as a block or a method.

GCP Permissions

Ensure the Compute Engine API is enabled for the current project.