-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathgoogle_apigee_organization_api_revisions.rb
44 lines (39 loc) · 1.81 KB
/
google_apigee_organization_api_revisions.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# ----------------------------------------------------------------------------
#
# *** 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_organization_api_revisions resource.'
#
gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.')
organization_api_revision = input('organization_api_revision', value: {
"parent": "organizations/ppradhan/apis/helloworld",
"name": "organizations/{organization}/apis/{api}/revisions/{revision}",
"content_type": "Application",
"data": "value_data",
"revision": 1,
"api": "helloworld"
}, description: 'organization_api_revision description')
control 'google_apigee_organization_api_revisions-1.0' do
impact 1.0
title 'google_apigee_organization_api_revisions resource test'
describe google_apigee_organization_api_revisions(parent: organization_api_revision['parent']) do
it { should exist }
its('revisions') { should include "1" }
end
google_apigee_organization_api_revisions(parent: organization_api_revision['parent']).revisions.each do |rev|
describe google_apigee_organization_api_revision(name: "organizations/#{gcp_project_id}/apis/#{api}/revisions/#{rev}") do
it { should exist }
its('type') { should cmp organization_api_revision['content_type'] }
its('revision') { should cmp organization_api_revision['revision'] }
end
end
end