Though the alerting examples work fine, the errors/WARNINGs are showing which makes automated checks pretty hard. please see error below
sh ./run_test.sh unexpected_account_activity elastic changeme localhost:9200 http
--------------------------------------------------
Running test unexpected_account_activity/tests/test1.json
/usr/lib/python3/dist-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.25.10) or chardet (3.0.4) doesn't match a supported version!
RequestsDependencyWarning)
Expected: Watch Condition: True
Received: Watch Condition: True
Expected: Users added and removed in the last 5m:testUserB:
Received: Users added and removed in the last 5m:testUserB:
TEST PASS
./run_test.sh: 44: ./run_test.sh: let: not found
./run_test.sh: 48: ./run_test.sh: let: not found
--------------------------------------------------
1 tests run: 1 passed. 0 failed.
The test is success, but still the warnings are bit harsh. the URLLIB is all as per Elastic documentation for python client library. So may need to be less strict on them too.
Errors and warnings in "Alerting" examples.
Though the alerting examples work fine, the errors/WARNINGs are showing which makes automated checks pretty hard. please see error below
The test is success, but still the warnings are bit harsh. the URLLIB is all as per Elastic documentation for python client library. So may need to be less strict on them too.
Link to code