A google_bigquery_tables is used to test a Google Table resource
describe.one do
google_bigquery_tables(project: 'chef-gcp-inspec', dataset: 'inspec_gcp_dataset').table_references.each do |table_reference|
describe google_bigquery_table(project: 'chef-gcp-inspec', dataset: 'inspec_gcp_dataset', name: table_reference.table_id) do
its('expiration_time') { should cmp '1738882264000' }
its('description') { should eq 'A BigQuery table' }
end
end
end
Properties that can be accessed from the google_bigquery_tables resource:
See the google_bigquery_table resource for more information.
table_referencesgoogle_bigquery_table table_referenceclusteringsgoogle_bigquery_table clusteringcreation_timesgoogle_bigquery_table creation_timefriendly_namesgoogle_bigquery_table friendly_nameidsgoogle_bigquery_table idlabelsgoogle_bigquery_table labelslast_modified_timesgoogle_bigquery_table last_modified_timelocationsgoogle_bigquery_table locationnum_bytesgoogle_bigquery_table num_bytesnum_long_term_bytesgoogle_bigquery_table num_long_term_bytesnum_rowsgoogle_bigquery_table num_rowsrequire_partition_filtersgoogle_bigquery_table require_partition_filtertypesgoogle_bigquery_table typeviewsgoogle_bigquery_table viewtime_partitioningsgoogle_bigquery_table time_partitioningstreaming_buffersgoogle_bigquery_table streaming_bufferschemasgoogle_bigquery_table schemaencryption_configurationsgoogle_bigquery_table encryption_configurationexpiration_timesgoogle_bigquery_table expiration_timeexternal_data_configurationsgoogle_bigquery_table external_data_configurationdatasetsgoogle_bigquery_table datasetThis resource supports all of the above properties as filter criteria, which can be used with where as a block or a method.
Ensure the BigQuery API is enabled for the current project.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/inspec/resources/google_bigquery_tables/