# ----------------------------------------------------------------------------
#
#     ***     AUTO GENERATED CODE    ***    Type: MMv1     ***
#
# ----------------------------------------------------------------------------
#
#     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_target_vpn_gateway resource.'

gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.')

  target_vpn_gateway = input('target_vpn_gateway', value: {
  "project": "value_project",
  "region": "us-central1",
  "kind": "compute#targetVpnGateway",
  "id": "value_id",
  "creation_timestamp": "value_creationtimestamp",
  "name": "vpn-1",
  "description": "value_description",
  "network": "value_network",
  "status": "value_status",
  "self_link": "value_selflink",
  "label_fingerprint": "value_labelfingerprint"
}, description: 'target_vpn_gateway description')
control 'google_compute_target_vpn_gateway-1.0' do
  impact 1.0
  title 'google_compute_target_vpn_gateway resource test'

  describe google_compute_target_vpn_gateway(project: gcp_project_id, region: target_vpn_gateway['region'], name: target_vpn_gateway['name']) do
  	it { should exist }
  	its('kind') { should cmp target_vpn_gateway['kind'] }
  	its('id') { should cmp target_vpn_gateway['id'] }
  	its('creation_timestamp') { should cmp target_vpn_gateway['creation_timestamp'] }
  	its('name') { should cmp target_vpn_gateway['name'] }
  	its('description') { should cmp target_vpn_gateway['description'] }
  	its('region') { should cmp target_vpn_gateway['region'] }
  	its('network') { should cmp target_vpn_gateway['network'] }
  	its('status') { should cmp target_vpn_gateway['status'] }
  	its('self_link') { should cmp target_vpn_gateway['self_link'] }
  	its('label_fingerprint') { should cmp target_vpn_gateway['label_fingerprint'] }

  end

  describe google_compute_target_vpn_gateway(project: gcp_project_id, region: target_vpn_gateway['region'], name: target_vpn_gateway['name']) do
  	it { should_not exist }
  end
end
