Skip to content

Commit 9089328

Browse files
authored
fix!: update nodejs version in bq-log-alerting (#249)
1 parent 3f56f65 commit 9089328

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

modules/bq-log-alerting/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ module "bq-log-alerting" {
9292
function_entry_point = "cronPubSub"
9393
function_source_directory = "${path.module}/logging/cloud_function"
9494
function_name = "generate-alerts"
95-
function_runtime = "nodejs14"
95+
function_runtime = "nodejs20"
9696
function_service_account_email = google_service_account.gcf_service_account.email
9797
function_timeout_s = var.function_timeout
9898
function_available_memory_mb = var.function_memory

test/integration/bq-log-alerting/controls/gcp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
its('description') { should eq 'read from BQ view to generate alerts' }
7373
its('timeout') { should eq '540s' }
7474
its('available_memory_mb') { should eq 256 }
75-
its('runtime') { should eq 'nodejs14' }
75+
its('runtime') { should eq 'nodejs20' }
7676
its('environment_variables') {
7777
should include(
7878
'CSCC_SOURCE' => source_name,

test/integration/logbucket-project/logbucket_project_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ func TestLogBucketProjectModule(t *testing.T) {
8585
assert.Equal(tc.writerIdentity, logSinkDetails.Get("writerIdentity").String(), "log sink writerIdentity should match")
8686

8787
// assert linked dataset name & BigQuery Dataset ID
88-
projectNumber := gcloud.Runf(t, "projects describe %s", tc.projId).Get("projectNumber").String()
89-
bigqueryDatasetID := fmt.Sprintf("bigquery.googleapis.com/projects/%s/datasets/%s", projectNumber, tc.linkedDsID)
88+
bigqueryDatasetID := fmt.Sprintf("bigquery.googleapis.com/projects/%s/datasets/%s", tc.projId, tc.linkedDsID)
9089
linkedDs := gcloud.Runf(t, "logging links describe %s --bucket=%s --location=%s --project=%s", tc.linkedDsID, tc.bktName, "global", tc.projId)
9190
assert.Equal(tc.linkedDsName, linkedDs.Get("name").String(), "log bucket linked dataset name should match")
9291
assert.Equal(bigqueryDatasetID, linkedDs.Get("bigqueryDataset.datasetId").String(), "log bucket BigQuery dataset ID should match")

0 commit comments

Comments
 (0)