A google_compute_routes is used to test a Google Route resource


describe google_compute_routes(project: 'chef-gcp-inspec') do
  its('count') { should be >= 1 }
  its('dest_ranges') { should include '' }
  its('next_hop_ips') { should include '' }
  its('priorities') { should include '100' }


Properties that can be accessed from the google_compute_routes resource:

See for more detailed information * dest_ranges: an array of google_compute_route destrange * descriptions: an array of `googlecomputeroutedescription *names: an array ofgooglecomputeroutename *networks: an array ofgooglecomputeroutenetwork *priorities: an array ofgooglecomputeroutepriority *tags: an array ofgooglecomputeroutetags *nexthopgateways: an array ofgooglecomputeroute` nexthopgateway * `nexthopinstances: an array ofgooglecomputeroute` nexthopinstance * `nexthopips: an array ofgooglecomputeroute` nexthopip * `nexthopvpntunnels: an array ofgooglecomputeroutenext_hop_vpn_tunnel *nexthopnetworks: an array ofgooglecomputeroute` nexthopnetwork

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.