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

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

  cluster_backup = input('cluster_backup', value: {
  "name":  "projects/ppradhan/instances/inspec-test/clusters/inspec-test-c1/backups/inspec-day1-backup",
  "parent": "projects/ppradhan/instances/inspec-test/clusters/inspec-test-c1",
  "source_table": "projects/ppradhan/instances/inspec-test/tables/inspec",
  "source_backup": "value_sourcebackup",
  "expire_time": "2024-09-25T07:08:29.584Z",
  "start_time": "2024-09-24T07:08:31.252667Z",
  "end_time": "2024-09-24T07:08:31.627350Z",
  "size_bytes": "value_sizebytes",
  "state": "READY"
}, description: 'cluster_backup description')
control 'google_bigtableadmin_cluster_backups-1.0' do
  impact 1.0
  title 'google_bigtableadmin_cluster_backups resource test'

    describe google_bigtableadmin_cluster_backups(parent: cluster_backup['parent']) do
      it { should exist }
      its('names') { should include cluster_backup['name'] }
      its('source_tables') { should include cluster_backup['source_table'] }
      its('expire_times') { should include cluster_backup['expire_time'] }
      its('start_times') { should include cluster_backup['start_time'] }
      its('end_times') { should include cluster_backup['end_time'] }
      its('states') { should include cluster_backup['state'] }
    end
end
