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

gcp_project_id = input(:gcp_project_id, value: 'ppradhan', description: 'The GCP project identifier.')
gcp_location = input(:gcp_location, value: 'us-central1', description: 'GCP location')
gcp_kms_key_ring_policy_name = input(:gcp_kms_key_ring_policy_name, value: 'gcp-inspec-kms-key-ring-aytsuncucfsfrvochsuubyovf', description: 'Key ring name')
gcp_kms_crypto_key = input(:gcp_kms_crypto_key, value: 'gcp-inspec-kms-crypto-key-policy-rbgvmohbidtgdzfatbzwckttd', description: 'Key name')
gcp_kms_crypto_key_version = input(:gcp_kms_crypto_key_version, value: '1', description: 'Version name')

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

  describe google_kms_crypto_key_versions(project: gcp_project_id, location: gcp_location, key_ring: gcp_kms_key_ring_policy_name, crypto_key: gcp_kms_crypto_key) do
    its('count') { should be >= 1 }
    its('crypto_key_names') { should include gcp_kms_crypto_key_name_policy }
  end
end
