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

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

  datasets_annotation_spec = input('datasets_annotation_spec', value: {
  "name": "5438527833485869056",
  "parent": "projects/165434197229/locations/us-central1/datasets/1044994542735982592/annotationSpecs/",
  "dataset": "1044994542735982592",
  "region": "us-central1",
  "display_name": "InSpec",
  "etag": "value_etag",
  "create_time": "value_createtime",
  "update_time": "value_updatetime"
}, description: 'datasets_annotation_spec description')
control 'google_vertex_ai_datasets_annotation_spec-1.0' do
  impact 1.0
  title 'google_vertex_ai_datasets_annotation_spec resource test'

  describe google_vertex_ai_datasets_annotation_spec(name: "projects/#{gcp_project_id}/locations/#{datasets_annotation_spec['region']}/datasets/#{datasets_annotation_spec['dataset']}/annotationSpecs/#{datasets_annotation_spec['name']}", region: datasets_annotation_spec['region']) do
  	it { should exist }
  	its('display_name') { should cmp datasets_annotation_spec['display_name'] }
  	its('name') { should cmp datasets_annotation_spec['name'] }
  	its('etag') { should cmp datasets_annotation_spec['etag'] }
  	its('create_time') { should cmp datasets_annotation_spec['create_time'] }
  	its('update_time') { should cmp datasets_annotation_spec['update_time'] }

  end

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