Skip to content

Commit a4af6fe

Browse files
committed
fix: addressed comments
1 parent 79387d0 commit a4af6fe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

security-center/snippets/system-test/managemnt_api/securityHealthAnalyticsCustomModule.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ const {describe, it, before, after} = require('mocha');
2424
const {execSync} = require('child_process');
2525
const exec = cmd => execSync(cmd, {encoding: 'utf8'});
2626

27-
// TODO(developers): update for your own environment
28-
const organizationId = '1081635000895';
27+
// TODO(developer): Replace with your organization ID
28+
const organizationId =
29+
process.env.SCC_ORGANIZATION_ID || 'YOUR_ORGANIZATION_ID';
2930
const locationId = 'global';
3031
const customModuleDisplayName =
3132
'security_health_analytics_test' + uuidv1().replace(/-/g, '_');
@@ -107,7 +108,7 @@ describe('security health analytics custom module', async () => {
107108
name: `organizations/${organizationId}/locations/${locationId}/securityHealthAnalyticsCustomModules/${customModuleId}`,
108109
});
109110
console.log(
110-
`Custome Module ${customModuleDisplayName} deleted successfully.`
111+
`Custom Module ${customModuleDisplayName} deleted successfully.`
111112
);
112113
}
113114
}
@@ -137,7 +138,6 @@ describe('security health analytics custom module', async () => {
137138
const output = exec(
138139
`node management_api/updateSecurityHealthAnalyticsCustomModule.js ${data.orgId} ${data.customModuleId} ${locationId}`
139140
);
140-
// assert.include(output, data.customModuleName);
141141
assert.include(output, 'DISABLED');
142142
assert.match(
143143
output,

0 commit comments

Comments
 (0)