diff --git a/mmv1/templates/inspec/examples/google_run_project_location_service/google_run_project_location_service.erb b/mmv1/templates/inspec/examples/google_run_service/google_run_service.erb similarity index 69% rename from mmv1/templates/inspec/examples/google_run_project_location_service/google_run_project_location_service.erb rename to mmv1/templates/inspec/examples/google_run_service/google_run_service.erb index ac8f07344..fac1b6f34 100644 --- a/mmv1/templates/inspec/examples/google_run_project_location_service/google_run_project_location_service.erb +++ b/mmv1/templates/inspec/examples/google_run_service/google_run_service.erb @@ -1,12 +1,12 @@ <% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%> <% project_location_service = grab_attributes(pwd)['project_location_service'] -%> -describe google_run_project_location_service(name: <%= doc_generation ? "' #{project_location_service['name']}'":"project_location_service['name']" -%>) do +describe google_run_service(name: <%= doc_generation ? "' #{project_location_service['name']}'":"project_location_service['name']" -%>) do it { should exist } its('api_version') { should cmp <%= doc_generation ? "'#{project_location_service['api_version']}'" : "project_location_service['api_version']" -%> } its('kind') { should cmp <%= doc_generation ? "'#{project_location_service['kind']}'" : "project_location_service['kind']" -%> } end -describe google_run_project_location_service(name: "does_not_exit") do +describe google_run_service(name: "does_not_exit") do it { should_not exist } end \ No newline at end of file diff --git a/mmv1/templates/inspec/examples/google_run_project_location_service/google_run_project_location_service_attributes.erb b/mmv1/templates/inspec/examples/google_run_service/google_run_service_attributes.erb similarity index 100% rename from mmv1/templates/inspec/examples/google_run_project_location_service/google_run_project_location_service_attributes.erb rename to mmv1/templates/inspec/examples/google_run_service/google_run_service_attributes.erb diff --git a/mmv1/templates/inspec/examples/google_run_project_location_service/google_run_project_location_services.erb b/mmv1/templates/inspec/examples/google_run_service/google_run_services.erb similarity index 54% rename from mmv1/templates/inspec/examples/google_run_project_location_service/google_run_project_location_services.erb rename to mmv1/templates/inspec/examples/google_run_service/google_run_services.erb index 507529177..424309f14 100644 --- a/mmv1/templates/inspec/examples/google_run_project_location_service/google_run_project_location_services.erb +++ b/mmv1/templates/inspec/examples/google_run_service/google_run_services.erb @@ -1,5 +1,5 @@ <% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%> <% project_location_service = grab_attributes(pwd)['project_location_service'] -%> - describe google_run_project_location_services(parent: <%= doc_generation ? "' #{project_location_service['parent']}'":"project_location_service['parent']" -%>) do + describe google_run_services(parent: <%= doc_generation ? "' #{project_location_service['parent']}'":"project_location_service['parent']" -%>) do it { should exist } end \ No newline at end of file