# ----------------------------------------------------------------------------
#
#     ***     AUTO GENERATED CODE    ***    AUTO GENERATED CODE     ***
#
# ----------------------------------------------------------------------------
#
#     This file is automatically generated by Magic Modules and manual
#     changes will be clobbered when the file is regenerated.
#
#     Please read more about how to change this file in README.md and
#     CONTRIBUTING.md located at the root of this package.
#
# ----------------------------------------------------------------------------

title 'Test GCP google_compute_vpn_tunnels resource.'

gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.')
gcp_location = input(:gcp_location, value: 'gcp_location', description: 'The GCP project region.')
vpn_tunnel = input('vpn_tunnel', value: {
  "name": "inspec-vpn-tunnel",
  "peer_ip": "15.0.0.120",
  "shared_secret": "super secret"
}, description: 'Compute VPN tunnel description')
control 'google_compute_vpn_tunnels-1.0' do
  impact 1.0
  title 'google_compute_vpn_tunnels resource test'

  describe google_compute_vpn_tunnels(project: gcp_project_id, region: gcp_location) do
  	its('vpn_tunnel_names') { should include vpn_tunnel['name'] }
    its('peer_ips') { should include vpn_tunnel['peer_ip'] }
  end
end
