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

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

  network_firewall_policy = input('network_firewall_policy', value: {
  "project": "value_project",
  "kind": "compute#firewallPolicy",
  "id": "3379931040786965079",
  "creation_timestamp": "value_creationtimestamp",
  "name": "inspec-test",
  "description": "",
  "fingerprint": "value_fingerprint",
  "self_link": "value_selflink",
  "self_link_with_id": "value_selflinkwithid",
  "short_name": "value_shortname",
  "display_name": "value_displayname",
  "parent": "value_parent",
  "region": "value_region"
}, description: 'network_firewall_policy description')
control 'google_compute_network_firewall_policy-1.0' do
  impact 1.0
  title 'google_compute_network_firewall_policy resource test'

  describe google_compute_network_firewall_policy(name: network_firewall_policy['name'], project: gcp_project_id) do
  	it { should exist }
  	its('kind') { should cmp network_firewall_policy['kind'] }
  	its('id') { should cmp network_firewall_policy['id'] }
  	its('creation_timestamp') { should cmp network_firewall_policy['creation_timestamp'] }
  	its('name') { should cmp network_firewall_policy['name'] }
  	its('description') { should cmp network_firewall_policy['description'] }
  	its('fingerprint') { should cmp network_firewall_policy['fingerprint'] }
  	its('self_link') { should cmp network_firewall_policy['self_link'] }
  	its('self_link_with_id') { should cmp network_firewall_policy['self_link_with_id'] }
  	its('short_name') { should cmp network_firewall_policy['short_name'] }
  	its('display_name') { should cmp network_firewall_policy['display_name'] }
  	its('parent') { should cmp network_firewall_policy['parent'] }
  	its('region') { should cmp network_firewall_policy['region'] }

  end

  describe google_compute_network_firewall_policy(name: network_firewall_policy['name'], project: gcp_project_id) do
  	it { should_not exist }
  end
end
