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

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

  job = input('job', value: {
  "name": "projects/ppradhan/locations/us-central1/jobs/inspec-tutorial1-20230915-182543",
  "parent": "projects/ppradhan/locations/us-central1",
  "uid": "605bd3e1-4bf0-4a9d-85ea-23eae08f51dc",
  "generation": "1",
  "create_time": "2024-10-10T13:34:58.675033Z",
  "client": "cloud-console",
  "update_time": "value_updatetime",
  "delete_time": "value_deletetime",
  "expire_time": "value_expiretime",
  "creator": "value_creator",
  "last_modifier": "value_lastmodifier",
  "client_version": "value_clientversion",
  "launch_stage": "GA",
  "observed_generation": "1",
  "start_execution_token": "value_startexecutiontoken",
  "run_execution_token": "value_runexecutiontoken",
  "etag": "value_etag"
}, description: 'job description')
control 'google_run_job-1.0' do
  impact 1.0
  title 'google_run_job resource test'

  describe google_run_job(name: job['name']) do
  	it { should exist }
  	its('name') { should cmp job['name'] }
  	its('uid') { should cmp job['uid'] }
  	its('generation') { should cmp job['generation'] }
  	its('create_time') { should cmp job['create_time'] }
  	its('update_time') { should cmp job['update_time'] }
  	its('delete_time') { should cmp job['delete_time'] }
  	its('expire_time') { should cmp job['expire_time'] }
  	its('creator') { should cmp job['creator'] }
  	its('last_modifier') { should cmp job['last_modifier'] }
  	its('client') { should cmp job['client'] }
  	its('client_version') { should cmp job['client_version'] }
  	its('launch_stage') { should cmp job['launch_stage'] }
  	its('observed_generation') { should cmp job['observed_generation'] }
  	its('start_execution_token') { should cmp job['start_execution_token'] }
  	its('run_execution_token') { should cmp job['run_execution_token'] }
  	its('etag') { should cmp job['etag'] }

  end

  describe google_run_job(name: "does_not_exit") do
  	it { should_not exist }
  end
end
