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

gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.')
federation = input('federation', value: {
  "name": "projects/ppradhan/locations/us-central1/federations/inspec-federation",
  "parent": "projects/ppradhan/locations/us-central1",
  "create_time": "2024-07-23T11:59:46.629125267Z",
  "update_time": "2024-07-23T12:01:30.424230443Z",
  "version": "3.1.2",
  "endpoint_uri": "https://standalone-federation-inspec-federation-4082ad6a-ct6cldpepa-uc.a.run.app:443",
  "state": "ACTIVE",
  "state_message": "value_statemessage",
  "uid": "d9600d29-81c5-47f1-8db6-4ffe194841fe"
}, description: 'federation description')
control 'google_dataproc_metastore_federation-1.0' do
  impact 1.0
  title 'google_dataproc_metastore_federation resource test'

  describe google_dataproc_metastore_federation(name: federation['name']) do
  	it { should exist }
  	its('name') { should cmp federation['name'] }
  	its('create_time') { should cmp federation['create_time'] }
  	its('update_time') { should cmp federation['update_time'] }
  	its('version') { should cmp federation['version'] }
  	its('endpoint_uri') { should cmp federation['endpoint_uri'] }
  	its('state') { should cmp federation['state'] }
  	its('state_message') { should cmp federation['state_message'] }
  	its('uid') { should cmp federation['uid'] }

  end

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