summaryrefslogtreecommitdiff
path: root/test/python/docker/compat
diff options
context:
space:
mode:
authorMatej Vasek <mvasek@redhat.com>2022-01-14 17:08:52 +0100
committerMatej Vasek <mvasek@redhat.com>2022-01-19 13:46:32 +0100
commit4b384e08a9680d480976ab575ecf54acdb4d1922 (patch)
tree1296ffdc40e6b45086ea485c5f275188130dc669 /test/python/docker/compat
parent094665ac0cccc04c7797881ff2a27ff330e9a72e (diff)
downloadpodman-4b384e08a9680d480976ab575ecf54acdb4d1922.tar.gz
podman-4b384e08a9680d480976ab575ecf54acdb4d1922.tar.bz2
podman-4b384e08a9680d480976ab575ecf54acdb4d1922.zip
Add IndexConfigs to compat /info endpoint
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Diffstat (limited to 'test/python/docker/compat')
-rw-r--r--test/python/docker/compat/test_system.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/python/docker/compat/test_system.py b/test/python/docker/compat/test_system.py
index 131b18991..a928de0ee 100644
--- a/test/python/docker/compat/test_system.py
+++ b/test/python/docker/compat/test_system.py
@@ -54,7 +54,10 @@ class TestSystem(unittest.TestCase):
return super().tearDownClass()
def test_Info(self):
- self.assertIsNotNone(self.client.info())
+ info = self.client.info()
+ self.assertIsNotNone(info)
+ self.assertEqual(info["RegistryConfig"]["IndexConfigs"]["localhost:5000"]["Secure"], False)
+ self.assertEqual(info["RegistryConfig"]["IndexConfigs"]["localhost:5000"]["Mirrors"], ["mirror.localhost:5000"])
def test_info_container_details(self):
info = self.client.info()