Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README for new resources #85

Merged
merged 2 commits into from
Nov 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ The following resources are available in the InSpec GCP Profile
- [google_compute_networks](docs/resources/google_compute_networks.md)
- [google_compute_project_info](docs/resources/google_compute_project_info.md)
- [google_compute_region](docs/resources/google_compute_region.md)
- [google_compute_region_instance_group_manager](docs/resources/google_compute_region_instance_group_manager.md)
- [google_compute_region_instance_group_managers](docs/resources/google_compute_region_instance_group_managers.md)
- [google_compute_regions](docs/resources/google_compute_regions.md)
- [google_compute_subnetwork](docs/resources/google_compute_subnetwork.md)
- [google_compute_subnetworks](docs/resources/google_compute_subnetworks.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/google_project_alert_policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ A `google_project_alert_policies` resource block collects GCP project alert poli
Use this InSpec resource to enumerate IDs then test in-depth using `google_project_alert_policy`.

google_project_alert_policies(project: 'chef-inspec-gcp').policy_names.each do |policy_name|
describe google_project_alert_policy(name: policy_name) do
describe google_project_alert_policy(policy: policy_name) do
it { should exist }
it { should be_enabled }
end
Expand Down
6 changes: 3 additions & 3 deletions docs/resources/google_project_alert_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Use the `google_project_alert_policy` InSpec audit resource to test properties o

A `google_project_alert_policy` resource block declares the tests for a single GCP project alert policy by name.

describe google_project_alert_policy(name: 'projects/spaterson-project/alertPolicies/9271751234503117449') do
describe google_project_alert_policy(policy: 'projects/spaterson-project/alertPolicies/9271751234503117449') do
it { should exist }
end

Expand All @@ -25,13 +25,13 @@ The following examples show how to use this InSpec audit resource.

### Test that a GCP alert policy is enabled

describe google_project_alert_policy(name: 'projects/spaterson-project/alertPolicies/9271751234503117449') do
describe google_project_alert_policy(policy: 'projects/spaterson-project/alertPolicies/9271751234503117449') do
it { should be_enabled }
end

### Test that a GCP compute alert policy display name is correct

describe google_project_alert_policy(name: 'projects/spaterson-project/alertPolicies/9271751234503117449') do
describe google_project_alert_policy(policy: 'projects/spaterson-project/alertPolicies/9271751234503117449') do
its('display_name') { should eq 'policy name' }
end

Expand Down
2 changes: 1 addition & 1 deletion inspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ maintainer: [email protected],[email protected]
summary: This resource pack provides compliance resources_old_ignore for Google Cloud Platform
copyright: [email protected],[email protected]
copyright_email: [email protected],[email protected]
version: 0.7.0
version: 0.8.0
license: Apache-2.0
inspec_version: '>= 3.0.25'
supports:
Expand Down
2 changes: 1 addition & 1 deletion test/integration/verify/inspec.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: inspec-gcp-integration-tests
version: 0.7.0
version: 0.8.0
inspec_version: '>= 3.0.25'
depends:
- name: inspec-gcp
Expand Down