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

    describe google_dataproc_metastore_federations(parent: federation['parent']) do
      it { should exist }
      its('names') { should include federation['name'] }
      its('create_times') { should include federation['create_time'] }
      its('update_times') { should include federation['update_time'] }
      its('versions') { should include federation['version'] }
      its('endpoint_uris') { should include federation['endpoint_uri'] }
      its('states') { should include federation['state'] }
      its('uids') { should include federation['uid'] }
    end
end
