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 #260 from inspec/CHEF-12238-V2-MAGIC-MODULE-monito…
…ring_v3-Projects__group CHEF-12238-V2-MAGIC-MODULE-monitoring_v3-Projects__group - Resource Implementation
- Loading branch information
Showing
5 changed files
with
134 additions
and
1 deletion.
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
14 changes: 14 additions & 0 deletions
14
...lates/inspec/examples/google_monitoring_project_group/google_monitoring_project_group.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,14 @@ | ||
<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%> | ||
<% project_group = grab_attributes(pwd)['project_group'] -%> | ||
describe google_monitoring_project_group(name: <%= doc_generation ? "' #{project_group['name']}'":"project_group['name']" -%>) do | ||
it { should exist } | ||
its('name') { should cmp <%= doc_generation ? "'#{project_group['name']}'" : "project_group['name']" -%> } | ||
its('display_name') { should cmp <%= doc_generation ? "'#{project_group['display_name']}'" : "project_group['display_name']" -%> } | ||
its('parent_name') { should cmp <%= doc_generation ? "'#{project_group['parent_name']}'" : "project_group['parent_name']" -%> } | ||
its('filter') { should cmp <%= doc_generation ? "'#{project_group['filter']}'" : "project_group['filter']" -%> } | ||
|
||
end | ||
|
||
describe google_monitoring_project_group(name: "does_not_exit") do | ||
it { should_not exist } | ||
end |
3 changes: 3 additions & 0 deletions
3
...c/examples/google_monitoring_project_group/google_monitoring_project_group_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.') | ||
|
||
project_group = input('project_group', value: <%= JSON.pretty_generate(grab_attributes(pwd)['project_group']) -%>, description: 'project_group description') |
5 changes: 5 additions & 0 deletions
5
...ates/inspec/examples/google_monitoring_project_group/google_monitoring_project_groups.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)}" -%> | ||
<% project_group = grab_attributes(pwd)['project_group'] -%> | ||
describe google_monitoring_project_groups(name: <%= doc_generation ? "' #{project_group['name']}'":"project_group['name']" -%>) 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