generated from sa-progress/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #218 from inspec/CHEF-7204-MAGIC-MODULE-compute_v1…
…-RegionNotificationEndpoint CHEF-7204-MAGIC-MODULE-compute_v1-RegionNotificationEndpoint - Resource Implementation
- Loading branch information
Showing
5 changed files
with
225 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...ogle_compute_region_notification_endpoint/google_compute_region_notification_endpoint.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%> | ||
<% region_notification_endpoint = grab_attributes(pwd)['region_notification_endpoint'] -%> | ||
describe google_compute_region_notification_endpoint(notificationEndpoint: <%= doc_generation ? "' #{region_notification_endpoint['notificationEndpoint']}'":"region_notification_endpoint['notificationEndpoint']" -%>, project: <%= gcp_project_id -%>, region: <%= doc_generation ? "' #{region_notification_endpoint['region']}'":"region_notification_endpoint['region']" -%>) do | ||
it { should exist } | ||
its('kind') { should cmp <%= doc_generation ? "'#{region_notification_endpoint['kind']}'" : "region_notification_endpoint['kind']" -%> } | ||
its('id') { should cmp <%= doc_generation ? "'#{region_notification_endpoint['id']}'" : "region_notification_endpoint['id']" -%> } | ||
its('creation_timestamp') { should cmp <%= doc_generation ? "'#{region_notification_endpoint['creation_timestamp']}'" : "region_notification_endpoint['creation_timestamp']" -%> } | ||
its('name') { should cmp <%= doc_generation ? "'#{region_notification_endpoint['name']}'" : "region_notification_endpoint['name']" -%> } | ||
its('description') { should cmp <%= doc_generation ? "'#{region_notification_endpoint['description']}'" : "region_notification_endpoint['description']" -%> } | ||
its('self_link') { should cmp <%= doc_generation ? "'#{region_notification_endpoint['self_link']}'" : "region_notification_endpoint['self_link']" -%> } | ||
its('region') { should cmp <%= doc_generation ? "'#{region_notification_endpoint['region']}'" : "region_notification_endpoint['region']" -%> } | ||
|
||
end | ||
|
||
describe google_compute_region_notification_endpoint(notificationEndpoint: <%= doc_generation ? "' #{region_notification_endpoint['notificationEndpoint']}'":"region_notification_endpoint['notificationEndpoint']" -%>, project: <%= gcp_project_id -%>, region: <%= doc_generation ? "' #{region_notification_endpoint['region']}'":"region_notification_endpoint['region']" -%>) do | ||
it { should_not exist } | ||
end |
3 changes: 3 additions & 0 deletions
3
...e_region_notification_endpoint/google_compute_region_notification_endpoint_attributes.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
gcp_project_id = input(:gcp_project_id, value: '<%= external_attribute(pwd, 'gcp_project_id') -%>', description: 'The GCP project identifier.') | ||
|
||
region_notification_endpoint = input('region_notification_endpoint', value: <%= JSON.pretty_generate(grab_attributes(pwd)['region_notification_endpoint']) -%>, description: 'region_notification_endpoint description') |
5 changes: 5 additions & 0 deletions
5
...gle_compute_region_notification_endpoint/google_compute_region_notification_endpoints.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%> | ||
<% region_notification_endpoint = grab_attributes(pwd)['region_notification_endpoint'] -%> | ||
describe google_compute_region_notification_endpoints(project: <%= gcp_project_id -%>, region: <%= doc_generation ? "' #{region_notification_endpoint['region']}'":"region_notification_endpoint['region']" -%>) do | ||
it { should exist } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters