Skip to content

Commit 0706335

Browse files
lovenishs04iennae
authored andcommitted
updated test
1 parent efd6b74 commit 0706335

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security-center/snippets/system-test/management_api/eventThreatDetectionCustomModule.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const client = new SecurityCenterManagementClient();
3232
// cleanupExistingCustomModules clean up all the existing custom module
3333
async function cleanupExistingCustomModules() {
3434
const [modules] = await client.listEventThreatDetectionCustomModules({
35-
parent: client.organizationLocationPath(organizationId, location),
35+
parent: `organizations/${organizationId}/locations/${location}`,
3636
});
3737
// Iterate over the modules response and delete custom module one by one which start with
3838
// node_sample_etd_custom_module
@@ -64,7 +64,7 @@ async function deleteCustomModule(customModuleId) {
6464
describe('Event Threat Detection Custom module', async () => {
6565
let data;
6666
before(async () => {
67-
const parent = client.organizationLocationPath(organizationId, location);
67+
const parent = `organizations/${organizationId}/locations/${location}`;
6868

6969
// define the metadata and other config parameters severity, description,
7070
// recommendation and ips below

0 commit comments

Comments
 (0)