# ----------------------------------------------------------------------------
#
#     ***     AUTO GENERATED CODE    ***    AUTO GENERATED CODE     ***
#
# ----------------------------------------------------------------------------
#
#     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_sourcerepo_repositories resource.'

gcp_project_id = attribute(:gcp_project_id, default: 'gcp_project_id', description: 'The GCP project identifier.')
repository = attribute('repository', default: {
  "name": "inspec-gcp-repository"
}, description: 'Source Repository definition')
control 'google_sourcerepo_repositories-1.0' do
  impact 1.0
  title 'google_sourcerepo_repositories resource test'

  repo_name = repository['name']
  describe.one do
    google_sourcerepo_repositories(project: gcp_project_id).names.each do |name|
      describe name do
        it { should match /\/repos\/#{repo_name}$/ }
      end
    end
  end
end
