Re-enable update container test
The test was disabled by https://review.openstack.org/#/c/562100/ This patch re-enable it. Depends-On: I5f586ccc73f53a5f6e6e4d341251a5288a8687f2 Change-Id: Ibb9ee2edbb2bf60ff8adf7f247383fb62674b758 Related-Bug: #1764923
This commit is contained in:
parent
bd20ce3e54
commit
29fc7e5bd8
@ -428,11 +428,10 @@ class TestContainer(base.BaseZunTest):
|
||||
self.assertEqual(200, resp.status)
|
||||
self.assertTrue('hello' in encodeutils.safe_decode(body))
|
||||
|
||||
@decorators.skip_because(bug="1764923")
|
||||
@decorators.idempotent_id('d383f359-3ebd-40ef-9dc5-d36922790230')
|
||||
def test_update_container(self):
|
||||
_, model = self._run_container(cpu=0.1, memory=100)
|
||||
self.assertEqual('100M', model.memory)
|
||||
self.assertEqual('100', model.memory)
|
||||
self.assertEqual(0.1, model.cpu)
|
||||
docker_base_url = self._get_docker_url(model)
|
||||
container = self.docker_client.get_container(model.uuid,
|
||||
@ -443,7 +442,7 @@ class TestContainer(base.BaseZunTest):
|
||||
resp, model = self.container_client.update_container(model.uuid,
|
||||
gen_model)
|
||||
self.assertEqual(200, resp.status)
|
||||
self.assertEqual('200M', model.memory)
|
||||
self.assertEqual('200', model.memory)
|
||||
self.assertEqual(0.2, model.cpu)
|
||||
container = self.docker_client.get_container(model.uuid,
|
||||
docker_base_url)
|
||||
|
Loading…
Reference in New Issue
Block a user