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

gcp_project_id = attribute(:gcp_project_id, default: 'gcp_project_id', description: 'The GCP project identifier.')
gcp_db_instance_name = attribute(:gcp_db_instance_name, default: 'gcp_db_instance_name', description: 'Database instance name.')
gcp_db_name = attribute(:gcp_db_name, default: 'gcp_db_name', description: 'Database instance name.')
control 'google_sql_databases-1.0' do
  impact 1.0
  title 'google_sql_databases resource test'


  describe google_sql_databases(project: gcp_project_id, instance: gcp_db_instance_name) do
    it { should exist }
    its('names') { should include gcp_db_name }
    its('instances') { should include gcp_db_instance_name }
  end
end
