# ----------------------------------------------------------------------------
#
#     ***     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_grpc_proxy resource.'

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

target_grpc_proxy = input('target_grpc_proxy', value: {
  "project": "ppradhan",
  "kind": "compute#targetGrpcProxy",
  "name": "inspec-test-proxy",
  "self_link": "https://www.googleapis.com/compute/v1/projects/ppradhan/global/targetGrpcProxies/inspec-test-proxy",
  "url_map": "https://www.googleapis.com/compute/v1/projects/ppradhan/global/urlMaps/urlmap",
}, description: 'target_grpc_proxy description')

control 'google_compute_target_grpc_proxy-1.0' do
  impact 1.0
  title 'google_compute_target_grpc_proxy resource test'

  describe google_compute_target_grpc_proxy(project: gcp_project_id, name: target_grpc_proxy['name']) do
  	it { should exist }
  	its('kind') { should cmp target_grpc_proxy['kind'] }
  	its('name') { should cmp target_grpc_proxy['name'] }
  	its('self_link') { should cmp target_grpc_proxy['self_link'] }
  	its('url_map') { should cmp target_grpc_proxy['url_map'] }
  end

  describe google_compute_target_grpc_proxy(project: gcp_project_id, name: "donotexist") do
  	it { should_not exist }
  end
end
