# ----------------------------------------------------------------------------
#
#     ***     AUTO GENERATED CODE    ***    AUTO GENERATED CODE     ***
#
# ----------------------------------------------------------------------------
#
#     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_ml_engine_models resource.'

gcp_project_id = attribute(:gcp_project_id, default: 'gcp_project_id', description: 'The GCP project identifier.')
gcp_location = attribute(:gcp_location, default: 'gcp_location', description: 'The GCP project region.')
ml_model = attribute('ml_model', default: {
  "name": "ml_model",
  "region": "us-central1",
  "description": "My awesome ML model",
  "online_prediction_logging": true,
  "online_prediction_console_logging": true
}, description: 'Machine learning model definition')
control 'google_ml_engine_models-1.0' do
  impact 1.0
  title 'google_ml_engine_models resource test'

  describe google_ml_engine_models(project: gcp_project_id) do
    its('descriptions') { should include ml_model['description'] }
    its('online_prediction_loggings') { should include ml_model['online_prediction_logging'] }
    its('online_prediction_console_loggings') { should include ml_model['online_prediction_console_logging'] }
  end
end
