Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-6658

Using deprecated version of jsonschema schema for unit tests with redfish module

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • openstack-ironic
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Low

      Description of problem:

      According to bug https://bugs.launchpad.net/ironic/+bug/2061160, our unit tests now issue this warning:

      /home/dtantsur/Projects/ironic/.tox/py3/lib/python3.12/site-packages/jsonschema/validators.py:1300: DeprecationWarning: The metaschema specified by $schema was not found. Using the latest draft to validate, but this will raise an error in the future.
      cls = validator_for(schema)

      Version-Release number of selected component (if applicable):

      OSP 18 (Zed)

      How reproducible:

      Always

      Steps to Reproduce:

      1. Clone the repo and run "tox -e py39 – ironic.tests.unit.drivers.modules.redfish.test_management" (chose your py version)
      2. The warning highlighted in the bug will show up.

      Actual results:

      DeprecationWarning bein thrown

      Expected results:

      No DeprecationWarning should be thrown

      Additional info:

      The following is an acceptable schema:

      http://json-schema.org/draft-04/schema#

              rhn-support-alolivei Alexon Ferreira de Oliveira
              jira-bugzilla-migration RH Bugzilla Integration
              rhos-dfg-hardprov
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: