Unit test fails with InvocationError usign tox

Bug #1532735 reported by naggappan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
Undecided
Graham Hayes

Bug Description

# Installed devsatack with designate successfully (Master branch)
# cd /opt/stack/devstack
# Now triggered the unit test in following way ,

$ tox -e py27 -- designate/tests/test_central/test_service.py:CentralServiceTest.test_count_domains

And this give the following error,
http://paste.openstack.org/show/483385/

Revision history for this message
Graham Hayes (grahamhayes) wrote :

    ➜ designate git:(master) tox -e py27 -- designate.tests.test_central.test_service.CentralServiceTest.test_count_zones
    <snip>
    Captured stderr:
    ~~~~~~~~~~~~~~~~
        /home/graham/repos/github/openstack/designate/.tox/py27/local/lib/python2.7/site-packages/sqlalchemy/sql/default_comparator.py:153: SAWarning: The IN-predicate on "recordsets.id" was invoked with an empty sequence. This results in a contradiction, which nonetheless can be expensive to evaluate. Consider alternative strategies for improved performance.
          'strategies for improved performance.' % expr)

    {1} designate.tests.test_central.test_service.CentralServiceTest.test_count_zones_policy_check [9.331709s] ... ok
    Slowest Tests
    Test id Runtime (s)
    ------------------------------------------------------------------------------------------ -----------
    designate.tests.test_central.test_service.CentralServiceTest.test_count_zones 9.345
    designate.tests.test_central.test_service.CentralServiceTest.test_count_zones_policy_check 9.332

    ======
    Totals
    ======
    Ran: 2 tests in 15.0000 sec.
     - Passed: 2
     - Skipped: 0
     - Expected Fail: 0
     - Unexpected Success: 0
     - Failed: 0
    Sum of execute time for each test: 18.6770 sec.

    ==============
    Worker Balance
    ==============
     - Worker 0 (1 tests) => 0:00:09.345302
     - Worker 1 (1 tests) => 0:00:09.331709

I have not used the file based method of picking tests - I use the above syntax. The test was also renamed to test_count_zones after the big rename.

Changed in designate:
status: New → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (master)

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

Changed in designate:
assignee: nobody → Graham Hayes (grahamhayes)
status: Invalid → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/267091

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (stable/liberty)

Reviewed: https://review.openstack.org/267091
Committed: https://git.openstack.org/cgit/openstack/designate/commit/?id=49b54370a522e495e190344f4cd862ce6d5dc4d4
Submitter: Jenkins
Branch: stable/liberty

commit 49b54370a522e495e190344f4cd862ce6d5dc4d4
Author: Graham Hayes <email address hidden>
Date: Wed Jan 13 18:43:34 2016 +0000

    Update README to RST

    This allows the tooling used by the release management team parse the
    content to grab links to bug trackers and docs.

    Also updated the sample test command to a working one

    Change-Id: I1dcfb2b5ae3ba07fbaf6eaabfef1d9e7da778400
    Closes-Bug: #1532735

tags: added: in-stable-liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (master)

Reviewed: https://review.openstack.org/267089
Committed: https://git.openstack.org/cgit/openstack/designate/commit/?id=b25ab0e1dc5196b522f7b02b3ae77b84f4ddbb2a
Submitter: Jenkins
Branch: master

commit b25ab0e1dc5196b522f7b02b3ae77b84f4ddbb2a
Author: Graham Hayes <email address hidden>
Date: Wed Jan 13 18:43:34 2016 +0000

    Update README to RST

    This allows the tooling used by the release management team parse the
    content to grab links to bug trackers and docs.

    Also updated the sample test command to a working one

    Change-Id: I1dcfb2b5ae3ba07fbaf6eaabfef1d9e7da778400
    Closes-Bug: #1532735

Changed in designate:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/designate 2.0.0.0b3

This issue was fixed in the openstack/designate 2.0.0.0b3 development milestone.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/designate 1.0.2

This issue was fixed in the openstack/designate 1.0.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

This issue was fixed in the openstack/designate 1.0.2 release.

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.