# ----------------------------------------------------------------------------
#
#     ***     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_target_pools 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.')
gcp_ext_vm_name = input(:gcp_ext_vm_name, value: 'gcp_ext_vm_name', description: 'The name of a VM instance.')
target_pool = input('target_pool', value: {
  "name": "inspec-gcp-target-pool",
  "session_affinity": "CLIENT_IP"
}, description: 'Target pool definition')
gcp_zone = input(:gcp_zone, value: 'gcp_zone', description: 'The GCP zone.')
control 'google_compute_target_pools-1.0' do
  impact 1.0
  title 'google_compute_target_pools resource test'

  describe google_compute_target_pools(project: gcp_project_id, region: gcp_location) do
    its('names') { should include target_pool['name'] }
    its('session_affinities') { should include target_pool['session_affinity'] }
  end
end
