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

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

group = input('group', value: {
  "name": "projects/ppradhan/groups/1973775459523949291",
  "display_name": "inspec-test-group",
  "parent_name": "projects/ppradhan",
  "filter": "resource.metadata.name = has_substring(\"inspec\")"
}, description: 'group description')
control 'google_monitoring_group-1.0' do
  impact 1.0
  title 'google_monitoring_group resource test'

  describe google_monitoring_group(name: group['name']) do
  	it { should exist }
  	its('name') { should cmp group['name'] }
  	its('display_name') { should cmp group['display_name'] }
  	its('filter') { should cmp group['filter'] }
  end

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