From 48facd76b5450554f6fe0a754f637b45d3da0890 Mon Sep 17 00:00:00 2001 From: lovenishs04 Date: Mon, 27 Jan 2025 08:56:12 +0000 Subject: [PATCH] fixed existing testcase --- security-center/snippets/system-test/v2/bigQueryExport.test.js | 2 +- security-center/snippets/system-test/v2/securityMarks.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/security-center/snippets/system-test/v2/bigQueryExport.test.js b/security-center/snippets/system-test/v2/bigQueryExport.test.js index 717905f1cd..6817bbfeb0 100644 --- a/security-center/snippets/system-test/v2/bigQueryExport.test.js +++ b/security-center/snippets/system-test/v2/bigQueryExport.test.js @@ -38,7 +38,7 @@ async function cleanupDatasets() { async function cleanupBigQueryExports(client) { const [exports] = await client.listBigQueryExports({ - parent: client.organizationLocationPath(organizationId, location), + parent: `organizations/${organizationId}/locations/${location}`, }); for (const exportData of exports) { console.log(`Deleting BigQuery export: ${exportData.name}`); diff --git a/security-center/snippets/system-test/v2/securityMarks.test.js b/security-center/snippets/system-test/v2/securityMarks.test.js index ef61d8d612..64256e31d4 100644 --- a/security-center/snippets/system-test/v2/securityMarks.test.js +++ b/security-center/snippets/system-test/v2/securityMarks.test.js @@ -33,7 +33,7 @@ describe('Client with SourcesAndFindings', async () => { displayName: 'Customized Display Name', description: 'A new custom source that does X', }, - parent: client.organizationPath(organizationId), + parent: `organizations/${organizationId}`, }) .catch(error => console.error(error)); const eventTime = new Date();