From f1d396510c3f745f91435455137eed47350d7110 Mon Sep 17 00:00:00 2001 From: Timor Eizenman <50326704+teizenman@users.noreply.github.com> Date: Thu, 30 Apr 2020 18:36:00 +0300 Subject: [PATCH] changed xpath, fixed the context paths, added test to playbook (#6658) * changed xpath, fixed the context paths, added test to playbook * updated pack-metadata * Update CHANGELOG.md Co-authored-by: roysagi <50295826+roysagi@users.noreply.github.com> --- Packs/Alexa/Integrations/Alexa/Alexa.py | 7 +- Packs/Alexa/Integrations/Alexa/Alexa.yml | 5 +- Packs/Alexa/Integrations/Alexa/CHANGELOG.md | 12 +- .../TestPlaybooks/playbook-Alexa-Test.yml | 839 +++++++++++------- Packs/Alexa/pack_metadata.json | 2 + 5 files changed, 511 insertions(+), 354 deletions(-) diff --git a/Packs/Alexa/Integrations/Alexa/Alexa.py b/Packs/Alexa/Integrations/Alexa/Alexa.py index 00d217a1a4b5..c658c04c7d13 100644 --- a/Packs/Alexa/Integrations/Alexa/Alexa.py +++ b/Packs/Alexa/Integrations/Alexa/Alexa.py @@ -25,8 +25,7 @@ def alexa_fallback_command(domain): resp = requests.request('GET', 'https://www.alexa.com/minisiteinfo/{}'.format(domain), headers=headers, verify=USE_SSL, proxies=PROXIES) try: - x = re.search(r"style=\"margin-bottom:-2px;\"\/>\s(\d{0,3},)?(\d{3},)?\d{0,3}<\/a>", - resp.content) + x = re.search(r"style=\"margin-bottom:-2px;\"\/>\s(\d{0,3},)?(\d{3},)?\d{0,3}<\/a>", resp.content) raw_result = x.group() # type:ignore strip_beginning = raw_result.replace('style="margin-bottom:-2px;"/> ', '') strip_commas = strip_beginning.replace(',', '') @@ -43,7 +42,7 @@ def alexa_domain_command(): 'https://data.alexa.com/data?cli=10&dat=s&url={}'.format(domain), verify=USE_SSL, proxies=PROXIES) root = ET.fromstring(str(resp.content)) - rank = root.find("SD[0]/POPULARITY").attrib['TEXT'] # type: ignore + rank = root.find(".//POPULARITY").attrib['TEXT'] # type: ignore except: # noqa rank = alexa_fallback_command(domain) if int(rank) > THRESHOLD: @@ -90,7 +89,7 @@ def test_module_command(): 'https://data.alexa.com/data?cli=10&dat=s&url={}'.format(domain), verify=USE_SSL, proxies=PROXIES) root = ET.fromstring(str(resp.content)) - rank = root.find("SD[0]/POPULARITY").attrib['TEXT'] # type: ignore + rank = root.find(".//POPULARITY").attrib['TEXT'] # type: ignore except: # noqa rank = alexa_fallback_command(domain) if rank == '1': diff --git a/Packs/Alexa/Integrations/Alexa/Alexa.yml b/Packs/Alexa/Integrations/Alexa/Alexa.yml index 8a38f232ff17..3041282ef9bc 100644 --- a/Packs/Alexa/Integrations/Alexa/Alexa.yml +++ b/Packs/Alexa/Integrations/Alexa/Alexa.yml @@ -53,7 +53,10 @@ script: - contextPath: DBotScore.Indicator description: The indicator that was tested. type: string - - contextPath: Alexa.Domain.Data + - contextPath: Alexa.Domain.Indicator + description: The Domain being checked + type: string + - contextPath: Alexa.Domain.Name description: The Domain being checked type: string - contextPath: Alexa.Domain.Rank diff --git a/Packs/Alexa/Integrations/Alexa/CHANGELOG.md b/Packs/Alexa/Integrations/Alexa/CHANGELOG.md index 1fb89a0b75c8..4e50c35bc008 100644 --- a/Packs/Alexa/Integrations/Alexa/CHANGELOG.md +++ b/Packs/Alexa/Integrations/Alexa/CHANGELOG.md @@ -1,17 +1,7 @@ ## [Unreleased] +Fixed an issue where the integration failed to retrieve the correct rank. -## [20.4.1] - 2020-04-29 -- - - -## [20.4.0] - 2020-04-14 -- - - -## [20.3.3] - 2020-03-18 - - - ## [19.12.0] - 2019-12-10 - Added fallback for when default endpoint is inaccessible. - Now supports connection from proxy. diff --git a/Packs/Alexa/TestPlaybooks/playbook-Alexa-Test.yml b/Packs/Alexa/TestPlaybooks/playbook-Alexa-Test.yml index 38da699c25e1..a933765c0ae5 100644 --- a/Packs/Alexa/TestPlaybooks/playbook-Alexa-Test.yml +++ b/Packs/Alexa/TestPlaybooks/playbook-Alexa-Test.yml @@ -1,37 +1,35 @@ id: Alexa Test Playbook version: -1 name: Alexa Test Playbook -starttaskid: "0" +starttaskid: '0' tasks: - "0": - id: "0" - taskid: 36466ef7-384f-482d-8aab-535eb005c14f + '0': + id: '0' + taskid: c1ceaa59-278c-43f8-8175-03310414e6c8 type: start task: - id: 36466ef7-384f-482d-8aab-535eb005c14f + id: c1ceaa59-278c-43f8-8175-03310414e6c8 version: -1 - name: "" + name: '' iscommand: false - brand: "" + brand: '' + description: '' nexttasks: '#none#': - - "2" + - '2' separatecontext: false - view: |- - { - "position": { - "x": 450, - "y": -230 - } - } + view: "{\n \"position\": {\n \"x\": 450,\n \"y\": -230\n }\n}" note: false timertriggers: [] - "1": - id: "1" - taskid: 43f4e032-2b93-4dad-884b-834d43d8cc6b + ignoreworker: false + skipunavailable: false + quietmode: 0 + '1': + id: '1' + taskid: 91efb4bb-698c-4562-8018-d8bad241eb5d type: regular task: - id: 43f4e032-2b93-4dad-884b-834d43d8cc6b + id: 91efb4bb-698c-4562-8018-d8bad241eb5d version: -1 name: Alexa Domain description: Provides an Alexa ranking of the URL in question. @@ -41,7 +39,7 @@ tasks: brand: Alexa Rank Indicator nexttasks: '#none#': - - "3" + - '3' scriptarguments: domain: simple: google.com @@ -52,67 +50,62 @@ tasks: threshold: {} wait: {} separatecontext: false - view: |- - { - "position": { - "x": 450, - "y": 10 - } - } + view: "{\n \"position\": {\n \"x\": 450,\n \"y\": 10\n }\n}" note: false timertriggers: [] - "2": - id: "2" - taskid: a952067f-a3cd-4c17-8228-c3ba62c2c935 + ignoreworker: false + skipunavailable: false + quietmode: 0 + '2': + id: '2' + taskid: 17053e06-168d-4abf-8f19-78da953edd90 type: regular task: - id: a952067f-a3cd-4c17-8228-c3ba62c2c935 + id: 17053e06-168d-4abf-8f19-78da953edd90 version: -1 name: DeleteContext description: Delete field from context scriptName: DeleteContext type: regular iscommand: false - brand: "" + brand: '' nexttasks: '#none#': - - "1" + - '1' scriptarguments: all: - simple: "yes" + simple: yes index: {} key: {} keysToKeep: {} subplaybook: {} separatecontext: false - view: |- - { - "position": { - "x": 450, - "y": -120 - } - } + view: "{\n \"position\": {\n \"x\": 450,\n \"y\": -120\n }\n}" note: false timertriggers: [] - "3": - id: "3" - taskid: dbab2c6e-bd05-462d-856b-1dd7bf6e40ae + ignoreworker: false + skipunavailable: false + quietmode: 0 + '3': + id: '3' + taskid: f99ee7fa-f064-4b05-88d6-8c5d833adfa2 type: condition task: - id: dbab2c6e-bd05-462d-856b-1dd7bf6e40ae + id: f99ee7fa-f064-4b05-88d6-8c5d833adfa2 version: -1 name: Check Trusted Site type: condition iscommand: false - brand: "" + brand: '' + description: '' nexttasks: '#default#': - - "11" - "yes": - - "4" + - '11' + yes: + - '4' separatecontext: false conditions: - - label: "yes" + - label: yes condition: - - operator: isEqualString left: @@ -121,55 +114,49 @@ tasks: iscontext: true right: value: - simple: "0" - view: |- - { - "position": { - "x": 450, - "y": 150 - } - } + simple: '0' + view: "{\n \"position\": {\n \"x\": 450,\n \"y\": 150\n }\n}" note: false timertriggers: [] - "4": - id: "4" - taskid: 236de8a2-4405-4d95-8ea9-a92dbdcf37e0 + ignoreworker: false + skipunavailable: false + quietmode: 0 + '4': + id: '4' + taskid: 93d78d28-9552-468b-8eb8-0d795c07b581 type: regular task: - id: 236de8a2-4405-4d95-8ea9-a92dbdcf37e0 + id: 93d78d28-9552-468b-8eb8-0d795c07b581 version: -1 name: DeleteContext description: Delete field from context scriptName: DeleteContext type: regular iscommand: false - brand: "" + brand: '' nexttasks: '#none#': - - "5" + - '5' scriptarguments: all: - simple: "yes" + simple: yes index: {} key: {} keysToKeep: {} subplaybook: {} separatecontext: false - view: |- - { - "position": { - "x": 450, - "y": 965 - } - } + view: "{\n \"position\": {\n \"x\": 450,\n \"y\": 965\n }\n}" note: false timertriggers: [] - "5": - id: "5" - taskid: 8f855554-53b3-41fb-820b-25df970c5c6a + ignoreworker: false + skipunavailable: false + quietmode: 0 + '5': + id: '5' + taskid: 25c183ce-7dfd-4e50-8344-a987607fa63a type: regular task: - id: 8f855554-53b3-41fb-820b-25df970c5c6a + id: 25c183ce-7dfd-4e50-8344-a987607fa63a version: -1 name: Alexa Domain description: Provides an Alexa ranking of the URL in question. @@ -179,7 +166,7 @@ tasks: brand: Alexa Rank Indicator nexttasks: '#none#': - - "6" + - '6' scriptarguments: domain: simple: altcom.com.pl @@ -190,34 +177,32 @@ tasks: threshold: {} wait: {} separatecontext: false - view: |- - { - "position": { - "x": 450, - "y": 1140 - } - } + view: "{\n \"position\": {\n \"x\": 450,\n \"y\": 1140\n }\n}" note: false timertriggers: [] - "6": - id: "6" - taskid: 78745e1a-fe71-44f3-8f3f-c597308d25df + ignoreworker: false + skipunavailable: false + quietmode: 0 + '6': + id: '6' + taskid: e8af8ce2-aa08-4bf8-8d9a-16c76418811b type: condition task: - id: 78745e1a-fe71-44f3-8f3f-c597308d25df + id: e8af8ce2-aa08-4bf8-8d9a-16c76418811b version: -1 name: Check Low Ranking Site type: condition iscommand: false - brand: "" + brand: '' + description: '' nexttasks: '#default#': - - "15" - "yes": - - "7" + - '15' + yes: + - '7' separatecontext: false conditions: - - label: "yes" + - label: yes condition: - - operator: isEqualString left: @@ -226,55 +211,49 @@ tasks: iscontext: true right: value: - simple: "2" - view: |- - { - "position": { - "x": 450, - "y": 1310 - } - } + simple: '2' + view: "{\n \"position\": {\n \"x\": 450,\n \"y\": 1310\n }\n}" note: false timertriggers: [] - "7": - id: "7" - taskid: a6ba542e-31c2-464c-819e-d6d748fb1fac + ignoreworker: false + skipunavailable: false + quietmode: 0 + '7': + id: '7' + taskid: 28add10d-974a-48ba-801d-e8820d58ee1a type: regular task: - id: a6ba542e-31c2-464c-819e-d6d748fb1fac + id: 28add10d-974a-48ba-801d-e8820d58ee1a version: -1 name: DeleteContext description: Delete field from context scriptName: DeleteContext type: regular iscommand: false - brand: "" + brand: '' nexttasks: '#none#': - - "8" + - '8' scriptarguments: all: - simple: "yes" + simple: yes index: {} key: {} keysToKeep: {} subplaybook: {} separatecontext: false - view: |- - { - "position": { - "x": 450, - "y": 2070 - } - } + view: "{\n \"position\": {\n \"x\": 450,\n \"y\": 2070\n }\n}" note: false timertriggers: [] - "8": - id: "8" - taskid: 30db0c16-d93e-48b2-8d45-8e1ce98daf2e + ignoreworker: false + skipunavailable: false + quietmode: 0 + '8': + id: '8' + taskid: f58a1219-690c-4896-8c95-91fe4e86f4b9 type: regular task: - id: 30db0c16-d93e-48b2-8d45-8e1ce98daf2e + id: f58a1219-690c-4896-8c95-91fe4e86f4b9 version: -1 name: Alexa Domain description: Provides an Alexa ranking of the URL in question. @@ -284,7 +263,7 @@ tasks: brand: Alexa Rank Indicator nexttasks: '#none#': - - "9" + - '9' scriptarguments: domain: simple: shlepme.com @@ -295,34 +274,32 @@ tasks: threshold: {} wait: {} separatecontext: false - view: |- - { - "position": { - "x": 450, - "y": 2220 - } - } + view: "{\n \"position\": {\n \"x\": 450,\n \"y\": 2220\n }\n}" note: false timertriggers: [] - "9": - id: "9" - taskid: 21944a2f-81f0-41da-813a-f8a26fecdd36 + ignoreworker: false + skipunavailable: false + quietmode: 0 + '9': + id: '9' + taskid: 30ecd115-d2fe-4053-8841-952e377134d0 type: condition task: - id: 21944a2f-81f0-41da-813a-f8a26fecdd36 + id: 30ecd115-d2fe-4053-8841-952e377134d0 version: -1 name: Check Unlisted Site type: condition iscommand: false - brand: "" + brand: '' + description: '' nexttasks: '#default#': - - "19" - "yes": - - "10" + - '19' + yes: + - '10' separatecontext: false conditions: - - label: "yes" + - label: yes condition: - - operator: isEqualString left: @@ -331,81 +308,75 @@ tasks: iscontext: true right: value: - simple: "2" - view: |- - { - "position": { - "x": 450, - "y": 2370 - } - } + simple: '2' + view: "{\n \"position\": {\n \"x\": 450,\n \"y\": 2370\n }\n}" note: false timertriggers: [] - "10": - id: "10" - taskid: 3c73cf1d-f49a-4505-843d-a2bd668950f8 + ignoreworker: false + skipunavailable: false + quietmode: 0 + '10': + id: '10' + taskid: 2ece64be-8556-48d7-800b-cd7c11fefd1a type: regular task: - id: 3c73cf1d-f49a-4505-843d-a2bd668950f8 + id: 2ece64be-8556-48d7-800b-cd7c11fefd1a version: -1 name: DeleteContext description: Delete field from context scriptName: DeleteContext type: regular iscommand: false - brand: "" + brand: '' + nexttasks: + '#none#': + - '23' scriptarguments: all: - simple: "yes" + simple: yes index: {} key: {} keysToKeep: {} subplaybook: {} separatecontext: false - view: |- - { - "position": { - "x": 450, - "y": 3160 - } - } + view: "{\n \"position\": {\n \"x\": 450,\n \"y\": 3160\n }\n}" note: false timertriggers: [] - "11": - id: "11" - taskid: 4b906c55-e254-4327-895a-89e9506c94bd + ignoreworker: false + skipunavailable: false + quietmode: 0 + '11': + id: '11' + taskid: c80fe702-8c0f-4908-8eed-9531315aa354 type: regular task: - id: 4b906c55-e254-4327-895a-89e9506c94bd + id: c80fe702-8c0f-4908-8eed-9531315aa354 version: -1 name: Sleep description: Sleep for X seconds scriptName: Sleep type: regular iscommand: false - brand: "" + brand: '' nexttasks: '#none#': - - "14" + - '14' scriptarguments: seconds: - simple: "5" + simple: '5' separatecontext: false - view: |- - { - "position": { - "x": -20, - "y": 320 - } - } + view: "{\n \"position\": {\n \"x\": -20,\n \"y\": 320\n }\n}" note: false timertriggers: [] - "12": - id: "12" - taskid: 71ac26f9-6987-47e8-847c-a178b78549b7 + ignoreworker: false + skipunavailable: false + quietmode: 0 + '12': + id: '12' + taskid: 4d2c4520-60a4-43a1-833b-1ba7564d5efd type: regular task: - id: 71ac26f9-6987-47e8-847c-a178b78549b7 + id: 4d2c4520-60a4-43a1-833b-1ba7564d5efd version: -1 name: Alexa Domain description: Provides an Alexa ranking of the URL in question. @@ -415,7 +386,7 @@ tasks: brand: Alexa Rank Indicator nexttasks: '#none#': - - "13" + - '13' scriptarguments: domain: simple: google.com @@ -426,32 +397,30 @@ tasks: threshold: {} wait: {} separatecontext: false - view: |- - { - "position": { - "x": -20, - "y": 605 - } - } + view: "{\n \"position\": {\n \"x\": -20,\n \"y\": 605\n }\n}" note: false timertriggers: [] - "13": - id: "13" - taskid: 360a6399-112d-4d52-80b7-23651b155448 + ignoreworker: false + skipunavailable: false + quietmode: 0 + '13': + id: '13' + taskid: e73b66aa-6b52-496e-82ed-e397bbff801c type: condition task: - id: 360a6399-112d-4d52-80b7-23651b155448 + id: e73b66aa-6b52-496e-82ed-e397bbff801c version: -1 name: Check Trusted Site type: condition iscommand: false - brand: "" + brand: '' + description: '' nexttasks: - "yes": - - "4" + yes: + - '4' separatecontext: false conditions: - - label: "yes" + - label: yes condition: - - operator: isEqualString left: @@ -460,117 +429,105 @@ tasks: iscontext: true right: value: - simple: "0" - view: |- - { - "position": { - "x": -20, - "y": 770 - } - } + simple: '0' + view: "{\n \"position\": {\n \"x\": -20,\n \"y\": 770\n }\n}" note: false timertriggers: [] - "14": - id: "14" - taskid: da8c2dcb-da04-4e6d-825f-9903ed23c073 + ignoreworker: false + skipunavailable: false + quietmode: 0 + '14': + id: '14' + taskid: 084f17d8-6c0c-4fb4-82f0-d08d7c01d050 type: regular task: - id: da8c2dcb-da04-4e6d-825f-9903ed23c073 + id: 084f17d8-6c0c-4fb4-82f0-d08d7c01d050 version: -1 name: DeleteContext description: Delete field from context scriptName: DeleteContext type: regular iscommand: false - brand: "" + brand: '' nexttasks: '#none#': - - "12" + - '12' scriptarguments: all: - simple: "yes" + simple: yes index: {} key: {} keysToKeep: {} subplaybook: {} separatecontext: false - view: |- - { - "position": { - "x": -20, - "y": 455 - } - } + view: "{\n \"position\": {\n \"x\": -20,\n \"y\": 455\n }\n}" note: false timertriggers: [] - "15": - id: "15" - taskid: 4a0e3f38-9de7-46ba-81f4-cee667f506f7 + ignoreworker: false + skipunavailable: false + quietmode: 0 + '15': + id: '15' + taskid: 31c8f111-9e1b-47b2-8434-c6a15afed8b7 type: regular task: - id: 4a0e3f38-9de7-46ba-81f4-cee667f506f7 + id: 31c8f111-9e1b-47b2-8434-c6a15afed8b7 version: -1 name: Sleep description: Sleep for X seconds scriptName: Sleep type: regular iscommand: false - brand: "" + brand: '' nexttasks: '#none#': - - "16" + - '16' scriptarguments: seconds: - simple: "5" + simple: '5' separatecontext: false - view: |- - { - "position": { - "x": -20, - "y": 1480 - } - } + view: "{\n \"position\": {\n \"x\": -20,\n \"y\": 1480\n }\n}" note: false timertriggers: [] - "16": - id: "16" - taskid: d719bd34-7da9-4dd6-8ef6-1681f3024961 + ignoreworker: false + skipunavailable: false + quietmode: 0 + '16': + id: '16' + taskid: ecd8c479-dd18-4cf2-8d67-e55e9612d410 type: regular task: - id: d719bd34-7da9-4dd6-8ef6-1681f3024961 + id: ecd8c479-dd18-4cf2-8d67-e55e9612d410 version: -1 name: DeleteContext description: Delete field from context scriptName: DeleteContext type: regular iscommand: false - brand: "" + brand: '' nexttasks: '#none#': - - "17" + - '17' scriptarguments: all: - simple: "yes" + simple: yes index: {} key: {} keysToKeep: {} subplaybook: {} separatecontext: false - view: |- - { - "position": { - "x": -20, - "y": 1620 - } - } + view: "{\n \"position\": {\n \"x\": -20,\n \"y\": 1620\n }\n}" note: false timertriggers: [] - "17": - id: "17" - taskid: 55216a0a-87bb-497a-878b-d1a91604ebe1 + ignoreworker: false + skipunavailable: false + quietmode: 0 + '17': + id: '17' + taskid: 8c7e166b-0492-4d02-8ef2-0294ad677c7e type: regular task: - id: 55216a0a-87bb-497a-878b-d1a91604ebe1 + id: 8c7e166b-0492-4d02-8ef2-0294ad677c7e version: -1 name: Alexa Domain description: Provides an Alexa ranking of the URL in question. @@ -580,7 +537,7 @@ tasks: brand: Alexa Rank Indicator nexttasks: '#none#': - - "18" + - '18' scriptarguments: domain: simple: altcom.com.pl @@ -591,32 +548,30 @@ tasks: threshold: {} wait: {} separatecontext: false - view: |- - { - "position": { - "x": -20, - "y": 1760 - } - } + view: "{\n \"position\": {\n \"x\": -20,\n \"y\": 1760\n }\n}" note: false timertriggers: [] - "18": - id: "18" - taskid: cec2c783-b251-4e8d-83df-4e4ee65a7029 + ignoreworker: false + skipunavailable: false + quietmode: 0 + '18': + id: '18' + taskid: d3b4b674-8490-45ca-89ca-db5483e93228 type: condition task: - id: cec2c783-b251-4e8d-83df-4e4ee65a7029 + id: d3b4b674-8490-45ca-89ca-db5483e93228 version: -1 name: Check Low Ranking Site type: condition iscommand: false - brand: "" + brand: '' + description: '' nexttasks: - "yes": - - "7" + yes: + - '7' separatecontext: false conditions: - - label: "yes" + - label: yes condition: - - operator: isEqualString left: @@ -625,84 +580,75 @@ tasks: iscontext: true right: value: - simple: "2" - view: |- - { - "position": { - "x": -20, - "y": 1900 - } - } + simple: '2' + view: "{\n \"position\": {\n \"x\": -20,\n \"y\": 1900\n }\n}" note: false timertriggers: [] - "19": - id: "19" - taskid: ce67b7dc-8d50-4776-8e7a-c51256c2cc12 + ignoreworker: false + skipunavailable: false + quietmode: 0 + '19': + id: '19' + taskid: 3c159dea-a72d-456e-8635-f25f7b1fdec6 type: regular task: - id: ce67b7dc-8d50-4776-8e7a-c51256c2cc12 + id: 3c159dea-a72d-456e-8635-f25f7b1fdec6 version: -1 name: Sleep description: Sleep for X seconds scriptName: Sleep type: regular iscommand: false - brand: "" + brand: '' nexttasks: '#none#': - - "20" + - '20' scriptarguments: seconds: - simple: "5" + simple: '5' separatecontext: false - view: |- - { - "position": { - "x": -20, - "y": 2550 - } - } + view: "{\n \"position\": {\n \"x\": -20,\n \"y\": 2550\n }\n}" note: false timertriggers: [] - "20": - id: "20" - taskid: 11f1ba91-cdcd-41aa-8aa7-b79e407081c8 + ignoreworker: false + skipunavailable: false + quietmode: 0 + '20': + id: '20' + taskid: d2e52e8f-330e-44dc-8a4c-f3ff6226daf6 type: regular task: - id: 11f1ba91-cdcd-41aa-8aa7-b79e407081c8 + id: d2e52e8f-330e-44dc-8a4c-f3ff6226daf6 version: -1 name: DeleteContext description: Delete field from context scriptName: DeleteContext type: regular iscommand: false - brand: "" + brand: '' nexttasks: '#none#': - - "21" + - '21' scriptarguments: all: - simple: "yes" + simple: yes index: {} key: {} keysToKeep: {} subplaybook: {} separatecontext: false - view: |- - { - "position": { - "x": -20, - "y": 2700 - } - } + view: "{\n \"position\": {\n \"x\": -20,\n \"y\": 2700\n }\n}" note: false timertriggers: [] - "21": - id: "21" - taskid: 5fd78158-3573-4a6b-8c4d-2d455db81b99 + ignoreworker: false + skipunavailable: false + quietmode: 0 + '21': + id: '21' + taskid: 16202bce-7d79-4931-8e2d-90397e4ddc52 type: regular task: - id: 5fd78158-3573-4a6b-8c4d-2d455db81b99 + id: 16202bce-7d79-4931-8e2d-90397e4ddc52 version: -1 name: Alexa Domain description: Provides an Alexa ranking of the URL in question. @@ -712,7 +658,7 @@ tasks: brand: Alexa Rank Indicator nexttasks: '#none#': - - "22" + - '22' scriptarguments: domain: simple: shlepme.com @@ -723,32 +669,30 @@ tasks: threshold: {} wait: {} separatecontext: false - view: |- - { - "position": { - "x": -20, - "y": 2840 - } - } + view: "{\n \"position\": {\n \"x\": -20,\n \"y\": 2840\n }\n}" note: false timertriggers: [] - "22": - id: "22" - taskid: 981508e2-f9fa-4e0f-8583-77b320c71a02 + ignoreworker: false + skipunavailable: false + quietmode: 0 + '22': + id: '22' + taskid: 2be9d206-4990-4cfd-8c07-ceaccafbc9a6 type: condition task: - id: 981508e2-f9fa-4e0f-8583-77b320c71a02 + id: 2be9d206-4990-4cfd-8c07-ceaccafbc9a6 version: -1 name: Check Unlisted Site type: condition iscommand: false - brand: "" + brand: '' + description: '' nexttasks: - "yes": - - "10" + yes: + - '10' separatecontext: false conditions: - - label: "yes" + - label: yes condition: - - operator: isEqualString left: @@ -757,27 +701,246 @@ tasks: iscontext: true right: value: - simple: "2" - view: |- - { - "position": { - "x": -20, - "y": 2990 - } - } + simple: '2' + view: "{\n \"position\": {\n \"x\": -20,\n \"y\": 2990\n }\n}" + note: false + timertriggers: [] + ignoreworker: false + skipunavailable: false + quietmode: 0 + '23': + id: '23' + taskid: d861697d-e055-46aa-8b9c-598ec9fccd86 + type: regular + task: + id: d861697d-e055-46aa-8b9c-598ec9fccd86 + version: -1 + name: Alexa Domain + description: Provides an Alexa ranking of the URL in question. + script: Alexa Rank Indicator|||domain + type: regular + iscommand: true + brand: Alexa Rank Indicator + nexttasks: + '#none#': + - '24' + scriptarguments: + domain: + simple: demisto.com + fullResponse: {} + long: {} + retries: {} + sampleSize: {} + threshold: {} + wait: {} + separatecontext: false + view: "{\n \"position\": {\n \"x\": 450,\n \"y\": 3345\n }\n}" + note: false + timertriggers: [] + ignoreworker: false + skipunavailable: false + quietmode: 0 + '24': + id: '24' + taskid: 58034ac2-764d-4dcb-80ae-803d0d8ee6f2 + type: condition + task: + id: 58034ac2-764d-4dcb-80ae-803d0d8ee6f2 + version: -1 + name: Check Valid Site Rank to not Equal 1 + type: condition + iscommand: false + brand: '' + description: '' + nexttasks: + '#default#': + - '25' + yes: + - '29' + separatecontext: false + conditions: + - label: yes + condition: + - - operator: isNotEqualString + left: + value: + complex: + root: Alexa + filters: + - - operator: isEqualString + left: + value: + simple: Alexa.Domain.Name + iscontext: true + right: + value: + simple: demisto.com + accessor: Domain.Rank + iscontext: true + right: + value: + simple: '1' + view: "{\n \"position\": {\n \"x\": 450,\n \"y\": 3540\n }\n}" + note: false + timertriggers: [] + ignoreworker: false + skipunavailable: false + quietmode: 0 + '25': + id: '25' + taskid: 535fedb0-731b-4fb1-84be-1e1e79116ac8 + type: regular + task: + id: 535fedb0-731b-4fb1-84be-1e1e79116ac8 + version: -1 + name: Sleep + description: Sleep for X seconds + scriptName: Sleep + type: regular + iscommand: false + brand: '' + nexttasks: + '#none#': + - '26' + scriptarguments: + seconds: + simple: '5' + separatecontext: false + view: "{\n \"position\": {\n \"x\": -20,\n \"y\": 3790\n }\n}" + note: false + timertriggers: [] + ignoreworker: false + skipunavailable: false + quietmode: 0 + '26': + id: '26' + taskid: 6a287b86-8f63-40e6-89c2-f226765700db + type: regular + task: + id: 6a287b86-8f63-40e6-89c2-f226765700db + version: -1 + name: DeleteContext + description: Delete field from context + scriptName: DeleteContext + type: regular + iscommand: false + brand: '' + nexttasks: + '#none#': + - '27' + scriptarguments: + all: + simple: yes + index: {} + key: {} + keysToKeep: {} + subplaybook: {} + separatecontext: false + view: "{\n \"position\": {\n \"x\": -20,\n \"y\": 3980\n }\n}" + note: false + timertriggers: [] + ignoreworker: false + skipunavailable: false + quietmode: 0 + '27': + id: '27' + taskid: bfcb18ef-6514-4299-8125-419bccc72d46 + type: regular + task: + id: bfcb18ef-6514-4299-8125-419bccc72d46 + version: -1 + name: Alexa Domain + description: Provides an Alexa ranking of the URL in question. + script: Alexa Rank Indicator|||domain + type: regular + iscommand: true + brand: Alexa Rank Indicator + nexttasks: + '#none#': + - '30' + scriptarguments: + domain: + simple: demisto.com + fullResponse: {} + long: {} + retries: {} + sampleSize: {} + threshold: {} + wait: {} + separatecontext: false + view: "{\n \"position\": {\n \"x\": -20,\n \"y\": 4175\n }\n}" + note: false + timertriggers: [] + ignoreworker: false + skipunavailable: false + quietmode: 0 + '29': + id: '29' + taskid: 43381a17-1046-4f88-8000-db71f0736e8a + type: title + task: + id: 43381a17-1046-4f88-8000-db71f0736e8a + version: -1 + name: DONE + type: title + iscommand: false + brand: '' + description: '' + separatecontext: false + view: "{\n \"position\": {\n \"x\": 450,\n \"y\": 4540\n }\n}" + note: false + timertriggers: [] + ignoreworker: false + skipunavailable: false + quietmode: 0 + '30': + id: '30' + taskid: 98ed13ef-0beb-46b7-81d2-0ecc791b35f6 + type: condition + task: + id: 98ed13ef-0beb-46b7-81d2-0ecc791b35f6 + version: -1 + name: Check Valid Site Rank to not Equal 1 + type: condition + iscommand: false + brand: '' + description: '' + nexttasks: + yes: + - '29' + separatecontext: false + conditions: + - label: yes + condition: + - - operator: isNotEqualString + left: + value: + complex: + root: Alexa + filters: + - - operator: isEqualString + left: + value: + simple: Alexa.Domain.Name + iscontext: true + right: + value: + simple: demisto.com + accessor: Domain.Rank + iscontext: true + right: + value: + simple: '1' + view: "{\n \"position\": {\n \"x\": -20,\n \"y\": 4370\n }\n}" note: false timertriggers: [] -view: |- - { - "linkLabelsPosition": {}, - "paper": { - "dimensions": { - "height": 3485, - "width": 850, - "x": -20, - "y": -230 - } - } - } + ignoreworker: false + skipunavailable: false + quietmode: 0 +view: "{\n \"linkLabelsPosition\": {},\n \"paper\": {\n \"dimensions\": {\n \ + \ \"height\": 4835,\n \"width\": 850,\n \"x\": -20,\n \"y\":\ + \ -230\n }\n }\n}" inputs: [] -outputs: [] \ No newline at end of file +outputs: [] +fromversion: 1.0.0 +description: '' diff --git a/Packs/Alexa/pack_metadata.json b/Packs/Alexa/pack_metadata.json index dedf7d42d2ea..d17918151fa5 100644 --- a/Packs/Alexa/pack_metadata.json +++ b/Packs/Alexa/pack_metadata.json @@ -2,6 +2,7 @@ "name": "Alexa Rank Indicator", "description": "Alexa provides website ranking information that can be useful in determining if the domain in question has a strong web presence.", "support": "xsoar", + "serverMinVersion": "3.5.0", "currentVersion": "1.0.0", "author": "Cortex XSOAR", "url": "https://www.paloaltonetworks.com/cortex", @@ -16,6 +17,7 @@ "updated": "2020-03-14T00:00:00Z", "beta": false, "deprecated": false, + "certification": "certified", "useCases": [], "keywords": [], "dependencies": {},