UT failed to verify IPv4

Bug #1983067 reported by Yi Feng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Critical
Yi Feng

Bug Description

When executing `tox -e py38`, it cannot pass, and the following error is reported:

tacker.tests.unit.vnflcm.test_controller.TestController.test_instantiate_with_invalid_request_body_5

ft1.164: tacker.tests.unit.vnflcm.test_controller.TestController.test_instantiate_with_invalid_request_body_5testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/zuul/src/opendev.org/openstack/tacker/.tox/py38/lib/python3.8/site-packages/ddt.py", line 191, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/lib/python3.8/unittest/mock.py", line 1325, in patched
    return func(*newargs, **newkeywargs)
  File "/home/zuul/src/opendev.org/openstack/tacker/tacker/tests/unit/vnflcm/test_controller.py", line 1089, in test_instantiate_with_invalid_request_body
    self.assertEqual(expected_message, exception.msg)
  File "/home/zuul/src/opendev.org/openstack/tacker/.tox/py38/lib/python3.8/site-packages/testtools/testcase.py", line 393, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/home/zuul/src/opendev.org/openstack/tacker/.tox/py38/lib/python3.8/site-packages/testtools/testcase.py", line 480, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = "Invalid input for field/attribute additionalParams. Value: ['val1', 'val2']. ['val1', 'val2'] is not of type 'object'"
actual = "Invalid input for field/attribute 0. Value: 192.168.11.01. '192.168.11.01' is not a 'ipv4'"

Changed in tacker:
status: New → In Progress
Yasufumi Ogawa (yasufum)
Changed in tacker:
importance: Undecided → Critical
Yasufumi Ogawa (yasufum)
Changed in tacker:
assignee: nobody → Yasufumi Ogawa (yasufum)
Yi Feng (fengyi765)
Changed in tacker:
assignee: Yasufumi Ogawa (yasufum) → Yi Feng (fengyi765)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tacker (master)

Reviewed: https://review.opendev.org/c/openstack/tacker/+/851478
Committed: https://opendev.org/openstack/tacker/commit/40e895657b677836441040e4cc8d8ccfd4a78c2a
Submitter: "Zuul (22348)"
Branch: master

commit 40e895657b677836441040e4cc8d8ccfd4a78c2a
Author: Yi Feng <email address hidden>
Date: Fri Jul 29 11:02:59 2022 +0900

    Fix IPv4 check failure in UT

    Since the version of jsonschema has been updated from 3.2.0 to 4.7.2,
    when tox executes UT, it reports an error when checking IPv4, and now
    the invalid IP address is fixed.

    Due to FT failure caused by ceilometer, the installation of Ceilometer
    was commented out in `.zuul.yaml`.
    Note that this is only a temporary change and will need to be changed
    back when the ceilometer issue is resolved.

    Closes-Bug: #1983067
    Change-Id: Ice9be4d71ee1689b57add263be5fadd77a7f5ccd

Changed in tacker:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tacker 8.0.0.0rc1

This issue was fixed in the openstack/tacker 8.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.