Several unit test cases are breaking with zhmcclient==0.14.0

Bug #1703578 reported by Prabhat Ranjan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-dpm
Fix Released
Critical
Prabhat Ranjan

Bug Description

Several unit test cases are failing with error

 zhmcclient._exceptions.HTTPError: 400,5: Missing required field in request body: initial-memory [POST /api/cpcs/1/partitions]

one test case failing with

ValueError: FakedNic with object ID 1 specified a non-existing virtual switch in its 'virtual-switch-uri' property: '/api/virtual-switches/oid

Changed in nova-dpm:
importance: Undecided → High
importance: High → Critical
summary: - Several unit test cases are breaking after with zhmcclient==0.14.0
+ Several unit test cases are breaking with zhmcclient==0.14.0
description: updated
Revision history for this message
Andreas Scheuring (andreas-scheuring) wrote :

This is probably as we are creating our mock instance without the initial-memory parameter. In zhmcclient 0.14 Andy pimped the mock framework that it behaves like the real HMC in many situations. So he did for the initial-memory property.....

Revision history for this message
Andreas Scheuring (andreas-scheuring) wrote :

Means we need to fix our code!

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova-dpm (master)

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

Changed in nova-dpm:
assignee: nobody → Prabhat Ranjan (pranjank)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova-dpm (master)

Reviewed: https://review.openstack.org/482550
Committed: https://git.openstack.org/cgit/openstack/nova-dpm/commit/?id=dcf6bb695479c7f075b5a224641f01f1b6c89666
Submitter: Jenkins
Branch: master

commit dcf6bb695479c7f075b5a224641f01f1b6c89666
Author: Prabhat Ranjan <email address hidden>
Date: Tue Jul 11 18:23:14 2017 +0530

    Several unit test cases are breaking with zhmcclient==0.14.0

    Closes-Bug: #1703578

    Change-Id: Ied1981d0df1e85422693547c32fd212b749a2387
    Signed-off-by: Prabhat Ranjan <email address hidden>

Changed in nova-dpm:
status: In Progress → Fix Released
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.