From 29fc7e5bd80de706e1a84179656a4bfdb5e2d3f8 Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Wed, 18 Apr 2018 03:16:00 +0000 Subject: [PATCH] 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 --- zun_tempest_plugin/tests/tempest/api/test_containers.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zun_tempest_plugin/tests/tempest/api/test_containers.py b/zun_tempest_plugin/tests/tempest/api/test_containers.py index 367897a..524938b 100644 --- a/zun_tempest_plugin/tests/tempest/api/test_containers.py +++ b/zun_tempest_plugin/tests/tempest/api/test_containers.py @@ -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)