ML2 unit test coverage - db

Bug #1269131 reported by Amir Sadoughi
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Romil Gupta

Bug Description

From tox -e cover neutron.tests.unit.ml2; coverage report -m:

neutron/plugins/ml2/db 68 13 2 0 81% 88-93, 125-135

With TOT neutron code:

neutron/plugins/ml2/db 149 27 0 24 3 79%

Tags: unittest ml2
Changed in neutron:
assignee: nobody → Manish Godara (manishatyhoo)
tags: added: ml2 unittest
removed: ml2-unit-test-coverage
Changed in neutron:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

Hi Manish,

Are you actively working on this? As part of effort for https://review.openstack.org/#/c/102101/

I was planning of adding UT coverage for the DVR side of things. I don't mind going over the other bits though depending what you've been up to.

Many thanks,
Armando

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/104731

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Armando Migliaccio (<email address hidden>) on branch: master
Review: https://review.openstack.org/104731
Reason: Superseded by https://review.openstack.org/#/c/82945/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron (master)

Reviewed: https://review.openstack.org/104731
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=0b30651678e1e2e574553272c0f9ab69418efe96
Submitter: Jenkins
Branch: master

commit 0b30651678e1e2e574553272c0f9ab69418efe96
Author: armando-migliaccio <email address hidden>
Date: Thu Jul 3 17:00:44 2014 -0700

    Make ML2 ensure_dvr_port_binding more robust

    There is a remote chance that this operation may
    be prone to DB integrity errors, in case the binding
    is attempted on the same port twice.

    Ideally getter methods should not create, but this
    is a common Neutron (anti)-pattern that would be
    difficult to eradicate (at least in a single patch);
    so for now let's make this code more defensive.

    Related-bug: #1269131
    Related-bug: #1335226

    Change-Id: Ie6c57fd46f0752839814dbac5b14fae2364f973d

Revision history for this message
Romil Gupta (romilg) wrote :

Hi Manish,

I would like to write the UT's for ML2/db.py. Shall I assign this bug to myself and post the patch set if you have not started yet ?

Thanks,
Romil

Revision history for this message
Manish Godara (manishatyhoo) wrote :

@armando-migliaccio: somehow missed the comments on this :( Sorry about that. romilg said he can work on it.

Romil Gupta (romilg)
Changed in neutron:
assignee: Manish Godara (manishatyhoo) → Romil Gupta (romilg)
Romil Gupta (romilg)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/130941

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

Reviewed: https://review.openstack.org/130941
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=e3383f9ac573863c49bf02ff65ea1f8ac1f2b5ee
Submitter: Jenkins
Branch: master

commit e3383f9ac573863c49bf02ff65ea1f8ac1f2b5ee
Author: Romil Gupta <email address hidden>
Date: Sat Oct 25 04:04:13 2014 -0700

    Improve unit test coverage for Ml2 db.py

    From coverage report:

    Module statements missing excluded branches partial coverage
    neutron/plugins/ml2/db 149 9 0 24 3 90%

    Partial-Bug: #1269131
    Change-Id: I5ef2af33d3a723fadfe618064094ea22241b7da1

Revision history for this message
Romil Gupta (romilg) wrote :

Sorry...it's not complete. It's partially fixed.

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → kilo-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: kilo-2 → 2015.1.0
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.