forked from demisto/content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook-ExtractDomainFromEmailTest.yml
301 lines (301 loc) · 5.93 KB
/
playbook-ExtractDomainFromEmailTest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
id: ExtractDomainFromEmailTest
version: -1
name: ExtractDomainFromEmailTest
starttaskid: "0"
tasks:
"0":
id: "0"
taskid: d3a38426-0668-4662-8a3c-e6326d1c97a8
type: start
task:
id: d3a38426-0668-4662-8a3c-e6326d1c97a8
version: -1
name: ""
iscommand: false
brand: ""
nexttasks:
'#none#':
- "1"
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 50
}
}
note: false
timertriggers: []
ignoreworker: false
"1":
id: "1"
taskid: be513f35-161b-40d7-8b4c-8f1e1d509c6a
type: regular
task:
id: be513f35-161b-40d7-8b4c-8f1e1d509c6a
version: -1
name: Clean Context
scriptName: DeleteContext
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "2"
- "5"
- "6"
scriptarguments:
all:
simple: "yes"
index: {}
key: {}
keysToKeep: {}
subplaybook: {}
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 195
}
}
note: false
timertriggers: []
ignoreworker: false
"2":
id: "2"
taskid: 5d18e553-13d0-42b1-884e-de8629474f82
type: regular
task:
id: 5d18e553-13d0-42b1-884e-de8629474f82
version: -1
name: Extract Domain from Email 2
scriptName: ExtractDomainFromUrlAndEmail
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "3"
scriptarguments:
extend-context:
simple: Domain2=
input:
simple: JUSTAREASONABLEADDRESS@mail-out.nom.nom-mon.net
separatecontext: false
view: |-
{
"position": {
"x": 50,
"y": 370
}
}
note: false
timertriggers: []
ignoreworker: false
"3":
id: "3"
taskid: 760430b4-4580-41d7-8a3c-ce9384a7e3f2
type: condition
task:
id: 760430b4-4580-41d7-8a3c-ce9384a7e3f2
version: -1
name: Test context Domain2
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "4"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: ${Domain2}
iscontext: true
right:
value:
simple: nom-mon.net
view: |-
{
"position": {
"x": 50,
"y": 535
}
}
note: false
timertriggers: []
ignoreworker: false
"4":
id: "4"
taskid: b7d30f89-8de8-4a6e-8e74-d80d55ca1755
type: title
task:
id: b7d30f89-8de8-4a6e-8e74-d80d55ca1755
version: -1
name: Successfully Extracted All Domains
type: title
iscommand: false
brand: ""
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 720
}
}
note: false
timertriggers: []
ignoreworker: false
"5":
id: "5"
taskid: b4c9d4ba-ba80-4dc7-80d6-3520c7c109a1
type: regular
task:
id: b4c9d4ba-ba80-4dc7-80d6-3520c7c109a1
version: -1
name: Extract Domain from Email 3
scriptName: ExtractDomainFromUrlAndEmail
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "7"
scriptarguments:
extend-context:
simple: Domain3=
input:
simple: example@lol_lol.lol.com
separatecontext: false
view: |-
{
"position": {
"x": 480,
"y": 370
}
}
note: false
timertriggers: []
ignoreworker: false
"6":
id: "6"
taskid: a9f8fa77-ef88-4759-8f89-653b1ad163b8
type: regular
task:
id: a9f8fa77-ef88-4759-8f89-653b1ad163b8
version: -1
name: Extract Domain from Email 1
scriptName: ExtractDomainFromUrlAndEmail
type: regular
iscommand: false
brand: ""
nexttasks:
'#none#':
- "8"
scriptarguments:
extend-context:
simple: Domain1=
input:
simple: emojiemail@xn--i-7iq.com
separatecontext: false
view: |-
{
"position": {
"x": 910,
"y": 370
}
}
note: false
timertriggers: []
ignoreworker: false
"7":
id: "7"
taskid: ae4652f1-133c-4e8f-8628-4468708344cf
type: condition
task:
id: ae4652f1-133c-4e8f-8628-4468708344cf
version: -1
name: Test context Domain3
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "4"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: ${Domain3}
iscontext: true
right:
value:
simple: lol.com
view: |-
{
"position": {
"x": 480,
"y": 545
}
}
note: false
timertriggers: []
ignoreworker: false
"8":
id: "8"
taskid: de8cc310-834e-4306-898b-7eb731c78c1b
type: condition
task:
id: de8cc310-834e-4306-898b-7eb731c78c1b
version: -1
name: Test context Domain1
type: condition
iscommand: false
brand: ""
nexttasks:
"yes":
- "4"
separatecontext: false
conditions:
- label: "yes"
condition:
- - operator: isEqualString
left:
value:
simple: ${Domain1}
iscontext: true
right:
value:
simple: xn--i-7iq.com
view: |-
{
"position": {
"x": 910,
"y": 545
}
}
note: false
timertriggers: []
ignoreworker: false
view: |-
{
"linkLabelsPosition": {},
"paper": {
"dimensions": {
"height": 735,
"width": 1240,
"x": 50,
"y": 50
}
}
}
inputs: []
outputs: []