The _test_{compute,console,network,scheduler}_api methods seem broken.

Bug #1272518 reported by Cyril Roelandt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Russell Bryant

Bug Description

The _test_{compute,console,network,scheduler}_api methods, found in nova/tests/{compute,console,network,scheduler}/test_rpcapi.py, all have the following line in the beginning:

    expected_retval = 'foo' if method == 'call' else None

However, the "method" parameter is never equal to 'call'. It is probably meant to read:

    expected_retval = 'foo' if rpc_method == 'call' else None

instead.

Tags: tests
tags: added: tests
Changed in nova:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Russell Bryant (russellb)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

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

Reviewed: https://review.openstack.org/72124
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=0b8267aa834e9d86cf2ecd9fd64ccc218df454bd
Submitter: Jenkins
Branch: master

commit 0b8267aa834e9d86cf2ecd9fd64ccc218df454bd
Author: Russell Bryant <email address hidden>
Date: Sat Feb 8 16:28:58 2014 -0500

    Fix a couple of unit test typos

    There were two cases in rpcapi unit tests where it was checking method instead
    of rpc_method. Fix up the typo and the reason why the typo didn't matter
    before. Also fix two places where rpcapi code had a return for a cast(), which
    is now caught by the unit tests.

    Closes-bug: #1272518
    Change-Id: Ib5e3a002f6b0f7eb8dee8bd84bd53dbf817017f7

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
Cyril Roelandt (cyril-roelandt) wrote :

@Russell: I think this does not fix the issue for compute/console. See my previous patch at https://review.openstack.org/#/c/69020/ . WDYT ?

Changed in nova:
milestone: none → icehouse-3
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-3 → 2014.1
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.