Fake server id uses int type in unit test
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
Undecided
|
int32bit |
Bug Description
Server id should be always str type not int, but currently in our unit test, we still use int rather than str:
https:/
It may harmless in current test cases, but **there's a potential danger** in future. For example, we may compare server id in our code, but in our test will be 1234 == "1234" that certainly return false but it's not our expected result and yields a false positive. it trouble me a lot to run unit test in this commit:
I re-check many times and completely certain work well but fail to unit test.
Honestly I almost couldn't find any advantage to use int type. So I think the id should be change to str in fake servers to fit real server uuid type.
Changed in python-novaclient: | |
assignee: | nobody → int32bit (int32bit) |
description: | updated |
description: | updated |
Fix proposed to branch: master /review. openstack. org/398050
Review: https:/