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

gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.')

  cluster = input('cluster', value: {
  "name": "projects/ppradhan/instances/inspec-test/clusters/inspec-test-c1",
  "parent": "projects/ppradhan/instances/inspec-test",
  "location": "projects/ppradhan/locations/us-central1-f",
  "state": "READY",
  "default_storage_type": "SSD"
}, description: 'cluster description')
control 'google_bigtableadmin_cluster-1.0' do
  impact 1.0
  title 'google_bigtableadmin_cluster resource test'

  describe google_bigtableadmin_cluster(name: cluster['name']) do
  	it { should exist }
  	its('name') { should cmp cluster['name'] }
  	its('location') { should cmp cluster['location'] }
  	its('state') { should cmp cluster['state'] }
  	its('default_storage_type') { should cmp cluster['default_storage_type'] }

  end

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