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

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

  study = input('study', value: {
  "name": "2975668570413",
  "region": "us-central1",
  "parent": "projects/165434197229/locations/us-central1/studies/",
  "display_name": "ppradhan_study_20230921_205019",
  "state": "ACTIVE",
  "create_time": "value_createtime",
  "inactive_reason": "value_inactivereason"
}, description: 'study description')
control 'google_vertex_ai_study-1.0' do
  impact 1.0
  title 'google_vertex_ai_study resource test'

  describe google_vertex_ai_study(name: "projects/#{gcp_project_id}/locations/#{study['region']}/studies/#{study['name']}", region: study['region']) do
  	it { should exist }
  	its('name') { should cmp study['name'] }
  	its('display_name') { should cmp study['display_name'] }
  	its('state') { should cmp study['state'] }
  	its('create_time') { should cmp study['create_time'] }
  	its('inactive_reason') { should cmp study['inactive_reason'] }

  end

  describe google_vertex_ai_study(name: "does_not_exit", region: study['region']) do
  	it { should_not exist }
  end
end
