Skip to content

Commit

Permalink
Test cases added.
Browse files Browse the repository at this point in the history
Signed-off-by: Samir <85890442+sa-progress@users.noreply.github.com>
  • Loading branch information
sa-progress committed Jan 18, 2024
1 parent ee194f9 commit df3c962
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/integration/configuration/mm-attributes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -627,3 +627,4 @@ organization_api_revision:
parent: "organizations/ppradhan/apis/helloworld"
content_type: "Application"
revision: 1
api: "helloworld"
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@

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
Expand All @@ -31,4 +33,12 @@
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

0 comments on commit df3c962

Please sign in to comment.