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

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

  models_evaluations_slice = input('models_evaluations_slice', value: {
  "name": "1040489542048845967",
  "region": "us-central1",
  "parent": "projects/165434197229/locations/us-central1/models/1906524575261261824/evaluations/8892762874796048384/slices/",
  "create_time": "value_createtime",
  "model": "1906524575261261824",
  "evaluation": "8892762874796048384"
}, description: 'models_evaluations_slice description')
control 'google_vertex_ai_model_evaluation_slice-1.0' do
  impact 1.0
  title 'google_vertex_ai_model_evaluation_slice resource test'

  describe google_vertex_ai_model_evaluation_slice(name: "projects/#{gcp_project_id}/locations/#{models_evaluations_slice['region']}/models/#{models_evaluations_slice['model']}/evaluations/#{models_evaluations_slice['evaluation']}/slices/#{models_evaluations_slice['slice']}", region: models_evaluations_slice['region']) do
  	it { should exist }
  	its('create_time') { should cmp models_evaluations_slice['create_time'] }
  	its('name') { should cmp models_evaluations_slice['name'] }
  	its('metrics_schema_uri') { should cmp models_evaluations_slice['metrics_schema_uri'] }

  end

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