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

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

  workflow_template = input('workflow_template', value: {
  "project": "ppradhan",
  "reservation": "value_reservation",
  "zone": "value_zone",
  "id": "template-8b819",
  "parent": "projects/ppradhan/regions/us-central1",
  "name": "projects/ppradhan/regions/us-central1/workflowTemplates/template-8b819",
  "create_time": "2024-06-17T09:08:05.009118Z",
  "update_time": "2024-06-17T09:08:05.009118Z",
  "dag_timeout": "value_dagtimeout"
}, description: 'workflow_template description')
control 'google_dataproc_workflow_template-1.0' do
  impact 1.0
  title 'google_dataproc_workflow_template resource test'

  describe google_dataproc_workflow_template(name: workflow_template['name']) do
  	it { should exist }
  	its('id') { should cmp workflow_template['id'] }
  	its('name') { should cmp workflow_template['name'] }
  	its('create_time') { should cmp workflow_template['create_time'] }
  	its('update_time') { should cmp workflow_template['update_time'] }
  	its('dag_timeout') { should cmp workflow_template['dag_timeout'] }

  end

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