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

gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.')

  license = input('license', value: {
  "network_attachment": "value_networkattachment",
  "project": "windows-cloud",
  "region": "us-central1",
  "kind": "compute#license",
  "name": "mirantis-container-runtime",
  "id": "3607075093511293736",
  "license_code": "value_licensecode",
  "creation_timestamp": "value_creationtimestamp",
  "description": "value_description",
  "self_link": "value_selflink"
}, description: 'license description')
control 'google_compute_license-1.0' do
  impact 1.0
  title 'google_compute_license resource test'

  describe google_compute_license(name: license['id'], project: gcp_project_id, region: license['region']) do
  	it { should exist }
  	its('kind') { should cmp license['kind'] }
  	its('name') { should cmp license['name'] }
  	its('id') { should cmp license['id'] }
  	its('license_code') { should cmp license['license_code'] }
  	its('creation_timestamp') { should cmp license['creation_timestamp'] }
  	its('description') { should cmp license['description'] }
  	its('self_link') { should cmp license['self_link'] }

  end

  describe google_compute_license(name: license['id'], project: gcp_project_id, region: license['region']) do
  	it { should_not exist }
  end
end
