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

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

  featurestores_entity_type = input('featurestores_entity_type', value: {
    "name": "entity_type_1",
    "region": "us-central1",
    "description": "value_description",
    "create_time": "2023-09-14T07:42:36.438713Z",
    "etag": "AMEw9yPMYJMlc3n6zzbc0vVMquWBrXyW-qjvfoHwzRQVGwFT3LU75lZIahPMBkYQlHzZ",
    "update_time": "2023-09-14T07:42:36.438714Z",
    "featurestore": "feature_store_1"
}, description: 'featurestores_entity_type description')
control 'google_vertex_ai_featurestores_entity_type-1.0' do
  impact 1.0
  title 'google_vertex_ai_featurestores_entity_type resource test'

  describe google_vertex_ai_featurestores_entity_type(name: "projects/#{gcp_project_id}/locations/#{featurestores_entity_type['region']}/featurestores/#{featurestores_entity_type['featurestore']}/entityTypes/#{featurestores_entity_type['name']}", region: featurestores_entity_type['region']) do
  	it { should exist }
  	its('monitoring_config.snapshot_analysis.disabled') { should cmp true }
    its('monitoring_config.snapshot_analysis.staleness_days') { should cmp 21 }
    its('monitoring_config.numerical_threshold_config.value') { should cmp 0.3 }
    its('monitoring_config.categorical_threshold_config.value') { should cmp 0.3 }
  	its('create_time') { should cmp featurestores_entity_type['create_time'] }
  	its('etag') { should cmp featurestores_entity_type['etag'] }
  	its('update_time') { should cmp featurestores_entity_type['update_time'] }

  end

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