-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: balasubramanian-s <balasubramanian.s@progress.com>
- Loading branch information
1 parent
b266b0f
commit 81563db
Showing
8 changed files
with
129 additions
and
129 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
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,58 @@ | ||
+++ | ||
|
||
title = "google_apigee_endpoint_attachments Resource" | ||
platform = "gcp" | ||
draft = false | ||
gh_repo = "inspec-gcp" | ||
|
||
|
||
[menu.inspec] | ||
|
||
title = "google_apigee_endpoint_attachments" | ||
identifier = "inspec/resources/gcp/google_apigee_endpoint_attachments Resource" | ||
parent = "inspec/resources/gcp" | ||
+++ | ||
|
||
Use the `google_apigee_endpoint_attachments` InSpec audit resource to test the properties of a test a Google EndpointAttachment. | ||
|
||
## Installation | ||
{{% inspec_gcp_install %}} | ||
|
||
## Syntax | ||
A `google_apigee_endpoint_attachments` is used to test a Google EndpointAttachment resource | ||
|
||
## Examples | ||
``` | ||
describe google_apigee_endpoint_attachments() do | ||
it { should exist } | ||
end | ||
``` | ||
|
||
## Parameters | ||
Properties that can be accessed from the `google_apigee_endpoint_attachments` resource: | ||
|
||
See [google_apigee_endpoint_attachment.md](google_apigee_endpoint_attachment.md) for more detailed information | ||
* `hosts`: an array of `google_apigee_endpoint_attachment` host | ||
* `connection_states`: an array of `google_apigee_endpoint_attachment` connection_state | ||
* `service_attachments`: an array of `google_apigee_endpoint_attachment` service_attachment | ||
* `locations`: an array of `google_apigee_endpoint_attachment` location | ||
* `names`: an array of `google_apigee_endpoint_attachment` name | ||
* `states`: an array of `google_apigee_endpoint_attachment` state | ||
## Properties | ||
Properties that can be accessed from the `google_apigee_endpoint_attachments` resource: | ||
|
||
See [google_apigee_endpoint_attachment.md](google_apigee_endpoint_attachment.md) for more detailed information | ||
* `hosts`: an array of `google_apigee_endpoint_attachment` host | ||
* `connection_states`: an array of `google_apigee_endpoint_attachment` connection_state | ||
* `service_attachments`: an array of `google_apigee_endpoint_attachment` service_attachment | ||
* `locations`: an array of `google_apigee_endpoint_attachment` location | ||
* `names`: an array of `google_apigee_endpoint_attachment` name | ||
* `states`: an array of `google_apigee_endpoint_attachment` state | ||
|
||
## 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. | ||
|
||
## GCP Permissions | ||
|
||
Ensure the [Apigee API](https://console.cloud.google.com/apis/library/apigee.googleapis.com/) is enabled for the current project. |
58 changes: 0 additions & 58 deletions
58
docs/resources/google_apigee_organization_endpoint_attachments.md
This file was deleted.
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
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
46 changes: 46 additions & 0 deletions
46
test/integration/verify/controls/google_apigee_endpoint_attachment.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# ---------------------------------------------------------------------------- | ||
# | ||
# *** AUTO GENERATED CODE *** Type: MMv1 *** | ||
# | ||
# ---------------------------------------------------------------------------- | ||
# | ||
# This file is automatically generated by Magic Modules and manual | ||
# changes will be clobbered when the file is regenerated. | ||
# | ||
# Please read more about how to change this file in README.md and | ||
# CONTRIBUTING.md located at the root of this package. | ||
# | ||
# ---------------------------------------------------------------------------- | ||
|
||
title 'Test GCP google_apigee_endpoint_attachment resource.' | ||
|
||
gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.') | ||
|
||
endpoint_attachment = input('endpoint_attachment', value: { | ||
"name": "value_name", | ||
"parent": "value_parent", | ||
"host": "value_host", | ||
"connection_state": "value_connectionstate", | ||
"service_attachment": "value_serviceattachment", | ||
"location": "value_location", | ||
"state": "value_state" | ||
}, description: 'endpoint_attachment description') | ||
control 'google_apigee_endpoint_attachment-1.0' do | ||
impact 1.0 | ||
title 'google_apigee_endpoint_attachment resource test' | ||
|
||
describe google_apigee_endpoint_attachment(name: endpoint_attachment['name']) do | ||
it { should exist } | ||
its('host') { should cmp endpoint_attachment['host'] } | ||
its('connection_state') { should cmp endpoint_attachment['connection_state'] } | ||
its('service_attachment') { should cmp endpoint_attachment['service_attachment'] } | ||
its('location') { should cmp endpoint_attachment['location'] } | ||
its('name') { should cmp endpoint_attachment['name'] } | ||
its('state') { should cmp endpoint_attachment['state'] } | ||
|
||
end | ||
|
||
describe google_apigee_endpoint_attachment(name: "does_not_exit") do | ||
it { should_not exist } | ||
end | ||
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
46 changes: 0 additions & 46 deletions
46
test/integration/verify/controls/google_apigee_organization_endpoint_attachment.rb
This file was deleted.
Oops, something went wrong.