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

organization_envgroup = input('organization_envgroup', value: {
  "name": "test-env-group",
  "parent": "organizations/ppradhan/envgroups",
  "hostname": "34.95.97.227.nip.io",
  "state": "ACTIVE",
  "created_at": "1698227493454"
}, description: 'organization_envgroup description')
control 'google_apigee_organization_envgroup-1.0' do
  impact 1.0
  title 'google_apigee_organization_envgroup resource test'

  describe google_apigee_organization_envgroup(name: "#{organization_envgroup['parent']}/#{organization_envgroup['name']}") do
  	it { should exist }
  	its('name') { should cmp organization_envgroup['name'] }
    its('hostnames') { should include organization_envgroup['hostname'] }
  	its('state') { should cmp organization_envgroup['state'] }
  	its('created_at') { should cmp organization_envgroup['created_at'] }
  end

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