Comment 2 for bug 2008490

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.opendev.org/c/openstack/tempest/+/875264
Committed: https://opendev.org/openstack/tempest/commit/d52fb8cb6d2ed8893bc36f2f1f786cd890b1732e
Submitter: "Zuul (22348)"
Branch: master

commit d52fb8cb6d2ed8893bc36f2f1f786cd890b1732e
Author: Nozomi Kawamoto <email address hidden>
Date: Sat Feb 25 00:33:46 2023 +0900

    Fix DeprecationWarning of jsonschema

    `jsonschema.draft4_format_checker` and also `jsonschema.FormatChecker.cls_checks`
    are deprecated and DeprecationWarning appears every time so these make
    logs a little dirty and also these attribute/classmethod will be removed
    in the future.

    Therefore `jsonschema.draft4_format_checker` should be replaced with
    `jsonschema.Draft4Validator.FORMAT_CHECKER` and
    `jsonschema.FormatChecker.cls_checks` should be replaced with
    `jsonschema.Draft4Validator.FORMAT_CHECKER.checks`.

    Eventually, DeprecationWarning for jsonschema will disappear with this
    proposed fix.

    Closes-Bug: #2008490
    Change-Id: I1ef326b8ac17f4bbcbc718d13223da156b0e5ec3