generated from sa-progress/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
15 changed files
with
3,833 additions
and
309 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
19 changes: 19 additions & 0 deletions
19
...lates/inspec/examples/google_compute_packet_mirroring/google_compute_packet_mirroring.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,19 @@ | ||
<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%> | ||
<% packet_mirroring = grab_attributes(pwd)['packet_mirroring'] -%> | ||
describe google_compute_packet_mirroring(packetMirroring: <%= doc_generation ? "' #{packet_mirroring['packetMirroring']}'":"packet_mirroring['packetMirroring']" -%>, project: <%= gcp_project_id -%>, region: <%= doc_generation ? "' #{packet_mirroring['region']}'":"packet_mirroring['region']" -%>) do | ||
it { should exist } | ||
its('kind') { should cmp <%= doc_generation ? "'#{packet_mirroring['kind']}'" : "packet_mirroring['kind']" -%> } | ||
its('id') { should cmp <%= doc_generation ? "'#{packet_mirroring['id']}'" : "packet_mirroring['id']" -%> } | ||
its('creation_timestamp') { should cmp <%= doc_generation ? "'#{packet_mirroring['creation_timestamp']}'" : "packet_mirroring['creation_timestamp']" -%> } | ||
its('self_link') { should cmp <%= doc_generation ? "'#{packet_mirroring['self_link']}'" : "packet_mirroring['self_link']" -%> } | ||
its('self_link_with_id') { should cmp <%= doc_generation ? "'#{packet_mirroring['self_link_with_id']}'" : "packet_mirroring['self_link_with_id']" -%> } | ||
its('name') { should cmp <%= doc_generation ? "'#{packet_mirroring['name']}'" : "packet_mirroring['name']" -%> } | ||
its('description') { should cmp <%= doc_generation ? "'#{packet_mirroring['description']}'" : "packet_mirroring['description']" -%> } | ||
its('region') { should cmp <%= doc_generation ? "'#{packet_mirroring['region']}'" : "packet_mirroring['region']" -%> } | ||
its('enable') { should cmp <%= doc_generation ? "'#{packet_mirroring['enable']}'" : "packet_mirroring['enable']" -%> } | ||
|
||
end | ||
|
||
describe google_compute_packet_mirroring(packetMirroring: <%= doc_generation ? "' #{packet_mirroring['packetMirroring']}'":"packet_mirroring['packetMirroring']" -%>, project: <%= gcp_project_id -%>, region: <%= doc_generation ? "' #{packet_mirroring['region']}'":"packet_mirroring['region']" -%>) do | ||
it { should_not exist } | ||
end |
3 changes: 3 additions & 0 deletions
3
...c/examples/google_compute_packet_mirroring/google_compute_packet_mirroring_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.') | ||
|
||
packet_mirroring = input('packet_mirroring', value: <%= JSON.pretty_generate(grab_attributes(pwd)['packet_mirroring']) -%>, description: 'packet_mirroring description') |
5 changes: 5 additions & 0 deletions
5
...ates/inspec/examples/google_compute_packet_mirroring/google_compute_packet_mirrorings.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)}" -%> | ||
<% packet_mirroring = grab_attributes(pwd)['packet_mirroring'] -%> | ||
describe google_compute_packet_mirrorings(project: <%= gcp_project_id -%>, region: <%= doc_generation ? "' #{packet_mirroring['region']}'":"packet_mirroring['region']" -%>) do | ||
it { should exist } | ||
end |
5 changes: 5 additions & 0 deletions
5
...xamples/google_compute_region_security_policy/google_compute_region_security_policies.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_security_policy = grab_attributes(pwd)['region_security_policy'] -%> | ||
describe google_compute_region_security_policy(project: <%= gcp_project_id -%>, region: <%= doc_generation ? "' #{region_security_policy['region']}'":"region_security_policy['region']" -%>) do | ||
it { should exist } | ||
end |
5 changes: 5 additions & 0 deletions
5
.../examples/google_compute_region_security_policy/google_compute_region_security_policy.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_security_policy = grab_attributes(pwd)['region_security_policy'] -%> | ||
describe google_compute_region_security_policy(project: <%= gcp_project_id -%>, region: <%= doc_generation ? "' #{region_security_policy['region']}'":"region_security_policy['region']" -%>, securityPolicy: <%= doc_generation ? "' #{region_security_policy['securityPolicy']}'":"region_security_policy['securityPolicy']" -%>) do | ||
it { should exist } | ||
end |
3 changes: 3 additions & 0 deletions
3
...oogle_compute_region_security_policy/google_compute_region_security_policy_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_security_policy = input('region_security_policy', value: <%= JSON.pretty_generate(grab_attributes(pwd)['region_security_policy']) -%>, description: 'region_security_policy description') |
5 changes: 5 additions & 0 deletions
5
...lates/inspec/examples/google_compute_resource_policy/google_compute_resource_policies.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)}" -%> | ||
<% resource_policy = grab_attributes(pwd)['resource_policy'] -%> | ||
describe google_compute_resource_policies(project: <%= gcp_project_id -%>, region: <%= doc_generation ? "' #{resource_policy['region']}'":"resource_policy['region']" -%>) do | ||
it { should exist } | ||
end |
19 changes: 19 additions & 0 deletions
19
...mplates/inspec/examples/google_compute_resource_policy/google_compute_resource_policy.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,19 @@ | ||
<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%> | ||
<% resource_policy = grab_attributes(pwd)['resource_policy'] -%> | ||
describe google_compute_resource_policy(project: <%= gcp_project_id -%>, region: <%= doc_generation ? "' #{resource_policy['region']}'":"resource_policy['region']" -%>, resourcePolicy: <%= doc_generation ? "' #{resource_policy['resourcePolicy']}'":"resource_policy['resourcePolicy']" -%>) do | ||
it { should exist } | ||
its('kind') { should cmp <%= doc_generation ? "'#{resource_policy['kind']}'" : "resource_policy['kind']" -%> } | ||
its('id') { should cmp <%= doc_generation ? "'#{resource_policy['id']}'" : "resource_policy['id']" -%> } | ||
its('creation_timestamp') { should cmp <%= doc_generation ? "'#{resource_policy['creation_timestamp']}'" : "resource_policy['creation_timestamp']" -%> } | ||
its('self_link') { should cmp <%= doc_generation ? "'#{resource_policy['self_link']}'" : "resource_policy['self_link']" -%> } | ||
its('self_link_with_id') { should cmp <%= doc_generation ? "'#{resource_policy['self_link_with_id']}'" : "resource_policy['self_link_with_id']" -%> } | ||
its('region') { should cmp <%= doc_generation ? "'#{resource_policy['region']}'" : "resource_policy['region']" -%> } | ||
its('description') { should cmp <%= doc_generation ? "'#{resource_policy['description']}'" : "resource_policy['description']" -%> } | ||
its('name') { should cmp <%= doc_generation ? "'#{resource_policy['name']}'" : "resource_policy['name']" -%> } | ||
its('status') { should cmp <%= doc_generation ? "'#{resource_policy['status']}'" : "resource_policy['status']" -%> } | ||
|
||
end | ||
|
||
describe google_compute_resource_policy(project: <%= gcp_project_id -%>, region: <%= doc_generation ? "' #{resource_policy['region']}'":"resource_policy['region']" -%>, resourcePolicy: <%= doc_generation ? "' #{resource_policy['resourcePolicy']}'":"resource_policy['resourcePolicy']" -%>) do | ||
it { should_not exist } | ||
end |
3 changes: 3 additions & 0 deletions
3
...pec/examples/google_compute_resource_policy/google_compute_resource_policy_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.') | ||
|
||
resource_policy = input('resource_policy', value: <%= JSON.pretty_generate(grab_attributes(pwd)['resource_policy']) -%>, description: 'resource_policy description') |
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
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