├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── config.yml │ ├── feature-request---new-table.md │ └── feature_request.md ├── PULL_REQUEST_TEMPLATE.md ├── dependabot.yml └── workflows │ ├── golangci-lint.yml │ ├── registry-publish.yml │ ├── stale.yml │ ├── steampipe-anywhere.yml │ └── sync-labels.yml ├── .gitignore ├── .goreleaser.yml ├── CHANGELOG.md ├── LICENSE ├── Makefile ├── README.md ├── config └── gcp.spc ├── docs ├── LICENSE ├── index.md └── tables │ ├── gcp_alloydb_cluster.md │ ├── gcp_alloydb_instance.md │ ├── gcp_apikeys_key.md │ ├── gcp_app_engine_application.md │ ├── gcp_artifact_registry_repository.md │ ├── gcp_audit_policy.md │ ├── gcp_bigquery_dataset.md │ ├── gcp_bigquery_job.md │ ├── gcp_bigquery_table.md │ ├── gcp_bigtable_instance.md │ ├── gcp_billing_account.md │ ├── gcp_billing_budget.md │ ├── gcp_cloud_asset.md │ ├── gcp_cloud_identity_group.md │ ├── gcp_cloud_identity_group_membership.md │ ├── gcp_cloud_run_job.md │ ├── gcp_cloud_run_service.md │ ├── gcp_cloudfunctions_function.md │ ├── gcp_composer_environment.md │ ├── gcp_compute_address.md │ ├── gcp_compute_autoscaler.md │ ├── gcp_compute_backend_bucket.md │ ├── gcp_compute_backend_service.md │ ├── gcp_compute_disk.md │ ├── gcp_compute_disk_metric_read_ops.md │ ├── gcp_compute_disk_metric_read_ops_daily.md │ ├── gcp_compute_disk_metric_read_ops_hourly.md │ ├── gcp_compute_disk_metric_write_ops.md │ ├── gcp_compute_disk_metric_write_ops_daily.md │ ├── gcp_compute_disk_metric_write_ops_hourly.md │ ├── gcp_compute_firewall.md │ ├── gcp_compute_forwarding_rule.md │ ├── gcp_compute_global_address.md │ ├── gcp_compute_global_forwarding_rule.md │ ├── gcp_compute_ha_vpn_gateway.md │ ├── gcp_compute_image.md │ ├── gcp_compute_instance.md │ ├── gcp_compute_instance_group.md │ ├── gcp_compute_instance_group_manager.md │ ├── gcp_compute_instance_metric_cpu_utilization.md │ ├── gcp_compute_instance_metric_cpu_utilization_daily.md │ ├── gcp_compute_instance_metric_cpu_utilization_hourly.md │ ├── gcp_compute_instance_template.md │ ├── gcp_compute_machine_image.md │ ├── gcp_compute_machine_type.md │ ├── gcp_compute_network.md │ ├── gcp_compute_node_group.md │ ├── gcp_compute_node_template.md │ ├── gcp_compute_project_metadata.md │ ├── gcp_compute_region.md │ ├── gcp_compute_resource_policy.md │ ├── gcp_compute_route.md │ ├── gcp_compute_router.md │ ├── gcp_compute_snapshot.md │ ├── gcp_compute_ssl_policy.md │ ├── gcp_compute_subnetwork.md │ ├── gcp_compute_target_https_proxy.md │ ├── gcp_compute_target_pool.md │ ├── gcp_compute_target_ssl_proxy.md │ ├── gcp_compute_target_vpn_gateway.md │ ├── gcp_compute_tpu.md │ ├── gcp_compute_url_map.md │ ├── gcp_compute_vpn_tunnel.md │ ├── gcp_compute_zone.md │ ├── gcp_dataplex_asset.md │ ├── gcp_dataplex_lake.md │ ├── gcp_dataplex_task.md │ ├── gcp_dataplex_zone.md │ ├── gcp_dataproc_cluster.md │ ├── gcp_dataproc_metastore_service.md │ ├── gcp_dns_managed_zone.md │ ├── gcp_dns_policy.md │ ├── gcp_dns_record_set.md │ ├── gcp_firestore_database.md │ ├── gcp_iam_policy.md │ ├── gcp_iam_role.md │ ├── gcp_kms_key.md │ ├── gcp_kms_key_ring.md │ ├── gcp_kms_key_version.md │ ├── gcp_kubernetes_cluster.md │ ├── gcp_kubernetes_node_pool.md │ ├── gcp_logging_bucket.md │ ├── gcp_logging_exclusion.md │ ├── gcp_logging_log_entry.md │ ├── gcp_logging_metric.md │ ├── gcp_logging_sink.md │ ├── gcp_monitoring_alert_policy.md │ ├── gcp_monitoring_group.md │ ├── gcp_monitoring_notification_channel.md │ ├── gcp_organization.md │ ├── gcp_organization_project.md │ ├── gcp_project.md │ ├── gcp_project_organization_policy.md │ ├── gcp_project_service.md │ ├── gcp_pubsub_snapshot.md │ ├── gcp_pubsub_subscription.md │ ├── gcp_pubsub_topic.md │ ├── gcp_redis_cluster.md │ ├── gcp_redis_instance.md │ ├── gcp_secret_manager_secret.md │ ├── gcp_service_account.md │ ├── gcp_service_account_key.md │ ├── gcp_sql_backup.md │ ├── gcp_sql_database.md │ ├── gcp_sql_database_instance.md │ ├── gcp_sql_database_instance_metric_connections.md │ ├── gcp_sql_database_instance_metric_connections_daily.md │ ├── gcp_sql_database_instance_metric_connections_hourly.md │ ├── gcp_sql_database_instance_metric_cpu_utilization.md │ ├── gcp_sql_database_instance_metric_cpu_utilization_daily.md │ ├── gcp_sql_database_instance_metric_cpu_utilization_hourly.md │ ├── gcp_storage_bucket.md │ ├── gcp_storage_object.md │ ├── gcp_tag_binding.md │ ├── gcp_vertex_ai_endpoint.md │ ├── gcp_vertex_ai_model.md │ ├── gcp_vertex_ai_notebook_runtime_template.md │ └── gcp_vpc_access_connector.md ├── gcp-test ├── .gitignore ├── package-lock.json ├── package.json ├── tests │ ├── gcp_alloydb_cluster │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_alloydb_instance │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_bigquery_dataset │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_bigquery_job │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_bigquery_table │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_bigtable_instance │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_address │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_autoscaler │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_backend_bucket │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_backend_service │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_disk │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_firewall │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_forwarding_rule │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_global_address │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_global_forwarding_rule │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_ha_vpn_gateway │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_image │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_instance │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_instance_group │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_instance_template │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_machine_image │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_machine_type │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_network │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_node_group │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_node_template │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_project_metadata │ │ ├── dependencies.txt │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_resource_policy │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_route │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_router │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_snapshot │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_ssl_policy │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_subnetwork │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-ip-info-expected.json │ │ ├── test-get-ip-info-query.sql │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_target_https_proxy │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_target_pool │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_target_ssl_proxy │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_target_vpn_gateway │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_url_map │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_compute_vpn_tunnel │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_dataplex_asset │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_dataplex_lake │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_dataplex_task │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_dataplex_zone │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_dataproc_cluster │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_dataproc_metastore_service │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_dns_managed_zone │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_dns_policy │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_dns_record_set │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_iam_role │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_kms_key │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_kms_key_ring │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_kms_key_version │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_kubernetes_cluster │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_kubernetes_node_pool │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_logging_bucket │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_logging_exclusion │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_logging_metric │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_logging_sink │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_monitoring_alert_policy │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_monitoring_group │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_monitoring_notification_channel │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_organization │ │ ├── dependencies.txt │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_project │ │ ├── dependencies.txt │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_project_organization_policy │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_pubsub_subscription │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_pubsub_topic │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_secret_manager_secret │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_service_account │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_service_account_key │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_sql_backup │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_sql_database │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_sql_database_instance │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-invalid-name-expected.json │ │ ├── test-invalid-name-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_storage_bucket │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ ├── gcp_tag_binding │ │ ├── dependencies.txt │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-notfound-expected.json │ │ ├── test-notfound-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf │ └── gcp_vpc_access_connector │ │ ├── dependencies.txt │ │ ├── test-get-expected.json │ │ ├── test-get-query.sql │ │ ├── test-hydrate-expected.json │ │ ├── test-hydrate-query.sql │ │ ├── test-list-expected.json │ │ ├── test-list-query.sql │ │ ├── test-not-found-expected.json │ │ ├── test-not-found-query.sql │ │ ├── test-turbot-expected.json │ │ ├── test-turbot-query.sql │ │ ├── variables.json │ │ └── variables.tf └── tint.js ├── gcp ├── alloydb_location_list.go ├── artifact_registry_location_list.go ├── cloud_run_location_list.go ├── compute_location_list.go ├── connection_config.go ├── dataplex_location_list.go ├── dataproc_metastore_location_list.go ├── ignore_error_predicate.go ├── kms_multi_location.go ├── monitoring_metric.go ├── plugin.go ├── service.go ├── table_gcp_alloydb_cluster.go ├── table_gcp_alloydb_instance.go ├── table_gcp_apikeys_key.go ├── table_gcp_app_engine_application.go ├── table_gcp_artifact_registry_repository.go ├── table_gcp_audit_policy.go ├── table_gcp_bigquery_dataset.go ├── table_gcp_bigquery_job.go ├── table_gcp_bigquery_table.go ├── table_gcp_bigtable_instance.go ├── table_gcp_billing_account.go ├── table_gcp_billing_budget.go ├── table_gcp_cloud_asset.go ├── table_gcp_cloud_identity_group.go ├── table_gcp_cloud_identity_group_membership.go ├── table_gcp_cloud_run_job.go ├── table_gcp_cloud_run_service.go ├── table_gcp_cloudfunctions_function.go ├── table_gcp_composer_environment.go ├── table_gcp_compute_address.go ├── table_gcp_compute_autoscaler.go ├── table_gcp_compute_backend_bucket.go ├── table_gcp_compute_backend_service.go ├── table_gcp_compute_disk.go ├── table_gcp_compute_disk_metric_read_ops.go ├── table_gcp_compute_disk_metric_read_ops_daily.go ├── table_gcp_compute_disk_metric_read_ops_hourly.go ├── table_gcp_compute_disk_metric_write_ops.go ├── table_gcp_compute_disk_metric_write_ops_daily.go ├── table_gcp_compute_disk_metric_write_ops_hourly.go ├── table_gcp_compute_firewall.go ├── table_gcp_compute_forwarding_rule.go ├── table_gcp_compute_global_address.go ├── table_gcp_compute_global_forwarding_rule.go ├── table_gcp_compute_ha_vpn_gateway.go ├── table_gcp_compute_image.go ├── table_gcp_compute_instance.go ├── table_gcp_compute_instance_group.go ├── table_gcp_compute_instance_group_manager.go ├── table_gcp_compute_instance_metric_cpu_utilization.go ├── table_gcp_compute_instance_metric_cpu_utilization_daily.go ├── table_gcp_compute_instance_metric_cpu_utilization_hourly.go ├── table_gcp_compute_instance_template.go ├── table_gcp_compute_machine_image.go ├── table_gcp_compute_machine_type.go ├── table_gcp_compute_network.go ├── table_gcp_compute_node_group.go ├── table_gcp_compute_node_template.go ├── table_gcp_compute_project_metadata.go ├── table_gcp_compute_region.go ├── table_gcp_compute_resource_policy.go ├── table_gcp_compute_route.go ├── table_gcp_compute_router.go ├── table_gcp_compute_snapshot.go ├── table_gcp_compute_ssl_policy.go ├── table_gcp_compute_subnetwork.go ├── table_gcp_compute_target_https_proxy.go ├── table_gcp_compute_target_pool.go ├── table_gcp_compute_target_ssl_proxy.go ├── table_gcp_compute_target_vpn_gateway.go ├── table_gcp_compute_tpu.go ├── table_gcp_compute_url_map.go ├── table_gcp_compute_vpn_tunnel.go ├── table_gcp_compute_zone.go ├── table_gcp_dataplex_asset.go ├── table_gcp_dataplex_lake.go ├── table_gcp_dataplex_task.go ├── table_gcp_dataplex_zone.go ├── table_gcp_dataproc_cluster.go ├── table_gcp_dataproc_metastore_service.go ├── table_gcp_dns_managed_zone.go ├── table_gcp_dns_policy.go ├── table_gcp_dns_record_set.go ├── table_gcp_firestore_database.go ├── table_gcp_iam_policy.go ├── table_gcp_iam_role.go ├── table_gcp_kms_key.go ├── table_gcp_kms_key_ring.go ├── table_gcp_kms_key_version.go ├── table_gcp_kubernetes_cluster.go ├── table_gcp_kubernetes_node_pool.go ├── table_gcp_logging_bucket.go ├── table_gcp_logging_exclusion.go ├── table_gcp_logging_log_entry.go ├── table_gcp_logging_metric.go ├── table_gcp_logging_sink.go ├── table_gcp_monitoring_alert_policy.go ├── table_gcp_monitoring_group.go ├── table_gcp_monitoring_notification_channel.go ├── table_gcp_organization.go ├── table_gcp_organization_project.go ├── table_gcp_project.go ├── table_gcp_project_organization_policy.go ├── table_gcp_project_service.go ├── table_gcp_pubsub_snapshot.go ├── table_gcp_pubsub_subscription.go ├── table_gcp_pubsub_topic.go ├── table_gcp_redis_cluster.go ├── table_gcp_redis_instance.go ├── table_gcp_secret_manager_secret.go ├── table_gcp_service_account.go ├── table_gcp_service_account_key.go ├── table_gcp_sql_backup.go ├── table_gcp_sql_database.go ├── table_gcp_sql_database_instance.go ├── table_gcp_sql_database_instance_metric_connections.go ├── table_gcp_sql_database_instance_metric_connections_daily.go ├── table_gcp_sql_database_instance_metric_connections_hourly.go ├── table_gcp_sql_database_instance_metric_cpu_utilization.go ├── table_gcp_sql_database_instance_metric_cpu_utilization_daily.go ├── table_gcp_sql_database_instance_metric_cpu_utilization_hourly.go ├── table_gcp_storage_bucket.go ├── table_gcp_storage_object.go ├── table_gcp_tag_binding.go ├── table_gcp_vertex_ai_endpoint.go ├── table_gcp_vertex_ai_model.go ├── table_gcp_vertex_ai_notebook_runtime_template.go ├── table_gcp_vpc_access_connector.go ├── utils.go ├── vertex_ai_location_list.go └── vpc_access_location_list.go ├── go.mod ├── go.sum └── main.go /.github/workflows/sync-labels.yml: -------------------------------------------------------------------------------- 1 | name: Sync Labels 2 | on: 3 | schedule: 4 | - cron: "30 22 * * 1" 5 | workflow_dispatch: 6 | 7 | jobs: 8 | sync_labels_workflow: 9 | uses: turbot/steampipe-workflows/.github/workflows/sync-labels.yml@main 10 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | STEAMPIPE_INSTALL_DIR ?= ~/.steampipe 2 | BUILD_TAGS = netgo 3 | 4 | install: 5 | go build -o $(STEAMPIPE_INSTALL_DIR)/plugins/hub.steampipe.io/plugins/turbot/gcp@latest/steampipe-plugin-gcp.plugin -tags "${BUILD_TAGS}" *.go 6 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_cluster/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_alloydb_cluster/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_cluster/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "display_name": "{{ resourceName }}", 4 | "name": "{{ output.resource_id.value }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_cluster/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name 2 | from gcp.gcp_alloydb_cluster 3 | where display_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_cluster/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "display_name": "{{ resourceName }}", 4 | "name": "{{ output.resource_id.value }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_cluster/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name 2 | from gcp.gcp_alloydb_cluster 3 | where akas::text = '["{{ output.resource_aka.value }}"]' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_cluster/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_cluster/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select name, title, akas 2 | from gcp.gcp_alloydb_cluster 3 | where display_name = '{{ resourceName }}:asdf' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_cluster/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_cluster/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_alloydb_cluster 3 | where display_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_cluster/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_instance/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_alloydb_instance/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_instance/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "cluster_name": "{{ resourceName }}", 4 | "instance_display_name": "{{ resourceName }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_instance/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select cluster_name, instance_display_name 2 | from gcp.gcp_alloydb_instance 3 | where cluster_name = '{{ resourceName }}' and instance_display_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_instance/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "cluster_name": "{{ resourceName }}", 4 | "instance_display_name": "{{ resourceName }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_instance/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select cluster_name, instance_display_name 2 | from gcp.gcp_alloydb_instance 3 | where cluster_name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_instance/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_instance/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select cluster_name, title, akas 2 | from gcp.gcp_alloydb_instance 3 | where cluster_name = '{{ resourceName }}:asdf' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_instance/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_instance/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_alloydb_instance 3 | where cluster_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_alloydb_instance/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_dataset/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_bigquery_dataset/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_dataset/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, dataset_id, id, description, kind, etag, default_partition_expiration_ms, default_table_expiration_ms, self_link, access, labels, project, location 2 | from gcp.gcp_bigquery_dataset 3 | where dataset_id = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_dataset/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select dataset_id, description, kind, etag, self_link 2 | from gcp.gcp_bigquery_dataset 3 | where dataset_id = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_dataset/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_dataset/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_bigquery_dataset 3 | where dataset_id = ''; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_dataset/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "This is a test dataset to validate the table outcome.", 4 | "name": "turbot_{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_dataset/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_bigquery_dataset 3 | where id = '{{ output.project_id.value }}:{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_dataset/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_dataset/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, kind, description 2 | from gcp.gcp_bigquery_dataset 3 | where dataset_id = 'dummy-{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_dataset/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "tags": { 5 | "name": "{{ resourceName }}" 6 | }, 7 | "title": "turbot_{{ resourceName }}" 8 | } 9 | ] 10 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_dataset/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, tags, akas 2 | from gcp.gcp_bigquery_dataset 3 | where dataset_id = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_dataset/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_job/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select job_id, id, kind, project, location 2 | from gcp.gcp_bigquery_job 3 | where job_id = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_job/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": "{{ output.resource_id.value }}", 4 | "job_id": "{{ resourceName }}", 5 | "kind": "bigquery#job" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_job/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select job_id, id, kind 2 | from gcp.gcp_bigquery_job 3 | where id = '{{ output.resource_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_job/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_job/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select id, kind 2 | from gcp.gcp_bigquery_job 3 | where job_id = 'dummy-{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_job/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "title": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_job/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_bigquery_job 3 | where job_id = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_job/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_table/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_bigquery_table/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_table/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_table/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | dataset_id, 3 | id 4 | from 5 | gcp.gcp_bigquery_table 6 | where 7 | table_id = '' 8 | and dataset_id = '{{ resourceName }}'; 9 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_table/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "dataset_id": "{{ resourceName }}", 4 | "table_id": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_table/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | dataset_id, 3 | table_id 4 | from 5 | gcp.gcp_bigquery_table 6 | where 7 | table_id = '{{ resourceName }}'; 8 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_table/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_table/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | dataset_id, 3 | table_id, 4 | kind 5 | from 6 | gcp.gcp_bigquery_table 7 | where 8 | table_id = 'dummy_{{ resourceName }}' 9 | and dataset_id = 'dummy_{{ resourceName }}'; 10 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_table/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "tags": { 5 | "name": "{{ resourceName }}" 6 | }, 7 | "title": "{{ resourceName }}" 8 | } 9 | ] 10 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_table/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | title, 3 | tags, 4 | akas 5 | from 6 | gcp.gcp_bigquery_table 7 | where 8 | table_id = '{{ resourceName }}' 9 | and dataset_id = '{{ resourceName }}'; 10 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigquery_table/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigtable_instance/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_bigtable_instance/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigtable_instance/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "display_name": "{{ resourceName }}", 4 | "instance_type": "DEVELOPMENT", 5 | "location": "global", 6 | "name": "{{ resourceName }}", 7 | "project": "{{ output.project_id.value }}" 8 | } 9 | ] 10 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigtable_instance/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name, instance_type, location, project 2 | from gcp.gcp_bigtable_instance 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigtable_instance/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, iam_policy 2 | from gcp.gcp_bigtable_instance 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigtable_instance/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigtable_instance/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name, state 2 | from gcp.gcp_bigtable_instance 3 | where name = ''; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigtable_instance/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "display_name": "{{ resourceName }}", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigtable_instance/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name 2 | from gcp.gcp_bigtable_instance 3 | where title = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigtable_instance/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigtable_instance/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name, instance_type, state 2 | from gcp.gcp_bigtable_instance 3 | where name = 'dummy-{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigtable_instance/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "tags": { 5 | "name": "{{ resourceName }}" 6 | }, 7 | "title": "{{ resourceName }}" 8 | } 9 | ] 10 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigtable_instance/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select tags, title, akas 2 | from gcp.gcp_bigtable_instance 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_bigtable_instance/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_address/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_address/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_address/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, address_type, description, kind, network_tier, self_link, location, project, subnetwork 2 | from gcp.gcp_compute_address 3 | where name = '{{resourceName}}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_address/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, address_type, description, kind, network_tier, self_link 2 | from gcp.gcp_compute_address 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_address/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_address/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_address 3 | where name = '' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_address/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test address to validate integration test.", 4 | "name": "{{resourceName}}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_address/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_compute_address 3 | where title = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_address/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_address/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, address, address_type 2 | from gcp.gcp_compute_address 3 | where name = 'dummy-{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_address/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{resourceName}}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_address/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_address 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_address/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_autoscaler/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_autoscaler/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_autoscaler/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | description, 4 | kind, 5 | self_link, 6 | status, 7 | location, 8 | project, 9 | recommended_size 10 | from 11 | gcp_compute_autoscaler 12 | where 13 | name = '{{resourceName}}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_autoscaler/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | description, 4 | kind, 5 | self_link, 6 | status, 7 | location, 8 | project, 9 | recommended_size 10 | from 11 | gcp_compute_autoscaler 12 | where 13 | title = '{{resourceName}}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_autoscaler/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_autoscaler/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{resourceName}}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_autoscaler/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | title, 3 | akas 4 | from 5 | gcp_compute_autoscaler 6 | where 7 | name = '{{resourceName}}'; 8 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_autoscaler/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_bucket/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_backend_bucket/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_bucket/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, kind, enable_cdn, self_link, bucket_name, project 2 | from gcp.gcp_compute_backend_bucket 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_bucket/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, kind, enable_cdn, self_link 2 | from gcp.gcp_compute_backend_bucket 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_bucket/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_bucket/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_backend_bucket 3 | where name = '' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_bucket/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test backend bucket to validate integration test.", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_bucket/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_compute_backend_bucket 3 | where title = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_bucket/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_bucket/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description, kind 2 | from gcp.gcp_compute_backend_bucket 3 | where name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_bucket/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_bucket/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_backend_bucket 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_bucket/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_service/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_backend_service/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_service/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, enable_cdn, description, kind, self_link 2 | from gcp.gcp_compute_backend_service 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_service/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_service/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_backend_service 3 | where name = '' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_service/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test Backend Service to verify the table.", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_service/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_compute_backend_service 3 | where title = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_service/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_service/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, enable_cdn, load_balancing_scheme 2 | from gcp.gcp_compute_backend_service 3 | where name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_service/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_service/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_backend_service 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_backend_service/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_disk/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_disk/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_disk/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, self_link, title, akas, location, project, tags, labels 2 | from gcp.gcp_compute_disk 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_disk/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, iam_policy 2 | from gcp.gcp_compute_disk 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_disk/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, self_link, title, akas, location, project, tags, labels 2 | from gcp.gcp_compute_disk 3 | where akas::text = '["{{ output.resource_aka.value }}"]' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_disk/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_disk/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select name, iam_policy 2 | from gcp.gcp_compute_disk 3 | where name = '{{ resourceName }}:asdfghjkl' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_disk/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_firewall/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_firewall/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_firewall/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, direction, description, kind, disabled, self_link, action, project, network, log_config_enable, allowed, source_tags 2 | from gcp.gcp_compute_firewall 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_firewall/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, direction, description, kind, action, self_link 2 | from gcp.gcp_compute_firewall 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_firewall/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_firewall/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_firewall 3 | where name = '' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_firewall/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test firewall rule to verify the table.", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_firewall/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_compute_firewall 3 | where title = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_firewall/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_firewall/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, direction, kind 2 | from gcp.gcp_compute_firewall 3 | where name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_firewall/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_firewall/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_firewall 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_firewall/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_forwarding_rule/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_forwarding_rule/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_forwarding_rule/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, allow_global_access, kind, region, self_link, all_ports, ip_protocol 2 | from gcp.gcp_compute_forwarding_rule 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_forwarding_rule/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test forwarding rule to verify the table.", 4 | "kind": "compute#forwardingRule", 5 | "name": "{{ resourceName }}" 6 | } 7 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_forwarding_rule/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, kind 2 | from gcp.gcp_compute_forwarding_rule 3 | where title = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_forwarding_rule/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_forwarding_rule/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description, ip_address 2 | from gcp.gcp_compute_forwarding_rule 3 | where name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_forwarding_rule/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "tags": { 7 | "name": "{{ resourceName }}" 8 | }, 9 | "title": "{{ resourceName }}" 10 | } 11 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_forwarding_rule/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas, tags 2 | from gcp.gcp_compute_forwarding_rule 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_forwarding_rule/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_address/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_global_address/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_address/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, address_type, description, kind, network_tier, self_link, project 2 | from gcp_compute_global_address 3 | where name = '{{resourceName}}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_address/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, address_type, description, kind, network_tier, self_link 2 | from gcp_compute_global_address 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_address/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test global address to validate integration test.", 4 | "name": "{{resourceName}}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_address/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp_compute_global_address 3 | where title = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_address/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_address/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, address, address_type 2 | from gcp_compute_global_address 3 | where name = 'dummy-{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_address/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{resourceName}}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_address/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp_compute_global_address 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_address/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_forwarding_rule/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_global_forwarding_rule/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_forwarding_rule/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, allow_global_access, kind, self_link, all_ports, ip_protocol, target, project 2 | from gcp.gcp_compute_global_forwarding_rule 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_forwarding_rule/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, allow_global_access, kind, self_link, all_ports, ip_protocol, target 2 | from gcp.gcp_compute_global_forwarding_rule 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_forwarding_rule/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test Global Forwarding Rule to validate integration test.", 4 | "kind": "compute#forwardingRule", 5 | "name": "{{resourceName}}" 6 | } 7 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_forwarding_rule/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, kind 2 | from gcp.gcp_compute_global_forwarding_rule 3 | where title = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_forwarding_rule/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_forwarding_rule/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description, ip_address 2 | from gcp.gcp_compute_global_forwarding_rule 3 | where name = 'dummy-{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_forwarding_rule/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{resourceName}}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_forwarding_rule/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_global_forwarding_rule 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_global_forwarding_rule/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ha_vpn_gateway/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_ha_vpn_gateway/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ha_vpn_gateway/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | description, 4 | location, 5 | self_link, 6 | kind 7 | from 8 | gcp_compute_ha_vpn_gateway 9 | where 10 | name = '{{ output.resource_name.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ha_vpn_gateway/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | description, 4 | location, 5 | self_link, 6 | kind 7 | from 8 | gcp_compute_ha_vpn_gateway 9 | where 10 | title = '{{ output.resource_name.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ha_vpn_gateway/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ha_vpn_gateway/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | id, 4 | description, 5 | location, 6 | self_link, 7 | kind 8 | from 9 | gcp_compute_ha_vpn_gateway 10 | where 11 | name = '{{ resourceName }}-dummy'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ha_vpn_gateway/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ha_vpn_gateway/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | title, 3 | akas 4 | from 5 | gcp_compute_ha_vpn_gateway 6 | where 7 | name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ha_vpn_gateway/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_image/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_image/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_image/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, kind, description, self_link, disk_size_gb, source_disk, project, labels 2 | from gcp.gcp_compute_image 3 | where name = '{{ resourceName }}' and project = '{{ output.project_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_image/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, kind, description, disk_size_gb, self_link, source_disk, iam_policy 2 | from gcp.gcp_compute_image 3 | where name = '{{ resourceName }}' and project = '{{ output.project_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_image/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_image/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_image 3 | where name = '' and project = '{{ output.project_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_image/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test image to verify the table.", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_image/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_compute_image 3 | where title = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_image/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_image/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, kind, description 2 | from gcp.gcp_compute_image 3 | where name = 'dummy-{{ resourceName }}' and project = '{{ output.project_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_image/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "tags": { 7 | "name": "{{ resourceName }}" 8 | }, 9 | "title": "{{ resourceName }}" 10 | } 11 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_image/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas, tags 2 | from gcp.gcp_compute_image 3 | where name = '{{ resourceName }}' and project = '{{ output.project_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_image/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_instance/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, iam_policy 2 | from gcp.gcp_compute_instance 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_instance 3 | where name = ''; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test VM instance to verify the table.", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_compute_instance 3 | where title = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_instance 3 | where name = 'dummy-{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "tags": { 5 | "name": "{{ resourceName }}" 6 | }, 7 | "title": "{{ resourceName }}" 8 | } 9 | ] 10 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select tags, title, akas 2 | from gcp.gcp_compute_instance 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance_group/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_instance_group/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance_group/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | description, 4 | self_link, 5 | size::text, 6 | title, 7 | akas, 8 | location, 9 | project 10 | from 11 | gcp_compute_instance_group 12 | where 13 | name = '{{resourceName}}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance_group/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | description, 4 | self_link, 5 | size::text, 6 | title, 7 | akas, 8 | location, 9 | project 10 | from 11 | gcp_compute_instance_group 12 | where 13 | name = '{{resourceName}}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance_group/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance_group/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance_template/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_instance_template/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance_template/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, instance_description, description, kind, instance_machine_type, self_link 2 | from gcp.gcp_compute_instance_template 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance_template/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance_template/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_instance_template 3 | where name = '' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance_template/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test instance template to verify the table.", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance_template/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_compute_instance_template 3 | where title = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance_template/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance_template/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_instance_template 3 | where name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance_template/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "tags": { 5 | "name": "{{ resourceName }}" 6 | }, 7 | "title": "{{ resourceName }}" 8 | } 9 | ] 10 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance_template/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select tags, title, akas 2 | from gcp.gcp_compute_instance_template 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_instance_template/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_image/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_machine_image/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_image/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "kind": "compute#machineImage", 4 | "name": "{{ resourceName }}", 5 | "self_link": "{{ output.self_link.value }}", 6 | "title": "{{ resourceName }}" 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_image/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, title, kind, self_link 2 | from gcp.gcp_compute_machine_image 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_image/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "name": "{{ resourceName }}", 5 | "title": "{{ resourceName }}" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_image/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, title, akas 2 | from gcp.gcp_compute_machine_image 3 | where akas::text = '["{{ output.resource_aka.value }}"]'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_image/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_image/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select name, id 2 | from gcp.gcp_compute_machine_image 3 | where name = 'dummy{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_image/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "title": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_image/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_machine_image 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_image/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_type/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_machine_type/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_type/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "name": "{{ output.machine_type.value }}", 5 | "title": "{{ output.machine_type.value }}" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_type/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, title, akas 2 | from gcp.gcp_compute_machine_type 3 | where akas::text = '["{{ output.resource_aka.value }}"]' and zone = 'us-east1-b'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_type/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_type/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select name, id 2 | from gcp.gcp_compute_machine_type 3 | where name = '{{ output.machine_type.value }}.dd'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_type/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "title": "{{ output.machine_type.value }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_type/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_machine_type 3 | where name = '{{ output.machine_type.value }}' and zone = 'us-east1-b'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_machine_type/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_network/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_network/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_network/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, gateway_ipv4, mtu, kind, auto_create_subnetworks, routing_mode, self_link, project, title, akas 2 | from gcp.gcp_compute_network 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_network/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, kind, auto_create_subnetworks, self_link, project, title, akas 2 | from gcp.gcp_compute_network 3 | where akas::text = '["{{ output.resource_aka.value }}"]' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_network/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_network/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, kind, auto_create_subnetworks, self_link, project, title, akas 2 | from gcp.gcp_compute_network 3 | where name = '{{ resourceName }}:asdf' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_network/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_group/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_node_group/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_group/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, kind, self_link, project, maintenance_policy, autoscaling_policy_mode, autoscaling_policy_max_nodes, autoscaling_policy_min_nodes 2 | from gcp.gcp_compute_node_group 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_group/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, kind, location, self_link 2 | from gcp.gcp_compute_node_group 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_group/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_group/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_node_group 3 | where name = '' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_group/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "autoscaling_policy_max_nodes": 10, 4 | "name": "{{ resourceName }}", 5 | "size": 1 6 | } 7 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_group/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, autoscaling_policy_max_nodes, size 2 | from gcp.gcp_compute_node_group 3 | where title = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_group/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_group/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, size, kind 2 | from gcp.gcp_compute_node_group 3 | where name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_group/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_group/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_node_group 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_group/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_template/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_node_template/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_template/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, kind, node_type, self_link, server_binding_type, region, location, project, node_affinity_labels 2 | from gcp.gcp_compute_node_template 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_template/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, kind, node_type, self_link, server_binding_type 2 | from gcp.gcp_compute_node_template 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_template/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_template/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_node_template 3 | where name = '' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_template/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test Node Template resource to verify the table.", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_template/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_compute_node_template 3 | where title = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_template/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_template/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, kind, description 2 | from gcp.gcp_compute_node_template 3 | where name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_template/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_template/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_node_template 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_node_template/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_project_metadata/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_project_metadata/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_project_metadata/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.project_aka.value }}"], 4 | "name": "{{ output.project_id.value }}", 5 | "title": "{{ output.project_id.value }}" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_project_metadata/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select name, title, akas 2 | from gcp.gcp_compute_project_metadata 3 | where name = '{{ output.project_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_project_metadata/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_resource_policy/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_resource_policy/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_resource_policy/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, status, self_link, kind, instance_schedule_policy 2 | from gcp.gcp_compute_resource_policy 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_resource_policy/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_resource_policy/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_resource_policy 3 | where name = ''; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_resource_policy/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Start and stop instances", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_resource_policy/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_compute_resource_policy 3 | where title = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_resource_policy/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_resource_policy/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_compute_resource_policy 3 | where name = 'dummy-{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_resource_policy/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "title": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_resource_policy/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_resource_policy 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_resource_policy/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_route/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_route/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_route/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, dest_range, description, kind, network, self_link, next_hop_ip, project, priority 2 | from gcp_compute_route 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_route/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, dest_range, description, kind, network, self_link 2 | from gcp_compute_route 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_route/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_route/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp_compute_route 3 | where name = '' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_route/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test route to verify the table.", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_route/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp_compute_route 3 | where title = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_route/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_route/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, kind 2 | from gcp_compute_route 3 | where name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_route/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_route/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp_compute_route 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_route/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_router/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_router/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_router/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, bgp_asn, description, kind, bgp_advertise_mode, bgp_advertised_groups, bgp_advertised_ip_ranges, self_link, location, project, network 2 | from gcp.gcp_compute_router 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_router/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, bgp_asn, description, kind, bgp_advertise_mode, self_link 2 | from gcp.gcp_compute_router 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_router/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_router/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_router 3 | where name = '' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_router/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test router to verify the table.", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_router/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_compute_router 3 | where title = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_router/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_router/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, kind, description 2 | from gcp.gcp_compute_router 3 | where name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_router/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_router/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_router 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_router/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_snapshot/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_snapshot/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_snapshot/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, title, auto_created, description, disk_size_gb, source_disk, akas, project 2 | from gcp.gcp_compute_snapshot 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_snapshot/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, source_disk, disk_size_gb, self_link, project, title, akas, labels, storage_locations, tags 2 | from gcp.gcp_compute_snapshot 3 | where akas::text = '["{{ output.resource_aka.value }}"]' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_snapshot/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_snapshot/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, source_disk, self_link, project, title, akas 2 | from gcp.gcp_compute_snapshot 3 | where name = '{{ resourceName }}:asdf' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_snapshot/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{resourceName}}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_snapshot/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_snapshot 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_snapshot/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ssl_policy/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_ssl_policy/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ssl_policy/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, kind, fingerprint, min_tls_version, profile, enabled_features, self_link, project, location 2 | from gcp.gcp_compute_ssl_policy 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ssl_policy/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ssl_policy/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_ssl_policy 3 | where name = ''; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ssl_policy/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test SSL policy to validate the table outcome.", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ssl_policy/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_compute_ssl_policy 3 | where akas::text = '["{{ output.resource_aka.value }}"]'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ssl_policy/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ssl_policy/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, kind, description 2 | from gcp.gcp_compute_ssl_policy 3 | where name = 'dummy-{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ssl_policy/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "title": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ssl_policy/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_ssl_policy 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_ssl_policy/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_subnetwork/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_subnetwork/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_subnetwork/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, iam_policy 2 | from gcp.gcp_compute_subnetwork 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_subnetwork/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test subnetwork to validate integration test.", 4 | "kind": "compute#subnetwork", 5 | "name": "{{ resourceName }}" 6 | } 7 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_subnetwork/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | description, 4 | kind 5 | from 6 | gcp.gcp_compute_subnetwork 7 | where 8 | title = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_subnetwork/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_subnetwork/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | id, 4 | description, 5 | kind 6 | from 7 | gcp.gcp_compute_subnetwork 8 | where 9 | name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_subnetwork/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "name": "{{ resourceName }}", 7 | "title": "{{ resourceName }}" 8 | } 9 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_subnetwork/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | akas, 4 | title 5 | from 6 | gcp.gcp_compute_subnetwork 7 | where 8 | name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_subnetwork/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_https_proxy/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_target_https_proxy/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_https_proxy/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_https_proxy/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_target_https_proxy 3 | where name = ''; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_https_proxy/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test target https proxy to validate the table outcome.", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_https_proxy/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_compute_target_https_proxy 3 | where akas::text = '["{{ output.resource_aka.value }}"]'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_https_proxy/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_https_proxy/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, kind, description 2 | from gcp.gcp_compute_target_https_proxy 3 | where name = 'dummy-{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_https_proxy/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "title": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_https_proxy/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_target_https_proxy 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_https_proxy/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_pool/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_target_pool/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_pool/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, kind, self_link, health_checks 2 | from gcp.gcp_compute_target_pool 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_pool/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, self_link, health_checks, instances 2 | from gcp.gcp_compute_target_pool 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_pool/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_pool/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_target_pool 3 | where name = '' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_pool/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test compute target pool to validate integration test", 4 | "name": "{{ output.resource_name.value }}", 5 | "self_link": "{{ output.self_link.value }}" 6 | } 7 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_pool/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, self_link 2 | from gcp.gcp_compute_target_pool 3 | where title = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_pool/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_pool/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description, kind, self_link 2 | from gcp.gcp_compute_target_pool 3 | where name = 'dummy-{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_pool/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{resourceName}}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_pool/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_target_pool 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_pool/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_ssl_proxy/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_target_ssl_proxy/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_ssl_proxy/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, kind, proxy_header, service, self_link, ssl_certificates, project, location 2 | from gcp.gcp_compute_target_ssl_proxy 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_ssl_proxy/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_ssl_proxy/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_target_ssl_proxy 3 | where name = ''; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_ssl_proxy/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test target ssl proxy to validate the table outcome.", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_ssl_proxy/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_compute_target_ssl_proxy 3 | where akas::text = '["{{ output.resource_aka.value }}"]'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_ssl_proxy/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_ssl_proxy/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, kind, description 2 | from gcp.gcp_compute_target_ssl_proxy 3 | where name = 'dummy-{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_ssl_proxy/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "title": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_ssl_proxy/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_target_ssl_proxy 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_ssl_proxy/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_vpn_gateway/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_target_vpn_gateway/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_vpn_gateway/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, kind, description, self_link, project 2 | from gcp.gcp_compute_target_vpn_gateway 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_vpn_gateway/test-hydrate-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "{{output.description.value}}", 4 | "kind": "compute#targetVpnGateway", 5 | "name": "{{ resourceName }}", 6 | "self_link": "{{ output.self_link.value }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_vpn_gateway/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, kind, description, self_link 2 | from gcp.gcp_compute_target_vpn_gateway 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_vpn_gateway/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_vpn_gateway/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_target_vpn_gateway 3 | where name = '' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_vpn_gateway/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "{{output.description.value}}", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_vpn_gateway/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_compute_target_vpn_gateway 3 | where title = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_vpn_gateway/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_vpn_gateway/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, kind, description 2 | from gcp.gcp_compute_target_vpn_gateway 3 | where name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_vpn_gateway/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_vpn_gateway/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_target_vpn_gateway 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_target_vpn_gateway/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_url_map/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_url_map/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_url_map/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, default_service, description, kind, self_link, location, project, location_type, tests, path_matchers, host_rules 2 | from gcp.gcp_compute_url_map 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_url_map/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, kind, default_service, self_link 2 | from gcp.gcp_compute_url_map 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_url_map/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_url_map/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_url_map 3 | where name = '' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_url_map/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test URL Map to validate integration test.", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_url_map/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_compute_url_map 3 | where title = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_url_map/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_url_map/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, kind, description 2 | from gcp.gcp_compute_url_map 3 | where name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_url_map/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_url_map/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_url_map 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_url_map/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_vpn_tunnel/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_compute_vpn_tunnel/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_vpn_tunnel/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, kind, ike_version, self_link 2 | from gcp.gcp_compute_vpn_tunnel 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_vpn_tunnel/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_vpn_tunnel/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_compute_vpn_tunnel 3 | where name = '' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_vpn_tunnel/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test VPN Tunnel to validate integration test.", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_vpn_tunnel/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_compute_vpn_tunnel 3 | where title = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_vpn_tunnel/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_vpn_tunnel/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, kind, description 2 | from gcp.gcp_compute_vpn_tunnel 3 | where name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_vpn_tunnel/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_vpn_tunnel/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_compute_vpn_tunnel 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_compute_vpn_tunnel/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_asset/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_dataplex_asset/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_asset/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "display_name": "{{ resourceName }}", 4 | "lake_name": "{{ output.lake_name.value }}", 5 | "name": "{{ output.resource_id.value }}", 6 | "zone_name": "{{ output.zone_name.value }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_asset/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name, lake_name, zone_name 2 | from gcp.gcp_dataplex_asset 3 | where name = '{{ output.resource_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_asset/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "display_name": "{{ resourceName }}", 4 | "name": "{{ output.resource_id.value }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_asset/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name 2 | from gcp.gcp_dataplex_asset 3 | where zone_name = '{{ output.zone_name.value }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_asset/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_asset/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select name, title, akas 2 | from gcp.gcp_dataplex_asset 3 | where zone_name = '{{ output.zone_name.value }}abd' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_asset/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_asset/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_dataplex_asset 3 | where zone_name = '{{ output.zone_name.value }}' and display_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_asset/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_lake/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_dataplex_lake/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_lake/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "display_name": "{{ resourceName }}", 4 | "name": "{{ output.resource_id.value }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_lake/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name 2 | from gcp.gcp_dataplex_lake 3 | where display_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_lake/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "display_name": "{{ resourceName }}", 4 | "name": "{{ output.resource_id.value }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_lake/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name 2 | from gcp.gcp_dataplex_lake 3 | where akas::text = '["{{ output.resource_aka.value }}"]' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_lake/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_lake/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select name, title, akas 2 | from gcp.gcp_dataplex_lake 3 | where display_name = '{{ resourceName }}:asdf' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_lake/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_lake/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_dataplex_lake 3 | where display_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_lake/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_task/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_dataplex_task/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_task/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "display_name": "{{ resourceName }}", 4 | "lake_name": "{{ output.lake_name.value }}", 5 | "name": "{{ output.resource_id.value }}" 6 | } 7 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_task/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name, lake_name 2 | from gcp.gcp_dataplex_task 3 | where name = '{{ output.resource_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_task/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "display_name": "{{ resourceName }}", 4 | "name": "{{ output.resource_id.value }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_task/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name 2 | from gcp.gcp_dataplex_task 3 | where akas::text = '["{{ output.resource_aka.value }}"]' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_task/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_task/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select name, title, akas 2 | from gcp.gcp_dataplex_task 3 | where display_name = '{{ resourceName }}:asdf' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_task/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_task/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_dataplex_task 3 | where display_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_task/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_zone/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_dataplex_zone/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_zone/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "display_name": "{{ resourceName }}", 4 | "lake_name": "{{ output.lake_name.value }}", 5 | "name": "{{ output.resource_id.value }}" 6 | } 7 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_zone/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name, lake_name 2 | from gcp.gcp_dataplex_zone 3 | where name = '{{ output.resource_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_zone/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "display_name": "{{ resourceName }}", 4 | "name": "{{ output.resource_id.value }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_zone/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name 2 | from gcp.gcp_dataplex_zone 3 | where akas::text = '["{{ output.resource_aka.value }}"]' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_zone/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_zone/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select name, title, akas 2 | from gcp.gcp_dataplex_zone 3 | where display_name = '{{ resourceName }}:asdf' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_zone/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_zone/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_dataplex_zone 3 | where display_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataplex_zone/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataproc_cluster/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_dataproc_cluster/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataproc_cluster/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "cluster_name": "{{ resourceName }}", 4 | "project": "{{ output.project_id.value }}", 5 | "title": "{{ resourceName }}" 6 | } 7 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataproc_cluster/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select cluster_name, title, project 2 | from gcp.gcp_dataproc_cluster 3 | where cluster_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataproc_cluster/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select cluster_name, project, title, akas 2 | from gcp.gcp_dataproc_cluster 3 | where akas::text = '["{{ output.resource_aka.value }}"]' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataproc_cluster/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataproc_cluster/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select cluster_name, title, akas 2 | from gcp.gcp_dataproc_cluster 3 | where cluster_name = '{{ resourceName }}:asdf' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataproc_cluster/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataproc_cluster/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_dataproc_cluster 3 | where cluster_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataproc_cluster/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataproc_metastore_service/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_dataproc_metastore_service/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataproc_metastore_service/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, title, state, uid, project 2 | from gcp.gcp_dataproc_metastore_service 3 | where name = '{{ output.resource_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataproc_metastore_service/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, project, title, akas 2 | from gcp.gcp_dataproc_metastore_service 3 | where akas::text = '["{{ output.resource_aka.value }}"]' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataproc_metastore_service/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataproc_metastore_service/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select cluster_name, title, akas 2 | from gcp.gcp_dataproc_cluster 3 | where cluster_name = '{{ resourceName }}:asdf' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataproc_metastore_service/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataproc_metastore_service/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_dataproc_metastore_service 3 | where name = '{{ output.resource_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dataproc_metastore_service/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_managed_zone/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_dns_managed_zone/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_managed_zone/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, dns_name, description, kind, visibility, private_visibility_config_networks, labels, name_servers, location, project 2 | from gcp.gcp_dns_managed_zone 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_managed_zone/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_managed_zone/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, description 2 | from gcp.gcp_dns_managed_zone 3 | where name = ''; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_managed_zone/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test managed zone to validate the table outcome.", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_managed_zone/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_dns_managed_zone 3 | where akas::text = '["{{ output.resource_aka.value }}"]'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_managed_zone/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_managed_zone/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, kind, description 2 | from gcp.gcp_dns_managed_zone 3 | where name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_managed_zone/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "tags": { 5 | "name": "{{ resourceName }}" 6 | }, 7 | "title": "{{ resourceName }}" 8 | } 9 | ] 10 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_managed_zone/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, tags, akas 2 | from gcp.gcp_dns_managed_zone 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_managed_zone/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_policy/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_dns_policy/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_policy/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | description, 4 | kind, 5 | enable_inbound_forwarding, 6 | enable_logging, 7 | project, 8 | networks, 9 | target_name_servers 10 | from gcp.gcp_dns_policy 11 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_policy/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_policy/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | id 4 | from 5 | gcp.gcp_dns_policy 6 | where 7 | name = ''; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_policy/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "{{ resourceName }}", 4 | "title": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_policy/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | title 4 | from 5 | gcp_dns_policy 6 | where akas :: text = '["{{ output.resource_aka.value }}"]'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_policy/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_policy/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | id 4 | from 5 | gcp.gcp_dns_policy 6 | where 7 | name = 'dummy-{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_policy/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "title": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_policy/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | title, 3 | akas 4 | from 5 | gcp_dns_policy 6 | where 7 | name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_policy/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_record_set/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_dns_record_set/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_record_set/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, managed_zone_name, type, ttl, title, location, project 2 | from gcp.gcp_dns_record_set 3 | where name = '{{ output.record_set_name.value }}' and type = 'A'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_record_set/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_record_set/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, type 2 | from gcp.gcp_dns_record_set 3 | where name = ''; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_record_set/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "managed_zone_name": "{{ resourceName }}", 4 | "name": "{{ output.record_set_name.value }}", 5 | "type": "A" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_record_set/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, managed_zone_name, type 2 | from gcp.gcp_dns_record_set 3 | where akas::text = '["{{ output.resource_aka.value }}"]'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_record_set/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_record_set/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, type 2 | from gcp.gcp_dns_record_set 3 | where name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_record_set/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "title": "{{ output.record_set_name.value }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_record_set/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_dns_record_set 3 | where name = '{{ output.record_set_name.value }}' and type = 'A'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_dns_record_set/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_iam_role/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_iam_role/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_iam_role/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, role_id, title, stage, deleted, description, included_permissions 2 | from gcp.gcp_iam_role 3 | where name = '{{ output.resource_id.value }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_iam_role/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, role_id, title, stage, deleted, description, included_permissions 2 | from gcp.gcp_iam_role 3 | where name = '{{ output.resource_id.value }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_iam_role/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "{{ output.resource_id.value }}", 4 | "role_id": "{{resourceName}}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_iam_role/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, role_id 2 | from gcp.gcp_iam_role 3 | where title = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_iam_role/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_iam_role/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, deleted, stage, role_id 2 | from gcp.gcp_iam_role 3 | where name = 'dummy-{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_iam_role/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{resourceName}}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_iam_role/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_iam_role 3 | where name = '{{ output.resource_id.value }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_iam_role/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_kms_key/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "{{ resourceName }}", 4 | "rotation_period": "100000s" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, rotation_period 2 | from gcp.gcp_kms_key 3 | where name = '{{ resourceName }}' and key_ring_name = '{{ resourceName }}' and location = 'global'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "{{ resourceName }}", 4 | "rotation_period": "100000s" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, rotation_period 2 | from gcp.gcp_kms_key 3 | where akas::text = '["{{ output.resource_aka.value }}"]'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name 2 | from gcp.gcp_kms_key 3 | where name = 'dummy-{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "title": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_kms_key 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_ring/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_kms_key_ring/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_ring/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "{{ resourceName }}" 4 | } 5 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_ring/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name 2 | from gcp.gcp_kms_key_ring 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_ring/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, iam_policy 2 | from gcp.gcp_kms_key_ring 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_ring/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "{{ resourceName }}" 4 | } 5 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_ring/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name 2 | from gcp.gcp_kms_key_ring 3 | where akas::text = '["{{ output.resource_aka.value }}"]' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_ring/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_ring/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name 2 | from gcp.gcp_kms_key_ring 3 | where name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_ring/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{resourceName}}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_ring/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_kms_key_ring 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_ring/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_version/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_kms_key_version/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_version/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "crypto_key_version": 1, 4 | "key_name": "{{ resourceName }}", 5 | "self_link": "{{ output.self_link.value }}" 6 | } 7 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_version/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select key_name, crypto_key_version, self_link 2 | from gcp.gcp_kms_key_version 3 | where key_name = '{{ resourceName }}' and key_ring_name = '{{ resourceName }}' and location = 'global' and crypto_key_version = 1; 4 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_version/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "crypto_key_version": 1, 7 | "key_name": "{{ resourceName }}", 8 | "self_link": "{{ output.self_link.value }}" 9 | } 10 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_version/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select key_name, crypto_key_version, self_link, akas 2 | from gcp.gcp_kms_key_version 3 | where key_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_version/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_version/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select key_name 2 | from gcp.gcp_kms_key_version 3 | where key_name = 'dummy-{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_version/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "crypto_key_version": 1, 4 | "key_name": "{{ resourceName }}", 5 | "self_link": "{{ output.self_link.value }}" 6 | } 7 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_version/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select key_name, crypto_key_version, self_link 2 | from gcp.gcp_kms_key_version 3 | where key_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kms_key_version/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_cluster/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_kubernetes_cluster/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_cluster/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, location, services_ipv4_cidr, akas, project 2 | from gcp.gcp_kubernetes_cluster 3 | where name = '{{ resourceName }}' and location = '{{ output.location.value }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_cluster/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_cluster/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_kubernetes_cluster 3 | where name = '' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_cluster/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, location, services_ipv4_cidr, akas 2 | from gcp.gcp_kubernetes_cluster 3 | where title = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_cluster/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_cluster/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, akas 2 | from gcp.gcp_kubernetes_cluster 3 | where name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_cluster/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_cluster/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_kubernetes_cluster 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_cluster/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_node_pool/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_kubernetes_node_pool/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_node_pool/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, cluster_name, akas, location, project 2 | from gcp.gcp_kubernetes_node_pool 3 | where name = '{{ resourceName }}' and location = '{{ output.location.value }}' and cluster_name = '{{ output.cluster_name.value }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_node_pool/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_node_pool/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, cluster_name, akas 2 | from gcp.gcp_kubernetes_node_pool 3 | where name = '' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_node_pool/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, cluster_name, akas, location, project 2 | from gcp.gcp_kubernetes_node_pool 3 | where title = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_node_pool/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_node_pool/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas, project, location 2 | from gcp.gcp_kubernetes_node_pool 3 | where name = '{{ resourceName }}dd' and location = '{{ output.location.value }}' and cluster_name = '{{ output.cluster_name.value }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_node_pool/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas, project, location 2 | from gcp.gcp_kubernetes_node_pool 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_kubernetes_node_pool/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_bucket/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_logging_bucket/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_bucket/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "location": "{{ output.region_id.value }}", 4 | "name": "{{ resourceName }}", 5 | "project": "{{ output.project_id.value }}", 6 | "retention_days": 1 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_bucket/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, retention_days, location, project 2 | from gcp.gcp_logging_bucket 3 | where name = '{{ resourceName }}' and location = '{{ output.region_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_bucket/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "{{ resourceName }}", 4 | "title": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_bucket/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, title 2 | from gcp.gcp_logging_bucket 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_bucket/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_bucket/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, self_link, description 2 | from gcp.gcp_logging_bucket 3 | where name = 'dummy-{{resourceName}}' and location = '{{ output.region_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_bucket/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "location": "{{ output.region_id.value }}", 5 | "project": "{{ output.project_id.value }}", 6 | "title": "{{ resourceName }}" 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_bucket/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas, location, project 2 | from gcp.gcp_logging_bucket 3 | where name = '{{ resourceName }}' and location = '{{ output.region_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_bucket/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_exclusion/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_logging_exclusion/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_exclusion/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, disabled, filter, description, location, project 2 | from gcp.gcp_logging_exclusion 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_exclusion/test-hydrate-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test exclusion to verify the table", 4 | "disabled": false, 5 | "filter": "resource.type = gce_instance AND severity \u003c= DEBUG", 6 | "name": "{{resourceName}}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_exclusion/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, disabled, filter, description 2 | from gcp.gcp_logging_exclusion 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_exclusion/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_exclusion/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, disabled, description, filter 2 | from gcp.gcp_logging_exclusion 3 | where name = ''; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_exclusion/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test exclusion to verify the table", 4 | "name": "{{resourceName}}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_exclusion/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_logging_exclusion 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_exclusion/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_exclusion/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, disabled, description, filter 2 | from gcp.gcp_logging_exclusion 3 | where name = 'dummy-{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_exclusion/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{resourceName}}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_exclusion/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_logging_exclusion 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_exclusion/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_metric/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_logging_metric/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_metric/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_metric/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, filter 2 | from gcp.gcp_logging_metric 3 | where name = ''; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_metric/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "Test metric to verify table", 4 | "name": "{{resourceName}}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_metric/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, description 2 | from gcp.gcp_logging_metric 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_metric/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_metric/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, description, filter 2 | from gcp.gcp_logging_metric 3 | where name = 'dummy-{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_metric/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{resourceName}}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_metric/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_logging_metric 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_metric/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_sink/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_logging_sink/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_sink/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, destination, disabled, filter, description, include_children, self_link, project, location 2 | from gcp.gcp_logging_sink 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_sink/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, destination, disabled, filter, description, include_children 2 | from gcp.gcp_logging_sink 3 | where name = '{{resourceName}}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_sink/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_sink/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, disabled, destination, filter 2 | from gcp.gcp_logging_sink 3 | where name = ''; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_sink/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "destination": "pubsub.googleapis.com/projects/{{ output.project_id.value }}/topics/{{resourceName}}", 4 | "name": "{{resourceName}}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_sink/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, destination 2 | from gcp.gcp_logging_sink 3 | where name = '{{resourceName}}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_sink/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_sink/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, disabled, destination, filter 2 | from gcp.gcp_logging_sink 3 | where name = 'dummy-{{resourceName}}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_sink/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "title": "{{resourceName}}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_sink/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_logging_sink 3 | where name = '{{resourceName}}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_logging_sink/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_alert_policy/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_monitoring_alert_policy/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_alert_policy/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name, combiner, enabled, documentation, project, location, user_labels 2 | from gcp.gcp_monitoring_alert_policy 3 | where name = '{{ output.resource_id.value.split("/").pop() }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_alert_policy/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name, combiner, enabled, tags, project 2 | from gcp.gcp_monitoring_alert_policy 3 | where name = '{{ output.resource_id.value.split("/").pop() }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_alert_policy/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "combiner": "OR", 4 | "display_name": "{{ resourceName }}", 5 | "name": "{{ output.resource_id.value.split('/').pop() }}" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_alert_policy/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name, combiner 2 | from gcp.gcp_monitoring_alert_policy 3 | where display_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_alert_policy/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_alert_policy/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_monitoring_alert_policy 3 | where name = 'dummy'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_alert_policy/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_group/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_monitoring_group/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_group/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name, filter, is_cluster, parent_name, project, location 2 | from gcp.gcp_monitoring_group 3 | where name = '{{ output.resource_id.value.split("/").pop() }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_group/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name, filter, is_cluster, parent_name, project 2 | from gcp.gcp_monitoring_group 3 | where name = '{{ output.resource_id.value.split("/").pop() }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_group/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_group/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name 2 | from gcp.gcp_monitoring_group 3 | where name = ''; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_group/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "display_name": "{{resourceName}}", 4 | "name": "{{ output.resource_id.value.split('/').pop() }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_group/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name 2 | from gcp.gcp_monitoring_group 3 | where display_name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_group/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_group/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name 2 | from gcp.gcp_monitoring_group 3 | where name = 'dummy-{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_group/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_group/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_monitoring_group 3 | where name = '{{ output.resource_id.value.split("/").pop() }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_group/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_notification_channel/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_monitoring_notification_channel/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_notification_channel/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name, enabled, type, description, labels, project, location 2 | from gcp.gcp_monitoring_notification_channel 3 | where name = '{{ output.resource_id.value.split("/").pop() }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_notification_channel/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name, enabled, type, description, project 2 | from gcp.gcp_monitoring_notification_channel 3 | where name = '{{ output.resource_id.value.split("/").pop() }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_notification_channel/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "display_name": "{{resourceName}}", 4 | "name": "{{ output.resource_id.value.split('/').pop() }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_notification_channel/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name 2 | from gcp.gcp_monitoring_notification_channel 3 | where display_name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_notification_channel/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_notification_channel/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name, enabled, description 2 | from gcp.gcp_monitoring_notification_channel 3 | where name = 'dummy-{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_notification_channel/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, tags, akas 2 | from gcp.gcp_monitoring_notification_channel 3 | where name = '{{ output.resource_id.value.split("/").pop() }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_monitoring_notification_channel/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_organization/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_organization/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_organization/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | organization_id, 4 | lifecycle_state, 5 | display_name, 6 | title, 7 | akas 8 | from 9 | gcp.gcp_organization 10 | where 11 | name = '{{ output.name.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_organization/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_project/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "{{ output.current_project_name.value }}", 4 | "project_id": "{{ output.project_id.value }}", 5 | "project_number": {{ output.project_number.value }} 6 | } 7 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | project_id, 4 | project_number 5 | from 6 | gcp_project 7 | where 8 | project_id = '{{ output.project_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | title 4 | from 5 | gcp_project 6 | where 7 | name = 'dummy-{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "name": "{{ output.current_project_name.value }}", 5 | "title": "{{ output.current_project_name.value }}" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | akas, 3 | name, 4 | title 5 | from 6 | gcp_project 7 | where 8 | name = '{{ output.current_project_name.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project_organization_policy/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_project_organization_policy/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project_organization_policy/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.project_aka.value }}"], 4 | "project": "{{ output.project_id.value }}", 5 | "title": "{{ output.resource_title.value }}" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project_organization_policy/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas, project 2 | from gcp.gcp_project_organization_policy 3 | where id = '{{ output.resource_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project_organization_policy/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.project_aka.value }}"], 4 | "location": "global", 5 | "project": "{{ output.project_id.value }}", 6 | "title": "{{ output.resource_title.value }}" 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project_organization_policy/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select project, location, title, akas 2 | from gcp.gcp_project_organization_policy 3 | where title = '{{ output.resource_title.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project_organization_policy/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project_organization_policy/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select id, project, title, akas 2 | from gcp.gcp_project_organization_policy 3 | where title = '{{ output.resource_title.value }}:asdf'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project_organization_policy/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.project_aka.value }}"], 4 | "title": "{{ output.resource_title.value }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project_organization_policy/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_project_organization_policy 3 | where title = '{{ output.resource_title.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_project_organization_policy/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_subscription/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_pubsub_subscription/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_subscription/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, topic, topic_name, ack_deadline_seconds, message_retention_duration, push_config_endpoint, project, location, labels 2 | from gcp.gcp_pubsub_subscription 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_subscription/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, iam_policy, project 2 | from gcp.gcp_pubsub_subscription 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_subscription/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_subscription/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, topic 2 | from gcp.gcp_pubsub_subscription 3 | where name = '&&&' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_subscription/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ack_deadline_seconds": 20, 4 | "name": "{{resourceName}}", 5 | "topic": "{{ output.topic_id.value }}" 6 | } 7 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_subscription/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, topic, ack_deadline_seconds 2 | from gcp.gcp_pubsub_subscription 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_subscription/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_subscription/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, topic 2 | from gcp.gcp_pubsub_subscription 3 | where name = 'dummy-{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_subscription/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "tags": { 7 | "name": "{{resourceName}}" 8 | }, 9 | "title": "{{ resourceName }}" 10 | } 11 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_subscription/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, tags, akas 2 | from gcp.gcp_pubsub_subscription 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_subscription/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_topic/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_pubsub_topic/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_topic/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "labels": { 4 | "name": "{{resourceName}}" 5 | }, 6 | "location": "global", 7 | "name": "{{ resourceName }}", 8 | "project": "{{ output.project_id.value }}" 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_topic/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, project, location, labels 2 | from gcp.gcp_pubsub_topic 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_topic/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, iam_policy, project 2 | from gcp.gcp_pubsub_topic 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_topic/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_topic/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, kms_key_name 2 | from gcp.gcp_pubsub_topic 3 | where name = '&&&' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_topic/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "{{resourceName}}", 4 | "tags": { 5 | "name": "{{resourceName}}" 6 | } 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_topic/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, tags 2 | from gcp.gcp_pubsub_topic 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_topic/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_topic/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, kms_key_name 2 | from gcp.gcp_pubsub_topic 3 | where name = 'dummy-{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_topic/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "tags": { 7 | "name": "{{resourceName}}" 8 | }, 9 | "title": "{{ resourceName }}" 10 | } 11 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_topic/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, tags, akas 2 | from gcp.gcp_pubsub_topic 3 | where name = '{{resourceName}}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_pubsub_topic/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_secret_manager_secret/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_secret_manager_secret/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_secret_manager_secret/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "{{ output.resource_name.value }}", 4 | "project": "{{ output.project_id.value }}", 5 | "title": "{{ output.resource_id.value }}" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_secret_manager_secret/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, title, project 2 | from gcp.gcp_secret_manager_secret 3 | where name = '{{ output.resource_name.value }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_secret_manager_secret/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "{{ output.resource_name.value }}", 4 | "title": "{{ output.resource_id.value }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_secret_manager_secret/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, title 2 | from gcp.gcp_secret_manager_secret 3 | where akas::text = '["{{ output.resource_aka.value }}"]' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_secret_manager_secret/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_secret_manager_secret/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name 2 | from gcp.gcp_secret_manager_secret 3 | where name = 'dummy-{{ output.resource_name.value }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_secret_manager_secret/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "title": "{{ output.resource_id.value }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_secret_manager_secret/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_secret_manager_secret 3 | where name = '{{ output.resource_name.value }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_secret_manager_secret/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_service_account/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, unique_id, display_name, email, disabled, description, oauth2_client_id, location, project 2 | from gcp.gcp_service_account 3 | where name = '{{ output.name.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, unique_id, display_name, email, disabled, description, oauth2_client_id 2 | from gcp.gcp_service_account 3 | where name = '{{ output.name.value }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name, unique_id, email 2 | from gcp.gcp_service_account 3 | where name = ''; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "display_name": "{{ resourceName }}", 4 | "name": "{{ output.name.value }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name 2 | from gcp.gcp_service_account 3 | where display_name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, display_name, unique_id, email 2 | from gcp.gcp_service_account 3 | where name = 'dummy-{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": [ 4 | "{{ output.resource_aka.value }}" 5 | ], 6 | "title": "{{ resourceName }}" 7 | } 8 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_service_account 3 | where name = '{{ output.name.value }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account_key/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_service_account_key/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account_key/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, service_account_name, key_type, key_algorithm, key_origin 2 | from gcp.gcp_service_account_key 3 | where name = '{{ output.name.value }}' and service_account_name = '{{ output.service_account_name.value }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account_key/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "key_type": "USER_MANAGED", 4 | "name": "{{ output.name.value }}" 5 | } 6 | ] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account_key/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, key_type 2 | from gcp.gcp_service_account_key 3 | where name = '{{ output.name.value }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account_key/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account_key/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, service_account_name 2 | from gcp.gcp_service_account_key 3 | where name = 'dummy-{{ output.name.value }}' and service_account_name = '{{ output.service_account_name.value }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account_key/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "title": "{{ output.name.value }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account_key/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_service_account_key 3 | where name = '{{ output.name.value }}' and service_account_name = '{{ output.service_account_name.value }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_service_account_key/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_backup/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_sql_backup/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_backup/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "instance_name": "{{ resourceName }}", 4 | "kind": "sql#backupRun", 5 | "self_link": "{{ output.self_link.value }}", 6 | "type": "ON_DEMAND" 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_backup/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select self_link, instance_name, kind, type 2 | from gcp.gcp_sql_backup 3 | where id = {{ output.backup_id.value }} and instance_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_backup/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "instance_name": "{{ resourceName }}", 4 | "kind": "sql#backupRun", 5 | "self_link": "{{ output.self_link.value }}", 6 | "type": "ON_DEMAND" 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_backup/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select self_link, instance_name, kind, type 2 | from gcp.gcp_sql_backup 3 | where id = {{ output.backup_id.value }}; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_backup/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_backup/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select id, instance_name 2 | from gcp.gcp_sql_backup 3 | where id = {{ output.backup_id.value }}0 and instance_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_backup/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_sql_database/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, instance_name, kind, charset, self_link, location, project 2 | from gcp.gcp_sql_database 3 | where name = '{{ resourceName }}' and instance_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database/test-hydrate-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "instance_name": "{{ resourceName }}", 4 | "kind": "sql#database", 5 | "name": "{{ resourceName }}" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, instance_name, kind 2 | from gcp.gcp_sql_database 3 | where name = '{{ resourceName }}' and instance_name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "instance_name": "{{ resourceName }}", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, instance_name 2 | from gcp.gcp_sql_database 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, instance_name, kind 2 | from gcp.gcp_sql_database 3 | where name = 'dummy-{{ resourceName }}' and instance_name = 'dummy-{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "title": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_sql_database 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database_instance/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_sql_database_instance/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database_instance/test-hydrate-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "host_name": "me.com", 4 | "name": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database_instance/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, jsonb_array_elements(instance_users) -> 'host' as host_name 2 | from gcp.gcp_sql_database_instance 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database_instance/test-invalid-name-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database_instance/test-invalid-name-query.sql: -------------------------------------------------------------------------------- 1 | select name, database_version 2 | from gcp.gcp_sql_database_instance 3 | where name = ''; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database_instance/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "backup_enabled": true, 4 | "database_version": "MYSQL_5_6", 5 | "name": "{{ resourceName }}" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database_instance/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, database_version, backup_enabled 2 | from gcp.gcp_sql_database_instance 3 | where title = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database_instance/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database_instance/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, database_version, machine_type 2 | from gcp.gcp_sql_database_instance 3 | where name = 'dummy-{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database_instance/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "tags": { 5 | "name": "{{ resourceName }}" 6 | }, 7 | "title": "{{ resourceName }}" 8 | } 9 | ] 10 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database_instance/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select tags, title, akas 2 | from gcp.gcp_sql_database_instance 3 | where name = '{{ resourceName }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_sql_database_instance/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_storage_bucket/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_storage_bucket/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_storage_bucket/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, id, self_link, title, akas, tags 2 | from gcp.gcp_storage_bucket 3 | where name = '{{ resourceName }}' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_storage_bucket/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_storage_bucket/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select name, self_link, title, akas 2 | from gcp.gcp_storage_bucket 3 | where name = '["{{ output.resource_aka.value }}"]:asd' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_storage_bucket/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select name, title, akas, labels, tags 2 | from gcp.gcp_storage_bucket 3 | where akas::text = '["{{ output.resource_aka.value }}"]' -------------------------------------------------------------------------------- /gcp-test/tests/gcp_storage_bucket/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_tag_binding/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_tag_binding/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_tag_binding/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "{{ output.name.value }}", 4 | "parent": "{{ output.parent.value }}", 5 | "tag_value": "{{ output.tag_value.value }}", 6 | "title": "{{ output.name.value }}" 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_tag_binding/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, parent, tag_value, title 2 | from gcp.gcp_tag_binding 3 | where parent = '{{ output.parent.value }}' and tag_value = '{{ output.tag_value.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_tag_binding/test-notfound-expected.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /gcp-test/tests/gcp_tag_binding/test-notfound-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | title 4 | from 5 | gcp.gcp_tag_binding 6 | where 7 | parent = '{{ output.parent.value }}' and tag_value = '{{ output.tag_value.value }}-dummy}}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_tag_binding/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "{{ output.name.value }}", 4 | "title": "{{ output.name.value }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_tag_binding/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select 2 | name, 3 | title 4 | from 5 | gcp.gcp_tag_binding 6 | where 7 | parent = '{{ output.parent.value }}' and tag_value = '{{ output.tag_value.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_tag_binding/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_vpc_access_connector/dependencies.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/turbot/steampipe-plugin-gcp/705374fee3ebf8d2ea86c8ef6226670f75ccf7ba/gcp-test/tests/gcp_vpc_access_connector/dependencies.txt -------------------------------------------------------------------------------- /gcp-test/tests/gcp_vpc_access_connector/test-get-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "location": "{{ output.region_id.value }}", 4 | "name": "{{ output.resource_id.value }}", 5 | "network": "{{ resourceName }}", 6 | "state": "READY" 7 | } 8 | ] 9 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_vpc_access_connector/test-get-query.sql: -------------------------------------------------------------------------------- 1 | select name, location, state, network 2 | from gcp.gcp_vpc_access_connector 3 | where name = '{{ output.resource_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_vpc_access_connector/test-hydrate-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | 4 | "name": "{{ output.resource_id.value }}", 5 | "self_link": "https://vpcaccess.googleapis.com/v1/{{ output.resource_id.value }}" 6 | } 7 | ] 8 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_vpc_access_connector/test-hydrate-query.sql: -------------------------------------------------------------------------------- 1 | select name, self_link 2 | from gcp.gcp_vpc_access_connector 3 | where self_link = 'https://vpcaccess.googleapis.com/v1/{{ output.resource_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_vpc_access_connector/test-list-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "{{ output.resource_id.value }}", 4 | "title": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_vpc_access_connector/test-list-query.sql: -------------------------------------------------------------------------------- 1 | select name, title 2 | from gcp.gcp_vpc_access_connector 3 | where akas::text = '["{{ output.resource_aka.value }}"]'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_vpc_access_connector/test-not-found-expected.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_vpc_access_connector/test-not-found-query.sql: -------------------------------------------------------------------------------- 1 | select name, state 2 | from gcp.gcp_vpc_access_connector 3 | where name = '{{ output.resource_id.value }}-dummy'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_vpc_access_connector/test-turbot-expected.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "akas": ["{{ output.resource_aka.value }}"], 4 | "title": "{{ resourceName }}" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /gcp-test/tests/gcp_vpc_access_connector/test-turbot-query.sql: -------------------------------------------------------------------------------- 1 | select title, akas 2 | from gcp.gcp_vpc_access_connector 3 | where name = '{{ output.resource_id.value }}'; -------------------------------------------------------------------------------- /gcp-test/tests/gcp_vpc_access_connector/variables.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/turbot/steampipe-plugin-gcp/gcp" 5 | "github.com/turbot/steampipe-plugin-sdk/v5/plugin" 6 | ) 7 | 8 | func main() { 9 | plugin.Serve(&plugin.ServeOpts{ 10 | PluginFunc: gcp.Plugin}) 11 | } 12 | --------------------------------------------------------------------------------