Skip to content

Commit 18944fb

Browse files
content-botrootaaron1535
authored
demisto/faker3:1.0.0.1976220 | 0-100 | PR batch #1/1 (#38165)
* Updated docker image to demisto/faker3:1.0.0.1976220. PR batch #1/1 * Updated docker image to demisto/netutils:1.0.0.118055. PR batch #1/1 (#38166) Co-authored-by: root <root@1e2de18e0cc3> * Add RN --------- Co-authored-by: root <root@1e2de18e0cc3> Co-authored-by: Aaron <[email protected]> Co-authored-by: azonenfeld <[email protected]>
1 parent ca743ff commit 18944fb

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed

Packs/OnboardingIntegration/Integrations/OnboardingIntegration/OnboardingIntegration.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -477,13 +477,13 @@ def update_parameters():
477477
max_num_of_incidents = int(params.get('max_num_of_incidents', '10'))
478478
frequency = int(params.get('frequency')) if params.get('frequency') else None
479479
global INCIDENTS_PER_MINUTE
480-
if INCIDENTS_PER_MINUTE != incidents_per_minute:
480+
if incidents_per_minute != INCIDENTS_PER_MINUTE:
481481
INCIDENTS_PER_MINUTE = incidents_per_minute
482482
global MAX_NUM_OF_INCIDENTS
483-
if MAX_NUM_OF_INCIDENTS != max_num_of_incidents:
483+
if max_num_of_incidents != MAX_NUM_OF_INCIDENTS:
484484
MAX_NUM_OF_INCIDENTS = max_num_of_incidents
485485
global FREQUENCY
486-
if FREQUENCY != frequency:
486+
if frequency != FREQUENCY:
487487
FREQUENCY = frequency
488488

489489

@@ -526,7 +526,7 @@ def create_content():
526526
for _ in range(INDICATORS_PER_INCIDENT):
527527
ipv4, url, domain = fake.ipv4_public(), fake.url(), fake.domain_name() # pylint: disable=no-member
528528
sha1, sha256, md5 = fake.sha1(), fake.sha256(), fake.md5() # pylint: disable=no-member
529-
details += ipv4 + ' ' + url + ' ' + domain + ' ' + sha1 + ' ' + sha256 + ' ' + md5 + '\n'
529+
details += str(ipv4) + ' ' + str(url) + ' ' + str(domain) + ' ' + str(sha1) + ' ' + str(sha256) + ' ' + str(md5) + '\n'
530530

531531
emails = [fake.email() for _ in range(INDICATORS_PER_INCIDENT)] # pylint: disable=no-member
532532
details += ' '.join(emails)
@@ -564,7 +564,7 @@ def create_email():
564564
bcc = [fake.email() for _ in range(random.randint(0, 2))] # pylint: disable=no-member
565565
the_time = datetime.now()
566566
received = 'from ' + fake.hostname() + ' (' + fake.ipv4_public() # pylint: disable=no-member
567-
received += ')\r\n' + 'by ' + fake.domain_word() + '.' # pylint: disable=no-member
567+
received += ')' + 'by ' + fake.domain_word() + '.' # pylint: disable=no-member
568568
received += fake.free_email_domain() + ' with ' # pylint: disable=no-member
569569
received += EMAIL_PROTOCOLS[random.randint(0, len(EMAIL_PROTOCOLS) - 1)]
570570
received += '; ' + the_time.strftime('%c')
@@ -573,7 +573,7 @@ def create_email():
573573
msg['From'] = sender
574574
msg['Reply-To'] = sender
575575
msg['To'] = recipient
576-
msg['Message-ID'] = fake.uuid4() # pylint: disable=no-member
576+
msg['Message-ID'] = str(fake.uuid4()) # pylint: disable=no-member
577577
msg['CC'] = ', '.join(cc) if cc else ''
578578
msg['BCC'] = ', '.join(bcc) if bcc else ''
579579
msg['User-Agent'] = fake.user_agent() # pylint: disable=no-member
@@ -718,7 +718,7 @@ def demo_ip_command():
718718
outputPaths['ip']: standard_ip_output
719719
}
720720

721-
title = 'OnboardingIntegration IP Reputation - {}'.format(ip)
721+
title = f'OnboardingIntegration IP Reputation - {ip}'
722722
human_readable = tableToMarkdown(title, dbotscore_output)
723723

724724
demisto.results({
@@ -766,7 +766,7 @@ def demo_url_command():
766766
outputPaths['url']: standard_url_output
767767
}
768768

769-
title = 'OnboardingIntegration URL Reputation - {}'.format(url)
769+
title = f'OnboardingIntegration URL Reputation - {url}'
770770
human_readable = tableToMarkdown(title, dbotscore_output)
771771

772772
demisto.results({
@@ -814,7 +814,7 @@ def demo_domain_command():
814814
outputPaths['domain']: standard_domain_output
815815
}
816816

817-
title = 'OnboardingIntegration Domain Reputation - {}'.format(domain)
817+
title = f'OnboardingIntegration Domain Reputation - {domain}'
818818
human_readable = tableToMarkdown(title, dbotscore_output)
819819

820820
demisto.results({
@@ -863,7 +863,7 @@ def demo_file_command():
863863
outputPaths['file']: standard_file_output
864864
}
865865

866-
title = 'OnboardingIntegration File Reputation - {}'.format(file)
866+
title = f'OnboardingIntegration File Reputation - {file}'
867867
human_readable = tableToMarkdown(title, dbotscore_output)
868868

869869
demisto.results({
@@ -911,7 +911,7 @@ def demo_email_command():
911911
outputPaths['email']: standard_email_output
912912
}
913913

914-
title = 'OnboardingIntegration Email Reputation - {}'.format(email)
914+
title = f'OnboardingIntegration Email Reputation - {email}'
915915
human_readable = tableToMarkdown(title, dbotscore_output)
916916

917917
demisto.results({
@@ -940,7 +940,7 @@ def main():
940940
try:
941941
if demisto.command() == 'test-module':
942942
demisto.results('ok')
943-
elif demisto.command() in COMMANDS.keys():
943+
elif demisto.command() in COMMANDS:
944944
COMMANDS[demisto.command()]()
945945
except Exception as e:
946946
return_error(str(e))

Packs/OnboardingIntegration/Integrations/OnboardingIntegration/OnboardingIntegration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ script:
181181
- contextPath: DBotScore.Indicator
182182
description: The indicator that was tested
183183
type: String
184-
dockerimage: demisto/faker3:1.0.0.86604
184+
dockerimage: demisto/faker3:1.0.0.1976220
185185
isfetch: true
186186
subtype: python3
187187
tests:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
#### Integrations
3+
4+
##### OnboardingIntegration
5+
6+
- Updated the Docker image to: *demisto/faker3:1.0.0.1976220*.

Packs/OnboardingIntegration/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "OnboardingIntegration",
33
"description": "Creates mock email incidents using one of two randomly selected HTML templates. Textual content is randomly generated and defined to include some text (100 random words) and the following data (at least 5 of each data type): IP addresses, URLs, SHA-1 hashes, SHA-256 hashes, MD5 hashes, email addresses, domain names.",
44
"support": "xsoar",
5-
"currentVersion": "1.1.6",
5+
"currentVersion": "1.1.7",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

0 commit comments

Comments
 (0)