This repository has been archived by the owner on Nov 14, 2024. It is now read-only.
forked from inspec/inspec-gcp
-
Notifications
You must be signed in to change notification settings - Fork 4
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 #37 from modular-magician/codegen-pr-967
Plural doc generation
- Loading branch information
Showing
6 changed files
with
51 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
title: About the SslPolicy resource | ||
platform: gcp | ||
--- | ||
|
||
|
||
## Syntax | ||
A `google_compute_ssl_policies` is used to test a Google SslPolicy resource | ||
|
||
## Examples | ||
``` | ||
resource = google_compute_ssl_policies({project: 'graphite-test-sam-chef'}) | ||
describe resource do | ||
it { should exist } | ||
its('names') { should include 'inspec-gcp-ssl-policy' } | ||
its('profiles') { should include 'CUSTOM' } | ||
its('count') { should eq 1 } | ||
end | ||
resource.names.each do |policy_name| | ||
describe google_compute_ssl_policy({project: 'graphite-test-sam-chef', name: policy_name}) do | ||
its('min_tls_version') { should cmp 'TLS_1_2' } | ||
end | ||
end | ||
``` | ||
|
||
## Properties | ||
Properties that can be accessed from the `google_compute_ssl_policies` resource: | ||
|
||
See [google_compute_ssl_policy.md](google_compute_ssl_policy.md) for more detailed information | ||
* `creation_timestamps`: an array of `google_compute_ssl_policy` creation_timestamp | ||
* `descriptions`: an array of `google_compute_ssl_policy` description | ||
* `ids`: an array of `google_compute_ssl_policy` id | ||
* `names`: an array of `google_compute_ssl_policy` name | ||
* `profiles`: an array of `google_compute_ssl_policy` profile | ||
* `min_tls_versions`: an array of `google_compute_ssl_policy` min_tls_version | ||
* `enabled_features`: an array of `google_compute_ssl_policy` enabled_features | ||
* `custom_features`: an array of `google_compute_ssl_policy` custom_features | ||
* `fingerprints`: an array of `google_compute_ssl_policy` fingerprint | ||
* `warnings`: an array of `google_compute_ssl_policy` warnings | ||
|
||
## Filter Criteria | ||
This resource supports all of the above properties as filter criteria, which can be used | ||
with `where` as a block or a method. |
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
|
||
|
||
--- | ||
title: About the SslPolicy resource | ||
platform: gcp | ||
|
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
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
12 changes: 0 additions & 12 deletions
12
test/integration/verify-mm/controls/google_compute_ssl_policy.rb
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