bneradt opened a new issue #8369: URL: https://github.com/apache/trafficserver/issues/8369
I notice with the 4.x versions of jsonschema, the traffic_dump AuTests fail
because the jsonschema verification fails.
```
$ autest -D gold_tests/ --sandbox /tmp/sb --clean=none --ats-bin
~/build/ts_asf_master_fix_TSSslSecretSet_for_stored_ssl_contexts/bin/ -f
traffic_dump
Running Test traffic_dump:.F Failed
Generating Report: --------------
Test: traffic_dump: Failed
File: traffic_dump.test.py
Directory:
/home/bneradt/src/ts_asf_master_fix_TSSslSecretSet_for_stored_ssl_contexts/tests/gold_tests/pluginTest/traffic_dump
...
Run: Verify the json content of the first session: Failed
Setting up : Copying 'verify_replay.py' to directory
'/tmp/sb/traffic_dump' as 'verify_replay.py'' - Passed
Test : Checking that True == _isRunningAfter - Passed
Reason: Returned Value: True == _isRunningAfter
Starting TestRun 1-tr : No Issues found - Passed
Reason: Started!
Process: Default: Failed
Test : Checking that ReturnCode == 0 - Failed
Reason: Returned Value 1 != 0
```
If I pin the jsonschema version to the latest 3.x release (3.2.0), the test
passes.
For those seeking a workaround, it can be pinned like so:
```
$ cd tests
$ pipenv run pip install --no-input jsonschema==3.2.0
Collecting jsonschema==3.2.0
Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Requirement already satisfied: six>=1.11.0 in
/home/bneradt/.local/share/virtualenvs/tests-RWaVYdAG/lib/python3.8/site-packages
(from jsonschema==3.2.0) (1.16.0)
Requirement already satisfied: attrs>=17.4.0 in
/home/bneradt/.local/share/virtualenvs/tests-RWaVYdAG/lib/python3.8/site-packages
(from jsonschema==3.2.0) (21.2.0)
Requirement already satisfied: pyrsistent>=0.14.0 in
/home/bneradt/.local/share/virtualenvs/tests-RWaVYdAG/lib64/python3.8/site-packages
(from jsonschema==3.2.0) (0.18.0)
Requirement already satisfied: setuptools in
/home/bneradt/.local/share/virtualenvs/tests-RWaVYdAG/lib/python3.8/site-packages
(from jsonschema==3.2.0) (57.0.0)
Installing collected packages: jsonschema
Attempting uninstall: jsonschema
Found existing installation: jsonschema 4.0.1
Uninstalling jsonschema-4.0.1:
Successfully uninstalled jsonschema-4.0.1
Successfully installed jsonschema-3.2.0
$ pipenv run pip freeze | grep jsonschema
jsonschema==3.2.0
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
