Skip to content

Commit

Permalink
Merge pull request #245 from inspec/sa/rename_run_resource
Browse files Browse the repository at this point in the history
renamed resources
  • Loading branch information
sa-progress authored Aug 6, 2024
2 parents 3853c4e + 71a8f54 commit 45a1114
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 45a1114

Please sign in to comment.