# ----------------------------------------------------------------------------
#
#     ***     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 resource.'

organization = input('organization', value: {
  "name": "ppradhan",
  "parent": "organizations/ppradhan",
  "runtime_type": "CLOUD",
  "authorized_network": "default",
  "project_id": "ppradhan",
  "subscription_type": "PAID",
  "created_at": "1698225643253",
  "state": "ACTIVE",
  "analytics_region": "us-west1"
}, description: 'organization description')

control 'google_apigee_organization-1.0' do
  impact 1.0
  title 'google_apigee_organization resource test'

  describe google_apigee_organization(name: organization['parent']) do
  	it { should exist }
  	its('runtime_type') { should cmp organization['runtime_type'] }
  	its('authorized_network') { should cmp organization['authorized_network'] }
  	its('project_id') { should cmp organization['project_id'] }
  	its('subscription_type') { should cmp organization['subscription_type'] }
  	its('created_at') { should cmp organization['created_at'] }
  	its('state') { should cmp organization['state'] }
  	its('name') { should cmp organization['name'] }
  	its('analytics_region') { should cmp organization['analytics_region'] }
  end

  describe google_apigee_organization(name: "does_not_exit") do
  	it { should_not exist }
  end
end
