# ----------------------------------------------------------------------------
#
#     ***     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_groups 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_groups-1.0' do
  impact 1.0
  title 'google_monitoring_groups resource test'

    describe google_monitoring_groups(name: group['name']) do
      it { should exist }
      its('names') { should include group['name'] }
      its('display_names') { should include group['display_name'] }
      its('filters') { should include group['filter'] }
    end
end
