Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
5843 commits
Select commit Hold shift + click to select a range
0e63880
Merge remote-tracking branch 'origin/Splunkpy-fetch-limit' into Splun…
orlichter1 Aug 19, 2019
18fc68b
finished playbook, updated args in list entities
Aug 19, 2019
aa2909c
fixed the user msg in dict_value_to_integer
Aug 19, 2019
408d998
Pan-OS - full logs UC (#4099)
bakatzir Aug 19, 2019
fde4035
Merge pull request #4134 from demisto/build_shift
ShahafBenYakir Aug 19, 2019
0ee8b46
Changed new layouts to system: true (#4132)
DeanArbel Aug 19, 2019
e767a1c
ThinkstCanary - handle error msg with grace (#4035)
bakatzir Aug 19, 2019
fbb312f
changelog
orlichter1 Aug 19, 2019
3b9acf2
Create slack message function
ShahafBenYakir Aug 19, 2019
266b405
Create slack message function
ShahafBenYakir Aug 19, 2019
8c47dfe
Added ZeroFox integrarion description
Aug 20, 2019
ad565d2
Indicator Layouts cherry pick (#4144)
DeanArbel Aug 20, 2019
9341116
Have i been pwned v3 (#4070)
teizenman Aug 20, 2019
46fd310
cherry pick
Aug 20, 2019
ef15216
removed required from schema (#4150)
DeanArbel Aug 20, 2019
5344820
removed required from schema (#4149)
DeanArbel Aug 20, 2019
76b2763
Added server url to slack message
ShahafBenYakir Aug 20, 2019
1a5005d
Trying to set the slack message as MD
ShahafBenYakir Aug 20, 2019
96ce73e
Merge pull request #4152 from demisto/have-i-been-pwned-v2
Aug 20, 2019
00f1f36
Added condition to slack messages be sent only on nightly
ShahafBenYakir Aug 20, 2019
fc1acf8
fixed:
Aug 20, 2019
09b0b1d
fixed indentation in lines 540-545 in ZeroFox.py
Aug 20, 2019
cca4a04
fixed indentation in lines 540-545 in ZeroFox.py
Aug 20, 2019
c892a34
Added condition to slack messages be sent only on nightly
ShahafBenYakir Aug 20, 2019
d1838bd
fixed mypy errors
Aug 20, 2019
e7222f0
Replaced is_nightly with options.nightly
ShahafBenYakir Aug 20, 2019
9074fa8
fixed mypy errors
Aug 20, 2019
0164337
Skipped CarbonBlackLiveResponseTest
ShahafBenYakir Aug 20, 2019
18ea81c
Increased Extract Indicators From File - Generic v2 - Test timeout to…
ShahafBenYakir Aug 20, 2019
6f16fc9
fixed id of indicator fields (#4154)
DeanArbel Aug 20, 2019
e8b43d8
fixed id of indicator fields (#4156)
DeanArbel Aug 20, 2019
e973782
fixed mypy errors
Aug 20, 2019
31c306b
Minor edit.
kirbles19 Aug 20, 2019
b25b171
Merge branch 'master' into zerofox-integration
Aug 20, 2019
b9a997e
updated conf.json
Aug 20, 2019
6afc87b
...
Aug 20, 2019
b57dafc
updated list_alerts
Aug 20, 2019
3edf776
No need to propagate is_nightly variable
ShahafBenYakir Aug 20, 2019
1560766
updated type bugs
Aug 20, 2019
e3e3cd4
better logging of "Mismatch between playbookID...." (#4151)
bakatzir Aug 20, 2019
9d06b3b
No need to propagate is_nightly variable
ShahafBenYakir Aug 20, 2019
d883fbe
packaging
orlichter1 Aug 20, 2019
91e0fcf
fixed unit tests
Aug 20, 2019
1889256
Skipped nexpose_test
ShahafBenYakir Aug 20, 2019
5d77993
Subtype enforce for yml files (#4142)
bakatzir Aug 20, 2019
ac2b55b
FE HX - indicator unknown (#4157)
bakatzir Aug 20, 2019
597901f
Merge branch 'master' into sep-packaging
orlichter1 Aug 20, 2019
b5c56ed
Merge pull request #4158 from demisto/memmory_check
ShahafBenYakir Aug 20, 2019
9643d87
Change log file + description
orlichter1 Aug 20, 2019
a649cae
Update Censys.yml
Aug 20, 2019
487f9e6
Update Censys.yml
Aug 20, 2019
f99afbc
Merge pull request #4164 from demisto/19.8.1-fix-censys-bc-breakage
Aug 20, 2019
7858f83
Changed account id
ShahafBenYakir Aug 20, 2019
ab7cbc3
Get pass fix (#3982)
glicht Aug 20, 2019
3aa15a8
added urls to whitelist
Aug 21, 2019
a9a7d5e
added urls to whitelist & ZeroFox list of problematic strings
Aug 21, 2019
e7f9643
added urls to whitelist & ZeroFox list of problematic strings
Aug 21, 2019
8546ece
removed pytest import
Aug 21, 2019
ec920e6
Merge branch 'master' into pan-os-dag-edl-playbooks
Aug 21, 2019
940956d
Merge branch 'master' of github.com:demisto/content into zerofox-inte…
Aug 21, 2019
3528ea1
Merge pull request #4165 from demisto/gvault_accountID_change
ShahafBenYakir Aug 21, 2019
69de3dc
removed pytest import
Aug 21, 2019
14a072c
changed the integration for pan-os-edl test playbook
Aug 21, 2019
39bae05
Documentaionautomation - ignore deprecated cmds (#4153)
bakatzir Aug 21, 2019
c7c0ea8
Merge pull request #4155 from demisto/build_shift
ShahafBenYakir Aug 21, 2019
e7297de
remedy sr - change logo and subtype (#4163)
bakatzir Aug 21, 2019
95d8e22
Merge pull request #4169 from demisto/version_file_for_amis
yaakovi Aug 21, 2019
7e14460
url regex twik for urlquery
bakatzir Aug 21, 2019
385ba8a
fix version keys
Aug 21, 2019
201d4fa
Merge pull request #4174 from demisto/fix_ami_version_file
Aug 21, 2019
dd8dc4f
PAN-OS - edit-rule command - log forwarding option addition (#4148)
bakatzir Aug 21, 2019
a08940f
Merge branch 'master' into zerofox-integration
Aug 21, 2019
c7b0a66
Merge branch 'master' into pan-os-dag-edl-playbooks
Aug 21, 2019
be00e50
fixed fetch incidents
Aug 21, 2019
ecdf56e
added log forwarding to dag and edl playbooks
Aug 21, 2019
f3197d3
Merge pull request #4173 from demisto/url_regex_urlquery
yaakovi Aug 21, 2019
dd528d5
Added messages for memory limit and processes
ShahafBenYakir Aug 21, 2019
4b9c319
removed specific integration name
Aug 21, 2019
a1bc89c
Removed unused variable
ShahafBenYakir Aug 21, 2019
1cac772
Word tokenize non root (#4168)
glicht Aug 21, 2019
2361b85
Fix phishing ML predict label (#4043)
Aug 21, 2019
cb462fc
Onboarding fix (#4166)
glicht Aug 21, 2019
4690d04
Update playbook-PAN_OS_EDL_SETUP-Test.yml
Aug 22, 2019
f83a715
added missing panorama integration for edl test playbook
Aug 22, 2019
271e5f5
replaced test playbook parsecsv nullbytes with unit test (#4179)
jochman Aug 22, 2019
fb17db9
Update conf.json
Aug 22, 2019
0f1c1ea
updated func names
Aug 22, 2019
493b2f5
fixed instance
Aug 22, 2019
ea09bad
sumList - add entirelist tag, support str and single int (#4175)
bakatzir Aug 22, 2019
b844e95
Changed indexing messages
ShahafBenYakir Aug 22, 2019
a4c97c8
Skipped VMRay - license expired #18752
ShahafBenYakir Aug 22, 2019
12081a2
updated conf.json to support version 4.1.0
Aug 22, 2019
2e79484
[Internal] Added schema tests (#4180)
DeanArbel Aug 22, 2019
2950894
Added prints
ShahafBenYakir Aug 22, 2019
e2163ba
Merge pull request #4080 from demisto/pan-os-dag-edl-playbooks
Aug 22, 2019
d3819aa
Added prints
ShahafBenYakir Aug 22, 2019
fbb1feb
Lastline - add File.Type outputs for file, lastline-get-report comman…
bakatzir Aug 22, 2019
a4640dd
Ignore user case
liorblob Aug 22, 2019
997546c
emoved process printing
ShahafBenYakir Aug 22, 2019
ade2ea3
last changes from CR
Aug 22, 2019
26ee3f9
Merge pull request #4184 from demisto/build_shift
ShahafBenYakir Aug 22, 2019
5690fa3
removed process printing
ShahafBenYakir Aug 22, 2019
1c933e4
Removed system field for scripts (#4145)
DeanArbel Aug 22, 2019
6e6f921
Update package_creator.py
Aug 22, 2019
f90d687
Update config.yml
Aug 22, 2019
fe1c90c
Exabeam fixes - linters, missing brackets, unreachable code (#4181)
bakatzir Aug 22, 2019
f04f0ce
Merge pull request #4183 from demisto/memmory_check
ShahafBenYakir Aug 22, 2019
511ac06
Merge pull request #4187 from demisto/slack_ignore_case
liorblob Aug 22, 2019
61c9a9b
added empty release notes for incident fields revert
Aug 22, 2019
177b7e5
Merge branch 'master' of github.com:demisto/content into clear_rn19.8.2
Aug 22, 2019
14fbe08
updated git sha1
Aug 22, 2019
5107dd6
Added change log to new integrations
Aug 22, 2019
8bfde61
Added change log to new scripts
Aug 22, 2019
3abeee2
[Enhancement] Carbon Black Enterprise Response - Process info (#4143)
DeanArbel Aug 22, 2019
5f82376
Added change log to new playbooks
Aug 22, 2019
5768788
removed ParseCSVnullbytesTest from conf.json
Aug 22, 2019
49777f6
removed CreatePhishingClassifierMLTest skip from conf.json
Aug 22, 2019
816638d
removed TestParseCSV from conf.json
Aug 22, 2019
5887af0
Merge pull request #4189 from demisto/clear_rn19.8.2
Aug 22, 2019
fa420f9
Add get_demisto_version function (#4135)
Itay4 Aug 22, 2019
af43dab
add rn for get demisto version
Itay4 Aug 23, 2019
12044f6
move rn to changelog and remove md file
Itay4 Aug 23, 2019
6190b11
Merge branch 'master' into slack-ask
liorblob Aug 23, 2019
728f735
remove from latestrelease
liorblob Aug 23, 2019
8cec6a4
chanGelog
liorblob Aug 23, 2019
469d01f
remove latestrelease
liorblob Aug 23, 2019
857eaf6
Merge pull request #4192 from demisto/commonserver-changelog
yaakovi Aug 23, 2019
ba7b731
toversion fromversion
liorblob Aug 23, 2019
e039a84
fixed return_warning description
yaakovi Aug 23, 2019
41b72f7
move beta tag of pop3 to the correct place and add beta description (…
yuvalbenshalom Aug 24, 2019
52dacf4
Update instance_notifier.py (#4199)
yaakovi Aug 25, 2019
85f73fb
Update Integrations/SymantecEndpointProtection_V2/CHANGELOG.md
orlichter1 Aug 25, 2019
9ffda49
Update CommonServerPython.yml
yaakovi Aug 25, 2019
b498271
Merge branch 'master' into exchange2016_comliance
orlichter1 Aug 25, 2019
cbf9030
try-finally addition
orlichter1 Aug 25, 2019
1cf8dde
CHANGELOG
orlichter1 Aug 25, 2019
f124942
Deleted all Asset fields from an alert object.
Aug 25, 2019
4815a3c
Fixes
liorblob Aug 25, 2019
e1609c0
Merge pull request #4160 from demisto/sep-packaging
orlichter1 Aug 25, 2019
f0f6435
MicrosoftTeamsAsk - added channel argument (#4171)
Itay4 Aug 25, 2019
26f3a9a
Deleted asset fields from tests data files.
Aug 25, 2019
0bbbb50
Merge pull request #4050 from demisto/fix-lr-bug
adi88d Aug 25, 2019
574baa1
flake8
liorblob Aug 25, 2019
880c6ef
changed some error msgs to the user by TR.
Aug 25, 2019
7a8968c
Code Review fixes
orlichter1 Aug 25, 2019
9ebda90
Code Review fixes - spaces
orlichter1 Aug 25, 2019
004180d
Merge pull request #4030 from demisto/Splunkpy-fetch-limit
orlichter1 Aug 25, 2019
f433136
changed some error msgs to the user by TR. v2
Aug 25, 2019
0c22262
Skipped failing tests
ShahafBenYakir Aug 25, 2019
3293709
Unskipped PAN-OS DAG Configuration
ShahafBenYakir Aug 25, 2019
7fd07ef
Merge pull request #4196 from demisto/CommonServerPythonDescriptionFix
yaakovi Aug 25, 2019
6fe4356
Conflicts resolved (#4086)
teizenman Aug 25, 2019
fa8544b
Unskipped PAN-OS DAG Configuration
ShahafBenYakir Aug 25, 2019
096f41b
Merge pull request #4207 from demisto/build_shift
ShahafBenYakir Aug 25, 2019
0b3cf3e
Add beta description and display to packaged integrations (#4197)
yuvalbenshalom Aug 25, 2019
a992914
Skipped due to quota
ShahafBenYakir Aug 25, 2019
86681fe
Microsoft Teams - add argument channel_name to mirror_investigation (…
Itay4 Aug 25, 2019
851626e
Merge remote-tracking branch 'origin/master' into slack-ask
liorblob Aug 25, 2019
d61c821
Layouts scripts correction (#4203)
DeanArbel Aug 25, 2019
3f7bf8f
Build shift (#4210)
ShahafBenYakir Aug 25, 2019
1fa1a4e
Updated descriptions.
kirbles19 Aug 25, 2019
3190fca
Updated the deprecated description.
kirbles19 Aug 25, 2019
648986d
Updated deprecated description
kirbles19 Aug 25, 2019
e255700
Updated descriptions.
kirbles19 Aug 25, 2019
d415e2a
rn (#4211)
bakatzir Aug 26, 2019
f017df4
XDR - adding default query when no args are given (#4186)
bakatzir Aug 26, 2019
1d0fa8a
Merge branch 'master' of github.com:demisto/content into build_shift
ShahafBenYakir Aug 26, 2019
3fcee4d
PAN-OS - add missing Logs in output paths (#4201)
bakatzir Aug 26, 2019
3372e43
TestParseEmailHeaders Fails on conditional task (Issue 18815)
ShahafBenYakir Aug 26, 2019
800741f
TestParseEmailHeaders Fails on conditional task (Issue 18815)
ShahafBenYakir Aug 26, 2019
47cd5b6
added subtype for ZeroFox.yml
Aug 26, 2019
2dc9a1f
ATD - detonate playbooks - filters "-1" taskIds throughout all tasks…
bakatzir Aug 26, 2019
422785d
TestParseEmailHeaders Fails on conditional task (Issue 18815)
ShahafBenYakir Aug 26, 2019
b2b735a
Update ZeroFox.yml
ygerowitz Aug 26, 2019
ebce672
updated yml
Aug 26, 2019
ffc0ba8
Add hook validation that a domain/email/file/ip/url command has an a …
bakatzir Aug 26, 2019
f8cc469
Moved EclecticIQ to skipped integrations aS the old API was deprecated
ShahafBenYakir Aug 26, 2019
13d0ef4
Fixed link to Unit Test Docs
Aug 26, 2019
9914d74
Merge branch 'master' into slack-ask
liorblob Aug 26, 2019
6c57b15
Merge pull request #4216 from demisto/build_shift
ShahafBenYakir Aug 26, 2019
997e9b5
typos
liorblob Aug 26, 2019
7fe744f
Testing Lastline only from it's own test as the detonation playbook a…
ShahafBenYakir Aug 26, 2019
4a9d3d5
Merge pull request #4220 from demisto/LPettay-Unit-Test-Link-Fix
Aug 26, 2019
cb5119b
Censys: (#4112)
dantavori Aug 26, 2019
b5bfee0
Merge pull request #4194 from demisto/slack-ask
liorblob Aug 26, 2019
193cc7f
Revert "Testing Lastline only from it's own test as the detonation pl…
ShahafBenYakir Aug 26, 2019
98b1e89
Added context paths to standard outputs (#4172)
DeanArbel Aug 27, 2019
bb13aee
Update ZeroFox.yml
guyfreund Aug 27, 2019
55a9f5a
Update CHANGELOG.md
guyfreund Aug 27, 2019
226fd17
Update CHANGELOG.md
guyfreund Aug 27, 2019
aeb08de
Update CHANGELOG.md
guyfreund Aug 27, 2019
13f4def
Merge branch 'master' of https://github.com/demisto/content into ec2-…
amshamah419 Aug 27, 2019
34a183e
Change per Nir's request.
amshamah419 Aug 27, 2019
dd62cc6
mypy
amshamah419 Aug 27, 2019
394d937
removed vmray from skipped (#4193)
jochman Aug 27, 2019
eee20a7
ReleaseNotes
amshamah419 Aug 27, 2019
4b12f09
Add subtype
amshamah419 Aug 27, 2019
8ee4dc4
Skipped GVault - Error when creating exports (Issue 18866)
ShahafBenYakir Aug 27, 2019
dcb54f1
fix upload-file command when the file is local summary report
Aug 27, 2019
44e683b
fixed CR issues
Aug 28, 2019
adbd68d
Merge pull request #4111 from demisto/zerofox-integration
guyfreund Aug 28, 2019
d85f91d
Microsoft Teams enhancements (#4223)
Itay4 Aug 28, 2019
aa04668
update report decoder for incident status as specified in web client:…
glicht Aug 28, 2019
c43851b
Update CHANGELOG.md
richardbluestone Aug 28, 2019
1805151
packagify mimecastV2
Aug 28, 2019
94a9cf0
packagify mimecastV2
Aug 28, 2019
5d53576
packagify mimecastV2
Aug 28, 2019
ffc9331
Merge pull request #4233 from demisto/build_shift
ShahafBenYakir Aug 28, 2019
25b78f9
packagify mimecastV2
Aug 28, 2019
981efad
packagify mimecastV2
Aug 28, 2019
3d2bcfe
Skipped Jask
ShahafBenYakir Aug 28, 2019
c064dfe
fixed playbook to get only active instances of the integration
Aug 28, 2019
987fd9e
added subtype to yml
Aug 28, 2019
84cfd61
return error when file not found
Aug 28, 2019
1675b8c
removed redundant context paths (#4225)
DeanArbel Aug 28, 2019
04a9392
Find Similar Incidents - support new line (#4061)
Aug 28, 2019
28a2231
ATD - Handle DBotScore outputs for an unsuccessful detonation of subm…
bakatzir Aug 28, 2019
6f279d0
Update ZeroFox.yml
guyfreund Aug 28, 2019
443a99c
packagify mimecastV2
Aug 28, 2019
f8348e8
Updated description.
kirbles19 Aug 28, 2019
fc226db
trial and error
Aug 28, 2019
6b90896
Please pass I can't take it no more
Aug 28, 2019
4cd5b73
Python is not really strong typed.
Aug 28, 2019
8b9ab1f
Oh ofcourse pylint had something to say... why not
Aug 28, 2019
42cdb01
Merge branch 'master' into zerofox-integration
guyfreund Aug 28, 2019
e96c450
Merge pull request #4018 from demisto/ec2-ingress
amshamah419 Aug 28, 2019
93fe24d
a fix
Aug 28, 2019
10c5142
Merge pull request #4235 from demisto/mimecast-v2-package
Aug 28, 2019
0f112e6
Merge branches 'master' and 'mimecast-v2-fix' of github.com:demisto/c…
Aug 28, 2019
516bfb2
update release note
Aug 28, 2019
579b055
Merge pull request #4239 from demisto/zerofox-integration
guyfreund Aug 28, 2019
d9079d7
update release note
Aug 28, 2019
d901c96
remove trailing slash from login url (#4240)
Itay4 Aug 28, 2019
d043c28
Merge pull request #4241 from demisto/mimecast-v2-fix
Aug 28, 2019
70dd9ab
Adding new output and removing the attachments one (#3882)
ronykoz Aug 28, 2019
acd0d7f
Merge branches 'fix_find_similar_incidents' and 'master' of github.co…
Aug 28, 2019
da659c9
change changes log
Aug 28, 2019
3a27e3c
improve bot framework error handling (#4243)
Itay4 Aug 29, 2019
30cdf77
Merge pull request #3966 from demisto/exchange2016_comliance
orlichter1 Aug 29, 2019
ea5850e
Context paths DBotScore and a few outputs hook validations (#4232)
bakatzir Aug 29, 2019
29276ef
Merge pull request #4236 from demisto/build_shift
ShahafBenYakir Aug 29, 2019
6ffdbd9
Merge pull request #3800 from demisto/fix_find_similar_incidents
Aug 29, 2019
f23d062
Updated description.
kirbles19 Aug 29, 2019
fb18180
Fixed UnicodeDecodeError in qradar-get-search-results (#4190)
DeanArbel Aug 29, 2019
f78473b
Merge pull request #4231 from demisto/servicenow-upload-file-fix
adi88d Aug 29, 2019
1a9241f
Update ANYRUN.py
mincrodo Aug 29, 2019
e215a87
Update SlackAskUser.py
mincrodo Sep 1, 2019
7fe9530
Update SlackAskUser.yml
mincrodo Sep 1, 2019
77da6a9
Update SlackAskUser.yml
mincrodo Sep 1, 2019
bba0202
Merge pull request #1 from mincrodo/mincrodo-patch-1
mincrodo Sep 1, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
173 changes: 156 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,78 +1,217 @@
version: 2.0
version: 2
jobs:
build:
docker:
- image: ronykoz/content-build-node911:latest
- image: devdemisto/content-build-2and3:2.0.0.877 # disable-secrets-detection
resource_class: medium+
environment:
CONTENT_VERSION: "18.11.2"
GIT_SHA1: "3ac083b891d2f146ffbad6c7ce0a3be9e4f94b92"
CONTENT_VERSION: "19.8.2"
SERVER_VERSION: "4.5.0"
GIT_SHA1: "177b7e574fc936df19170c13650ea2581e4920f6" # guardrails-disable-line disable-secrets-detection
steps:
- checkout
- setup_remote_docker
- run:
name: Prepare Environment
when: always
command: |
echo 'export CIRCLE_ARTIFACTS="/home/circleci/project/artifacts"' >> $BASH_ENV
echo 'export PATH="/home/circleci/.pyenv/shims:/home/circleci/.local/bin:/home/circleci/.pyenv/bin:${PATH}"' >> $BASH_ENV # disable-secrets-detection
echo 'export PYTHONPATH="/home/circleci/project:${PYTHONPATH}"' >> $BASH_ENV
echo "=== sourcing $BASH_ENV ==="
source $BASH_ENV
sudo mkdir -p -m 777 $CIRCLE_ARTIFACTS
- run:
name: Install dependencies
command: |
chmod +x ./Tests/scripts/*
chmod +x ./Tests/lastest_server_build_scripts/*
pyenv versions
python --version
python3 --version
echo "Parameters: NIGHTLY: $NIGHTLY, NON_AMI_RUN: $NON_AMI_RUN, SERVER_BRANCH_NAME: $SERVER_BRANCH_NAME"
- add_ssh_keys:
fingerprints:
- "02:df:a5:6a:53:9a:f5:5d:bd:a6:fc:b2:db:9b:c9:47"
- "02:df:a5:6a:53:9a:f5:5d:bd:a6:fc:b2:db:9b:c9:47" # disable-secrets-detection
- "f5:25:6a:e5:ac:4b:84:fb:60:54:14:82:f1:e9:6c:f9" # disable-secrets-detection
- run:
name: Create ID Set
when: always
command: |
python ./Tests/scripts/update_id_set.py -r
- run:
name: Infrastucture testing
when: always
command: |
pytest ./Tests/scripts/hook_validations/tests/ -v
pytest ./Tests/scripts/infrastructure_tests/ -v
pytest ./Tests/scripts/test_configure_tests.py -v
- run:
name: Validate Files and Yaml
when: always
command: |
python ./Tests/scripts/validate_files_structure.py -c true
# Run flake8 on all excluding Integraions and Scripts (they will be handled in linting)
./Tests/scripts/pyflake.sh *.py
find . -maxdepth 1 -type d -not \( -path . -o -path ./Integrations -o -path ./Scripts -o -path ./Beta_Integrations \) | xargs ./Tests/scripts/pyflake.sh

[ -n "${BACKWARD_COMPATIBILITY}" ] && CHECK_BACKWARD=false || CHECK_BACKWARD=true
python ./Tests/scripts/validate_files.py -c true -b $CHECK_BACKWARD
- run:
name: Configure Test Filter
when: always
command: |
[ -n "${NIGHTLY}" ] && IS_NIGHTLY=true || IS_NIGHTLY=false
python ./Tests/scripts/configure_tests.py -n $IS_NIGHTLY
- run:
name: Spell Checks
command: |
python ./Tests/scripts/circleci_spell_checker.py $CIRCLE_BRANCH
- run:
name: Build Content Descriptor
command: ./setContentDescriptor.sh $CIRCLE_BUILD_NUM $GIT_SHA1 $CONTENT_VERSION
when: always
command: python release_notes.py $CONTENT_VERSION $GIT_SHA1 $CIRCLE_BUILD_NUM $SERVER_VERSION $GITHUB_TOKEN
- run:
name: Common Server Documentation
when: always
command: ./Documentation/commonServerDocs.sh
- run:
name: Create Content Artifacts
when: always
command: python content_creator.py $CIRCLE_ARTIFACTS
- store_artifacts:
path: artifacts
destination: artifacts
- run:
name: Run Unit Testing and Lint
when: always
command: SKIP_GIT_COMPARE_FILTER=${NIGHTLY} ./Tests/scripts/run_all_pkg_dev_tasks.sh
- run:
name: Download Artifacts
when: always
command: |
if ./Tests/scripts/is_ami.sh ;
then
echo "Using AMI - Not downloading artifacts"

else
./Tests/scripts/server_get_artifact.sh $SERVER_CI_TOKEN
fi
- run:
name: Download Configuration
when: always
command: |
./Tests/scripts/download_demisto_conf.sh
if ./Tests/scripts/is_ami.sh ;
then
./Tests/scripts/download_demisto_conf.sh

else
./Tests/lastest_server_build_scripts/download_demisto_conf.sh
fi
- run:
name: Create Instance
when: always
command: |
./Tests/scripts/create_instance.sh instance.json
pip install --upgrade awscli
pip install ansible ansible-runner rsa paramiko boto3 requests

if ./Tests/scripts/is_ami.sh ;
then
if [ -n "${NIGHTLY}" ] ;
then
export IFRA_ENV_TYPE=Content-Master

else
export IFRA_ENV_TYPE=Content-Env
fi
python ./Tests/scripts/awsinstancetool/aws_instance_tool.py -envType $IFRA_ENV_TYPE

else
python ./Tests/scripts/awsinstancetool/aws_instance_tool.py -envType CustomBuild
fi
- run:
name: Setup Instance
when: always
command: |
if ./Tests/scripts/is_ami.sh ;
then
python ./Tests/scripts/run_content_installation.py
python ./Tests/scripts/wait_until_server_ready.py -c $(cat secret_conf_path) -v $CONTENT_VERSION

else
./Tests/lastest_server_build_scripts/run_installer_on_instance.sh
python ./Tests/scripts/wait_until_server_ready.py -c $(cat secret_conf_path) -v $CONTENT_VERSION --non-ami
fi
- run:
name: Run Tests - Latest GA
shell: /bin/bash
when: always
command: |
if ./Tests/scripts/is_ami.sh ;
then
./Tests/scripts/run_tests.sh "Demisto GA"

else
./Tests/lastest_server_build_scripts/run_tests.sh
fi
- run:
name: Run Tests - One Before GA
shell: /bin/bash
when: always
command: |
if ./Tests/scripts/is_ami.sh ;
then
./Tests/scripts/run_tests.sh "Demisto one before GA"

else
echo "Not AMI run, can't run on this version"
fi
- run:
name: Run Tests - Two Before GA
shell: /bin/bash
when: always
command: |
./Tests/scripts/run_installer_on_instance.sh
./Tests/scripts/wait_until_server_ready.sh
if ./Tests/scripts/is_ami.sh ;
then
./Tests/scripts/run_tests.sh "Demisto two before GA"

else
echo "Not AMI run, can't run on this version"
fi
- run:
name: Run Tests
name: Run Tests - Server Master
shell: /bin/bash
command: ./Tests/scripts/run_tests.sh
when: always
command: |
if ./Tests/scripts/is_ami.sh ;
then
./Tests/scripts/run_tests.sh "Server Master"

else
echo "Not AMI run, can't run on this version"
fi
- run:
name: Slack Notifier
shell: /bin/bash
command: ./Tests/scripts/slack_notifier.sh
when: always
- run:
name: Validate Docker Images
shell: /bin/bash
command: ./Tests/scripts/validate_docker_images.sh
when: always
- run:
name: Instance Test
command: ./Tests/scripts/instance_test.sh
when: always
- run:
name: Destroy Instances
command: ./Tests/scripts/destroy_instances.sh $CIRCLE_ARTIFACTS
command: python ./Tests/scripts/destroy_instances.py $CIRCLE_ARTIFACTS
when: always
- store_artifacts:
path: artifacts
destination: artifacts
when: always


workflows:
version: 2
commit:
jobs:
- build
6 changes: 6 additions & 0 deletions .github/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
newPRWelcomeComment: >
Hi and welcome to the Demisto Content project!
Thank you and congrats on your first pull request, we will review it soon!
Until then you can check out our [documentation](https://github.com/demisto/content/tree/master/docs) for more details.
We would be thrilled to see you get involved in our [Slack DFIR community](https://go.demisto.com/join-our-slack-community) for discussions.
Hope you have a great time here :)
8 changes: 8 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- REMINDER: THIS IS A PUBLIC REPO DO NOT POST HERE SECRETS/SENSITIVE DATA -->

## Status
Ready/In Progress/In Hold(Reason for hold)

Expand Down Expand Up @@ -30,5 +32,11 @@ x.x.x
- [ ] Documentation (with link to it)
- [ ] Code Review

## Dependencies
Mention the dependencies of the entity you changed as given from the precommit hooks in checkboxes, and tick after tested them.
- [ ] Dependency 1
- [ ] Dependency 2
- [ ] Dependency 3

## Additional changes
Describe additional changes done, for example adding a function to common server.
20 changes: 19 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
.DS_Store
.idea
_site
.vscode
_site
TestData/EmailWithNonUnicodeAttachmentName.eml
TestData/EmailWithNonUnicodeSubject.eml
*.pyc
.pytest_cache

CommonServerPython.py
!Scripts/CommonServerPython/CommonServerPython.py
CommonServerUserPython.py
demistomock.py
Tests/filter_file.txt
Tests/id_set.json
.mypy_cache
Scripts/*/*_unified.yml
Integrations/*/*_unified.yml
Beta_Integrations/*/*_unified.yml
conftest.py
!Tests/scripts/dev_envs/pytest/conftest.py
1 change: 1 addition & 0 deletions .guardrails/ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Integrations/Active_Directory_Query/key.pem
32 changes: 28 additions & 4 deletions .hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,15 +1,37 @@
#!/bin/bash

# validating that each modified file has a valid schema, release notes, proper prefix & suffix
echo "Validating files"
python Tests/scripts/validate_files_structure.py
echo "Validating files..."
if [[ -z "${WINDIR}" ]]
then
PYTHONPATH="`pwd`:${PYTHONPATH}" python Tests/scripts/validate_files.py -t true
else
python Tests/scripts/validate_files.py
fi

RES=$?

echo ""
if [[ -n "$CONTENT_PRECOMMIT_RUN_DEV_TASKS" ]]; then
echo "Running content dev tasks (flake8, mypy, pylint, pytst) as env variable CONTENT_PRECOMMIT_RUN_DEV_TASKS is set."
./Tests/scripts/run_all_pkg_dev_tasks.sh
RES=$(($RES + $?))
else
echo "Skipping running dev tasks (flake8, mypy, pylint, pytest). If you want to run this as part of the precommit hook"
echo 'set CONTENT_PRECOMMIT_RUN_DEV_TASKS=1. You can add the following line to ~/.zshrc:'
echo 'echo "export CONTENT_PRECOMMIT_RUN_DEV_TASKS=1" >> ~/.zshrc'
echo ""
echo 'Or if you want to manually run dev tasks: ./Tests/scripts/pkg_dev_test_tasks.py -d <integration/script dir>'
echo 'Example: ./Tests/scripts/pkg_dev_test_tasks.py -d Scripts/ParseEmailFiles'
fi

if [[ $? -ne 0 ]]
then
if [[ $RES -ne 0 ]]
then
echo "Please fix the aforementioned errors and then commit again"
exit 1
fi


# prevent push to master
if [ -z "$1" ]; then
protected_branch='master'
Expand All @@ -19,3 +41,5 @@ if [ -z "$1" ]; then
exit 1
fi
fi

echo ""
Binary file added Beta_Integrations/Blueliv/Blueliv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading