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

gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.')
service_backup = input('service_backup', value: {
  "name": "projects/ppradhan/locations/us-central1/services/inspec-test/backups/inspec-backup-fa90",
  "parent": "projects/ppradhan/locations/us-central1/services/inspec-test",
  "create_time": "2024-08-19T12:06:12.158023685Z",
  "end_time": "2024-08-19T12:09:42.670413Z",
  "state": "ACTIVE",
  "description": "value_description"
}, description: 'service_backup description')
control 'google_dataproc_metastore_service_backup-1.0' do
  impact 1.0
  title 'google_dataproc_metastore_service_backup resource test'

  describe google_dataproc_metastore_service_backup(name: service_backup['name']) do
  	it { should exist }
  	its('name') { should cmp service_backup['name'] }
  	its('create_time') { should cmp service_backup['create_time'] }
  	its('end_time') { should cmp service_backup['end_time'] }
  	its('state') { should cmp service_backup['state'] }
  	its('description') { should cmp service_backup['description'] }

  end

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