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

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

  autoscaling_policy = input('autoscaling_policy', value: {
  "name": "projects/ppradhan/regions/us-central1/autoscalingPolicies/inspec-policy-cf1d",
  "parent": "projects/ppradhan/regions/us-central1",
  "id": "inspec-policy-cf1d"
}, description: 'autoscaling_policy description')
control 'google_dataproc_autoscaling_policy-1.0' do
  impact 1.0
  title 'google_dataproc_autoscaling_policy resource test'

  describe google_dataproc_autoscaling_policy(name: autoscaling_policy['name']) do
  	it { should exist }
  	its('id') { should cmp autoscaling_policy['id'] }
  	its('name') { should cmp autoscaling_policy['name'] }
  end

  describe google_dataproc_autoscaling_policy(name: "does_not_exit") do
  	it { should_not exist }
  end
end
