ec2 test_api failures

Bug #1240342 reported by Aditi Raveesh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Aditi Raveesh

Bug Description

Currently, some tests in ec2/test_api.py fail if boto version is between 2 and 2.14:

In boto version < 2.14.0 -> method new_http_connection takes exactly two arguments
In boto version = 2.14.0 -> method new_http_connection takes exactly three arguments

If the unit tests use boto version 2.14.0, all tests pass.
If the unit tests are run with a version of boto < 2.14, tests fail with the error: "new_http_connection does not take 2 or more positional arguments"

This is because the comparison done using pkg.parse_version is incorrect.
For eg. version 2.13.3 is incorrectly computed as being greater than 2.14
This causes the wrong number of arguments to be expected to be called. (in this case, 3 instead of 2, which causes the test to fail)

Aditi Raveesh (aditirav)
Changed in nova:
assignee: nobody → Aditi Raveesh (aditirav)
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/52319

Changed in nova:
status: New → In Progress
Aditi Raveesh (aditirav)
description: updated
Aditi Raveesh (aditirav)
Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → icehouse-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-1 → 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.