@@ -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 , / E v e n t T h r e a t D e t e c t i o n C u s t o m M o d u l e c r e a t e d / ) ;
134- assert . notMatch ( output , / u n d e f i n e d / ) ;
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 , / E v e n t T h r e a t D e t e c t i o n C u s t o m M o d u l e c r e a t e d / ) ;
166+ assert . notMatch ( output , / u n d e f i n e d / ) ;
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