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.
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'.
Reviewed: https:/ /review. openstack. org/257459 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=afeb366fd30 fea70c7de905e54 b39347bc411edc
Committed: https:/
Submitter: Jenkins
Branch: master
commit afeb366fd30fea7 0c7de905e54b393 47bc411edc
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: I88bf2cb51fd8de 1bc89bf169bda7a 05ca5a0b8ab
Closes-Bug: #1518996