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

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

  nas_jobs_nas_trial_detail = input('nas_jobs_nas_trial_detail', value: {
    "name": "1",
    "region": "us-central1",
    "nasJob": "3217974009958236160",
    "parent": "projects/ppradhan/locations/us-central1/nasJobs/3217974009958236160/nasTrialDetails/",
    "parameters": "value_parameters"
}, description: 'nas_jobs_nas_trial_detail description')
control 'google_vertex_ai_nas_jobs_nas_trial_detail-1.0' do
  impact 1.0
  title 'google_vertex_ai_nas_jobs_nas_trial_detail resource test'

  describe google_vertex_ai_nas_jobs_nas_trial_detail(name: "projects/#{gcp_project_id}/locations/#{nas_jobs_nas_trial_detail['region']}/nasJobs/#{nas_jobs_nas_trial_detail['nasJob']}/nasTrialDetails/#{nas_jobs_nas_trial_detail['name']}", region: nas_jobs_nas_trial_detail['region']) do
  	it { should exist }
  	its('parameters') { should cmp nas_jobs_nas_trial_detail['parameters'] }
  	its('name') { should cmp nas_jobs_nas_trial_detail['name'] }

  end

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