Skip to content

Commit f4166cd

Browse files
lovenishs04iennae
authored andcommitted
updated test
1 parent 90aa847 commit f4166cd

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,6 @@ describe('Event Threat Detection Custom module', async () => {
124124
await cleanupExistingCustomModules();
125125
});
126126

127-
it('should create the event threat detection custom module', done => {
128-
const output = exec(
129-
`node management_api/createEventThreatDetectionCustomModule.js ${data.orgId} ${data.customModuleName}`
130-
);
131-
assert(output.includes(data.orgId));
132-
assert(output.includes(data.customModuleName));
133-
assert.match(output, /EventThreatDetectionCustomModule created/);
134-
assert.notMatch(output, /undefined/);
135-
done();
136-
});
137-
138127
it('should get the event threat detection custom module', done => {
139128
const output = exec(
140129
`node management_api/getEventThreatDetectionCustomModule.js ${data.orgId} ${data.customModuleId}`
@@ -167,6 +156,17 @@ describe('Event Threat Detection Custom module', async () => {
167156
done();
168157
});
169158

159+
it('should create the event threat detection custom module', done => {
160+
const output = exec(
161+
`node management_api/createEventThreatDetectionCustomModule.js ${data.orgId} ${data.customModuleName}`
162+
);
163+
assert(output.includes(data.orgId));
164+
assert(output.includes(data.customModuleName));
165+
assert.match(output, /EventThreatDetectionCustomModule created/);
166+
assert.notMatch(output, /undefined/);
167+
done();
168+
});
169+
170170
it('should delete the event threat detection custom module', done => {
171171
const output = exec(
172172
`node management_api/deleteEventThreatDetectionCustomModule.js ${data.orgId} ${data.customModuleId}`

0 commit comments

Comments
 (0)