A google_ml_engine_model is used to test a Google Model resource
describe google_ml_engine_model(project: 'chef-gcp-inspec', name: 'ml_model') do
it { should exist }
its('description') { should cmp 'My awesome ML model' }
its('regions') { should include 'us-central1' }
its('online_prediction_logging') { should cmp 'true' }
its('online_prediction_console_logging') { should cmp 'true' }
end
describe google_ml_engine_model(project: 'chef-gcp-inspec', name: 'nonexistent') do
it { should_not exist }
end
Properties that can be accessed from the google_ml_engine_model resource:
namedescriptiondefault_versionnameregionsonline_prediction_loggingonline_prediction_console_logginglabelsEnsure the Cloud ML is enabled for the current project.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/inspec/resources/google_ml_engine_model/