update container status with new results

a bug was being caused by the fact that the container network results
were not being updated properly.

given that jhon is on PTO, this PR will replace #8362

Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
baude
2020-11-23 12:25:29 -06:00
parent 44da01f45c
commit 1ddb19bc8e
3 changed files with 5 additions and 4 deletions

View File

@ -60,7 +60,7 @@ class Podman(object):
"""
{
"cniVersion": "0.3.0",
"name": "podman",
"name": "default",
"plugins": [{
"type": "bridge",
"bridge": "cni0",

View File

@ -87,7 +87,7 @@ class TestContainers(unittest.TestCase):
self.assertEqual(len(containers), 2)
def test_stop_container(self):
top = self.client.containers.get("top")
top = self.client.containers.get(TestContainers.topContainerId)
self.assertEqual(top.status, "running")
# Stop a running container and validate the state