@@ -124,17 +124,6 @@ describe('Event Threat Detection Custom module', async () => {
124
124
await cleanupExistingCustomModules ( ) ;
125
125
} ) ;
126
126
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
-
138
127
it ( 'should get the event threat detection custom module' , done => {
139
128
const output = exec (
140
129
`node management_api/getEventThreatDetectionCustomModule.js ${ data . orgId } ${ data . customModuleId } `
@@ -167,6 +156,17 @@ describe('Event Threat Detection Custom module', async () => {
167
156
done ( ) ;
168
157
} ) ;
169
158
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
+
170
170
it ( 'should delete the event threat detection custom module' , done => {
171
171
const output = exec (
172
172
`node management_api/deleteEventThreatDetectionCustomModule.js ${ data . orgId } ${ data . customModuleId } `
0 commit comments