Comment 3 for bug 1518996

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/257459
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=afeb366fd30fea70c7de905e54b39347bc411edc
Submitter: Jenkins
Branch: master

commit afeb366fd30fea70c7de905e54b39347bc411edc
Author: Valeriy Ponomaryov <email address hidden>
Date: Mon Dec 14 18:06:13 2015 +0200

    Fix Tempest microversion comparison approach

    Manila microversions have following template:

    x.y

    where 'x' and 'y' both digits.

    And now tempest transforms string 'x.y' to float but it is incorrect
    thing to do because float assumes that each left value is bigger than
    right one. And it is not suitable for microversion comparisons.

    Examples:

    Microversions true conditions:
    2.9 < 2.10
    2.9 < 2.81

    Float true conditions:
    2.9 > 2.10
    2.9 > 2.81

    So, create new file 'manila_tempest_tests/utils.py' and place there
    old and new functions that serve all microversion actions. In addition,
    port another existing utility function called 'rand_ip'.

    Change-Id: I88bf2cb51fd8de1bc89bf169bda7a05ca5a0b8ab
    Closes-Bug: #1518996