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

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

  project_location_job = input('project_location_job', value: {
  "location": "us-central1",
  "project_id": "ppradhan",
  "id": "2024-02-06_06_34_50-7804426594194635797",
  "name": "inspec-test-job",
  "type": "value_type",
  "steps_location": "value_stepslocation",
  "current_state": "value_currentstate",
  "current_state_time": "value_currentstatetime",
  "requested_state": "value_requestedstate",
  "create_time": "value_createtime",
  "replace_job_id": "value_replacejobid",
  "client_request_id": "value_clientrequestid",
  "replaced_by_job_id": "value_replacedbyjobid",
  "start_time": "value_starttime",
  "created_from_snapshot_id": "value_createdfromsnapshotid"
}, description: 'project_location_job description')
control 'google_dataflow_project_location_job-1.0' do
  impact 1.0
  title 'google_dataflow_project_location_job resource test'

  describe google_dataflow_project_location_job(job: project_location_job['id'], location: project_location_job['location'], projectId: project_location_job['project_id']) do
  	it { should exist }
  	its('id') { should cmp project_location_job['id'] }
  	its('project_id') { should cmp project_location_job['project_id'] }
  	its('name') { should cmp project_location_job['name'] }
  	its('type') { should cmp project_location_job['type'] }
  	its('steps_location') { should cmp project_location_job['steps_location'] }
  	its('current_state') { should cmp project_location_job['current_state'] }
  	its('current_state_time') { should cmp project_location_job['current_state_time'] }
  	its('requested_state') { should cmp project_location_job['requested_state'] }
  	its('create_time') { should cmp project_location_job['create_time'] }
  	its('replace_job_id') { should cmp project_location_job['replace_job_id'] }
  	its('client_request_id') { should cmp project_location_job['client_request_id'] }
  	its('replaced_by_job_id') { should cmp project_location_job['replaced_by_job_id'] }
  	its('location') { should cmp project_location_job['location'] }
  	its('start_time') { should cmp project_location_job['start_time'] }
  	its('created_from_snapshot_id') { should cmp project_location_job['created_from_snapshot_id'] }

  end

  describe google_dataflow_project_location_job(job: project_location_job['id'], location: project_location_job['location'], projectId: project_location_job['project_id']) do
  	it { should_not exist }
  end
end
