- A Group must be create in the TC instance (Org Settings -> Groups)
- The Description Attribute must include Case and URL (System Settings -> Attribute Types)
- A Service App needs to be created "DO NOT DELETE - TcEx Test Service App"
- The v3ApiIntelLinkLimit system property needs to be set to 2.
> cloc bin tcex tests
567 text files.
497 unique files.
674 files ignored.
github.com/AlDanial/cloc v 1.94 T=0.82 s (606.1 files/s, 110333.3 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
Python 463 12769 19781 48249
JSON 28 0 0 8705
YAML 1 1 9 394
Markdown 4 172 0 391
Text 1 0 0 1
-------------------------------------------------------------------------------
SUM: 497 12942 19790 57740
-------------------------------------------------------------------------------
2022-08-26 - 1,721 Test Cases
pytest tests/api/tc/v2/batch/
pytest tests/case_management/test_artifact_interface.py
pytest tests/case_management/test_artifact_interface.py::test_artifact_type_api_options
pytest -n auto --dist loadgroup tests
pytest \
-n auto --dist loadgroup \
--cov=. --cov-report=term-missing --cov-report=html:tests/reports/cov-report \
--durations=25 \
--html=tests/reports/tcex-report.html --self-contained-html \
--log-file=pytest.log \
tests || pytest tests --last-failed --last-failed-no-failures none
1,788 Test Cases
Name Stmts Miss Cover
-----------------------------------------------------------
TOTAL 16855 4367 74%
616 Test Cases
pytest -n auto --dist loadgroup --cov=tcex/api/tc/v2/ --cov-report=term-missing tests/api/tc/v2/
Name Stmts Miss Cover
-----------------------------------------------------------
TOTAL 4316 1402 68%
203 Test Cases
pytest -n auto --cov=tcex/api/tc/v2/batch --cov-report=term-missing tests/api/tc/v2/batch
Name Stmts Miss Cover
-----------------------------------------------------------
TOTAL 1627 560 66%
20 Test Cases
pytest -n auto --cov=tcex/api/tc/v2/datastore --cov-report=term-missing tests/api/tc/v2/datastore
Name Stmts Miss Cover
-----------------------------------------------------------
TOTAL 151 3 98%
4 Test Cases
pytest -n 4 --cov=tcex/api/tc/v2/metric --cov-report=term-missing tests/api/tc/v2/metric
Name Stmts Miss Cover
-----------------------------------------------------------
TOTAL 64 1 98%
3 Test Cases
pytest -n 3 --cov=tcex/api/tc/v2/notification --cov-report=term-missing tests/api/tc/v2/notification
Name Stmts Miss Cover
-----------------------------------------------------------
TOTAL 35 1 97%
387 Test Cases
pytest -n auto --cov=tcex/api/tc/v2/threat_intelligence --cov-report=term-missing tests/api/tc/v2/threat_intelligence
Name Stmts Miss Cover
-----------------------------------------------------------
TOTAL 2396 836 65%
169 Test Cases
pytest -n auto --cov=tcex/api/tc/v3/ --cov-report=term-missing tests/api/tc/v3/
Name Stmts Miss Cover
-----------------------------------------------------------
TOTAL 4426 718 84%
pytest --cov=tcex/api/tc/v3/artifact_types --cov-report=term-missing tests/api/tc/v3/artifact_types
pytest --cov=tcex/api/tc/v3/artifacts --cov-report=term-missing tests/api/tc/v3/artifacts
pytest --cov=tcex/api/tc/v3/attribute_types --cov-report=term-missing tests/api/tc/v3/attribute_types
pytest --cov=tcex/api/tc/v3/case_attributes --cov-report=term-missing tests/api/tc/v3/case_attributes/
pytest --cov=tcex/api/tc/v3/cases --cov-report=term-missing tests/api/tc/v3/cases/
pytest --cov=tcex/api/tc/v3/group_attributes --cov-report=term-missing tests/api/tc/v3/group_attributes/
pytest --cov=tcex/api/tc/v3/groups --cov-report=term-missing tests/api/tc/v3/groups/
pytest --cov=tcex/api/tc/v3/indicator_attributes --cov-report=term-missing tests/api/tc/v3/indicator_attributes/
pytest --cov=tcex/api/tc/v3/indicators --cov-report=term-missing tests/api/tc/v3/indicators/
pytest --cov=tcex/api/tc/v3/notes --cov-report=term-missing tests/api/tc/v3/notes/
pytest --cov=tcex/api/tc/v3/security/owner_roles --cov-report=term-missing tests/api/tc/v3/security/owner_roles
pytest --cov=tcex/api/tc/v3/security/owners --cov-report=term-missing tests/api/tc/v3/security/owners
pytest --cov=tcex/api/tc/v3/security/system_roles --cov-report=term-missing tests/api/tc/v3/security/system_roles
pytest --cov=tcex/api/tc/v3/security/user_groups --cov-report=term-missing tests/api/tc/v3/security/user_groups
pytest --cov=tcex/api/tc/v3/security/users --cov-report=term-missing tests/api/tc/v3/security/users
pytest --cov=tcex/api/tc/v3/security_labels --cov-report=term-missing tests/api/tc/v3/security_labels
pytest --cov=tcex/api/tc/v3/tag --cov-report=term-missing tests/api/tc/v3/tag
pytest --cov=tcex/api/tc/v3/tasks --cov-report=term-missing tests/api/tc/v3/tasks
pytest --cov=tcex/api/tc/v3/victim_assets --cov-report=term-missing tests/api/tc/v3/victim_assets
pytest --cov=tcex/api/tc/v3/victim_attributes --cov-report=term-missing tests/api/tc/v3/victim_attributes
pytest --cov=tcex/api/tc/v3/tasks --cov-report=term-missing tests/api/tc/v3/tasks
pytest --cov=tcex/api/tc/v3/workflow_events --cov-report=term-missing tests/api/tc/v3/workflow_events
pytest --cov=tcex/api/tc/v3/workflow_templates --cov-report=term-missing tests/api/tc/v3/workflow_templates
pytest -n auto --cov=tcex/app/config/ --cov-report=term-missing tests/app/config/
48 Test Cases
Name Stmts Miss Cover
-----------------------------------------------------------
TOTAL 1411 357 75%
pytest -n auto --cov=tcex/app/decorator/ --cov-report=term-missing tests/app/decorator/
42 Test Cases
Name Stmts Miss Cover
-----------------------------------------------------------
TOTAL 163 0 100%
pytest -n auto --cov=tcex/app/playbook/ --cov-report=term-missing tests/app/playbook/
318 Test Cases
Name Stmts Miss Cover
-----------------------------------------------------------
TOTAL 647 50 92%
pytest -n 8 --cov=tcex/app/token/ --cov-report=term-missing tests/app/token_/
9 Test Cases
Name Stmts Miss Cover
-----------------------------------------------------------
TOTAL 139 5 96%
11 Test Cases
pytest -n 8 --cov=tcex/bin/ --cov-report=term-missing tests/bin/
pytest -n 6 --cov=tcex/exit/ --cov-report=term-missing tests/exit/
4 Test Cases
Name Stmts Miss Cover
-----------------------------------------------------------
TOTAL 110 55 50%
pytest -n auto --cov=tcex/input/ --cov-report=term-missing tests/input/
397 Test Cases
Name Stmts Miss Cover
-----------------------------------------------------------
TOTAL 965 122 87%
pytest -n 5 --cov=tcex/logger/ --cov-report=term-missing tests/logger/
9 Test Cases
Name Stmts Miss Cover
-----------------------------------------------------------
TOTAL 324 56 83%
pytest -n auto --cov=tcex/requests_session/ --cov-report=term-missing tests/requests_session/
20 Cases
Name Stmts Miss Cover
-----------------------------------------------------------
TOTAL 351 29 92%
pytest -n auto --cov=tcex/util/ --cov-report=term-missing tests/util/
187 Test Cases
Name Stmts Miss Cover
-----------------------------------------------------------
TOTAL 473 0 100%