"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "nova/tests/unit/objects/test_build_request.py" between
nova-18.2.2.tar.gz and nova-18.2.3.tar.gz

About: OpenStack Nova (Core Service: Compute) manages the lifecycle of compute instances in an OpenStack environment. Responsibilities include spawning, scheduling and decomissioning of machines on demand.
The "Rocky" series (maintained release).

test_build_request.py  (nova-18.2.2):test_build_request.py  (nova-18.2.3)
skipping to change at line 187 skipping to change at line 187
# create it and reload it from the database that the # create it and reload it from the database that the
# build_request.instance.tags is the same thing. # build_request.instance.tags is the same thing.
build_request_obj = fake_build_request.fake_req_obj(self.context) build_request_obj = fake_build_request.fake_req_obj(self.context)
self.assertEqual(1, len(build_request_obj.tags)) self.assertEqual(1, len(build_request_obj.tags))
build_request_obj.create() build_request_obj.create()
self.assertEqual(1, len(build_request_obj.tags)) self.assertEqual(1, len(build_request_obj.tags))
self.assertEqual(len(build_request_obj.tags), self.assertEqual(len(build_request_obj.tags),
len(build_request_obj.instance.tags)) len(build_request_obj.instance.tags))
# Can't compare list objects directly, just compare the single # Can't compare list objects directly, just compare the single
# item they contain. # item they contain.
base.obj_equal_prims(build_request_obj.tags[0], self.assertTrue(base.obj_equal_prims(
build_request_obj.instance.tags[0]) build_request_obj.tags[0],
build_request_obj.instance.tags[0]))
class TestBuildRequestObject(test_objects._LocalTest, class TestBuildRequestObject(test_objects._LocalTest,
_TestBuildRequestObject): _TestBuildRequestObject):
pass pass
class TestRemoteBuildRequestObject(test_objects._RemoteTest, class TestRemoteBuildRequestObject(test_objects._RemoteTest,
_TestBuildRequestObject): _TestBuildRequestObject):
pass pass
class _TestBuildRequestListObject(object): class _TestBuildRequestListObject(object):
 End of changes. 1 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)