diff options
author | Matej Vasek <mvasek@redhat.com> | 2022-01-14 17:08:52 +0100 |
---|---|---|
committer | Matej Vasek <mvasek@redhat.com> | 2022-01-19 13:46:32 +0100 |
commit | 4b384e08a9680d480976ab575ecf54acdb4d1922 (patch) | |
tree | 1296ffdc40e6b45086ea485c5f275188130dc669 /test/python/docker/__init__.py | |
parent | 094665ac0cccc04c7797881ff2a27ff330e9a72e (diff) | |
download | podman-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/__init__.py')
-rw-r--r-- | test/python/docker/__init__.py | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/test/python/docker/__init__.py b/test/python/docker/__init__.py index f75185192..539b30d36 100644 --- a/test/python/docker/__init__.py +++ b/test/python/docker/__init__.py @@ -42,16 +42,19 @@ class Podman(object): os.environ["CONTAINERS_REGISTRIES_CONF"] = os.path.join( self.anchor_directory, "registry.conf" ) - p = configparser.ConfigParser() - p.read_dict( - { - "registries.search": {"registries": "['quay.io', 'docker.io']"}, - "registries.insecure": {"registries": "[]"}, - "registries.block": {"registries": "[]"}, - } - ) + conf = """unqualified-search-registries = ["docker.io", "quay.io"] + +[[registry]] +location="localhost:5000" +insecure=true + +[[registry.mirror]] +location = "mirror.localhost:5000" + +""" + with open(os.environ["CONTAINERS_REGISTRIES_CONF"], "w") as w: - p.write(w) + w.write(conf) os.environ["CNI_CONFIG_PATH"] = os.path.join( self.anchor_directory, "cni", "net.d" |