-
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.
added tf scripts & updated test cases
Signed-off-by: balasubramanian-s <[email protected]>
- Loading branch information
1 parent
b60946f
commit 5d859a2
Showing
10 changed files
with
134 additions
and
108 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
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
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
49 changes: 49 additions & 0 deletions
49
test/integration/verify/controls/google_dataproc_metastore_federation.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,49 @@ | ||
# ---------------------------------------------------------------------------- | ||
# | ||
# *** 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_dataproc_metastore_federation resource.' | ||
|
||
gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.') | ||
federation = input('federation', value: { | ||
"name": "projects/ppradhan/locations/us-central1/federations/inspec-federation", | ||
"parent": "projects/ppradhan/locations/us-central1", | ||
"create_time": "2024-07-23T11:59:46.629125267Z", | ||
"update_time": "2024-07-23T12:01:30.424230443Z", | ||
"version": "3.1.2", | ||
"endpoint_uri": "https://standalone-federation-inspec-federation-4082ad6a-ct6cldpepa-uc.a.run.app:443", | ||
"state": "ACTIVE", | ||
"state_message": "value_statemessage", | ||
"uid": "d9600d29-81c5-47f1-8db6-4ffe194841fe" | ||
}, description: 'federation description') | ||
control 'google_dataproc_metastore_federation-1.0' do | ||
impact 1.0 | ||
title 'google_dataproc_metastore_federation resource test' | ||
|
||
describe google_dataproc_metastore_federation(name: federation['name']) do | ||
it { should exist } | ||
its('name') { should cmp federation['name'] } | ||
its('create_time') { should cmp federation['create_time'] } | ||
its('update_time') { should cmp federation['update_time'] } | ||
its('version') { should cmp federation['version'] } | ||
its('endpoint_uri') { should cmp federation['endpoint_uri'] } | ||
its('state') { should cmp federation['state'] } | ||
its('state_message') { should cmp federation['state_message'] } | ||
its('uid') { should cmp federation['uid'] } | ||
|
||
end | ||
|
||
describe google_dataproc_metastore_federation(name: "does_not_exit") do | ||
it { should_not exist } | ||
end | ||
end |
43 changes: 43 additions & 0 deletions
43
test/integration/verify/controls/google_dataproc_metastore_federations.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,43 @@ | ||
# ---------------------------------------------------------------------------- | ||
# | ||
# *** 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_dataproc_metastore_federations resource.' | ||
|
||
gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.') | ||
federation = input('federation', value: { | ||
"name": "projects/ppradhan/locations/us-central1/federations/inspec-federation", | ||
"parent": "projects/ppradhan/locations/us-central1", | ||
"create_time": "2024-07-23T11:59:46.629125267Z", | ||
"update_time": "2024-07-23T12:01:30.424230443Z", | ||
"version": "3.1.2", | ||
"endpoint_uri": "https://standalone-federation-inspec-federation-4082ad6a-ct6cldpepa-uc.a.run.app:443", | ||
"state": "ACTIVE", | ||
"state_message": "value_statemessage", | ||
"uid": "d9600d29-81c5-47f1-8db6-4ffe194841fe" | ||
}, description: 'federation description') | ||
control 'google_dataproc_metastore_federations-1.0' do | ||
impact 1.0 | ||
title 'google_dataproc_metastore_federations resource test' | ||
|
||
describe google_dataproc_metastore_federations(parent: federation['parent']) do | ||
it { should exist } | ||
its('names') { should include federation['name'] } | ||
its('create_times') { should include federation['create_time'] } | ||
its('update_times') { should include federation['update_time'] } | ||
its('versions') { should include federation['version'] } | ||
its('endpoint_uris') { should include federation['endpoint_uri'] } | ||
its('states') { should include federation['state'] } | ||
its('uids') { should include federation['uid'] } | ||
end | ||
end |
49 changes: 0 additions & 49 deletions
49
test/integration/verify/controls/google_dataproc_metastore_project_location_federation.rb
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
test/integration/verify/controls/google_dataproc_metastore_project_location_federations.rb
This file was deleted.
Oops, something went wrong.