Commit 199ffda LalitTurbot
committed
1 parent 80fd37c commit 199ffda Copy full SHA for 199ffda
File tree 2 files changed +9
-9
lines changed
tests/gcp_bigtable_instance
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
2
2
variable "resource_name" {
3
3
type = string
4
- default = " turbot-test-20200125-create-update "
4
+ default = " turbottest20200125createupdate "
5
5
description = " Name of the resource used throughout the test."
6
6
}
7
7
@@ -30,8 +30,8 @@ provider "google" {
30
30
31
31
data "google_client_config" "current" {}
32
32
33
- data "null_data_source" "resource" {
34
- inputs = {
33
+ locals {
34
+ resource = {
35
35
scope = " gcp://cloudresourcemanager.googleapis.com/projects/${ data . google_client_config . current . project } "
36
36
}
37
37
}
@@ -42,13 +42,13 @@ resource "google_service_account" "named_test_resource" {
42
42
}
43
43
44
44
resource "google_bigtable_instance" "named_test_resource" {
45
- name = var. resource_name
46
- instance_type = " DEVELOPMENT"
45
+ name = var. resource_name
46
+ instance_type = " DEVELOPMENT"
47
47
deletion_protection = false
48
48
49
49
cluster {
50
- cluster_id = var. resource_name
51
- zone = data. google_client_config . current . zone
50
+ cluster_id = var. resource_name
51
+ zone = data. google_client_config . current . zone
52
52
storage_type = " HDD"
53
53
}
54
54
Original file line number Diff line number Diff line change @@ -416,7 +416,7 @@ const _runGraphqlQuery = function (test, query) {
416
416
q = fs . readFileSync ( queryTmp , { encoding : "utf8" } ) ;
417
417
q = q . replace ( / \n / , " " ) ;
418
418
q = q . replace ( / \r / , "" ) ;
419
- // console.log({ q, queryTmp });
419
+ console . log ( { q, queryTmp } ) ;
420
420
const args = [
421
421
"query" ,
422
422
"--output" ,
@@ -442,7 +442,7 @@ const _runGraphqlQuery = function (test, query) {
442
442
} ) ;
443
443
444
444
cmd . on ( "exit" , code => {
445
- // console.log(result);
445
+ console . log ( result ) ;
446
446
if ( resultSent ) {
447
447
return ;
448
448
}
You can’t perform that action at this time.
0 commit comments