[UT] Error output in "test_metadata_port_on_network_delete"

Bug #1973731 reported by Rodolfo Alonso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Rodolfo Alonso

Bug Description

The unit test is not providing a return value to a mocked OVN DB method, "nb_idl.ls_get". This is the error output: https://paste.opendev.org/show/bs2WhKDEbdZQ6gid4s9E/

Tags: unittest
Changed in neutron:
importance: Undecided → Low
assignee: nobody → Rodolfo Alonso (rodolfo-alonso-hernandez)
tags: added: unittest
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/866409

Changed in neutron:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/866409
Committed: https://opendev.org/openstack/neutron/commit/88b7db0e0c4d633748f454f4977c13c253012769
Submitter: "Zuul (22348)"
Branch: master

commit 88b7db0e0c4d633748f454f4977c13c253012769
Author: Brian Haley <email address hidden>
Date: Thu Dec 1 17:53:42 2022 -0500

    Mock ls_get in OVN metadata delete network unit test

    "TypeError: 'Mock' object is not iterable" could possibly
    be triggered by test_metadata_port_on_network_delete()
    since there is a missing mock of the return value for ls_get.

    Although I did not see the error described in the bug, I did
    verify ls_get was returning an incorrect value by printing
    it in the code, which after this patch was a fake row.

    Change-Id: Ib1f204c98eee96321c7befebf94012dc2c80b1e8
    Closes-bug: #1973731

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

This issue was fixed in the openstack/neutron 22.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.