From ecf6faa975b8197952793b2f027a6e9d3137e00f Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 7 Jan 2025 07:24:12 +0100 Subject: [PATCH] test: Factorize registry setup in testDownloadImage() Use our setupRegistry() helper. --- test/check-application | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/check-application b/test/check-application index 2e867b31..4b6e662c 100755 --- a/test/check-application +++ b/test/check-application @@ -1036,11 +1036,7 @@ class TestApplication(testlib.MachineCase): execute = self.execute def prepare(): - # Create and start registry containers - self.execute(True, f"podman run -d -p 5000:5000 --name registry --stop-timeout 0 {IMG_REGISTRY}") - self.execute(True, f"podman run -d -p 6000:5000 --name registry_alt --stop-timeout 0 {IMG_REGISTRY}") - # Add local insecure registry into registries conf - self.machine.write("/etc/containers/registries.conf", REGISTRIES_CONF) + self.setupRegistry() self.execute(True, "systemctl stop podman.service") # Push busybox image to the local registries self.execute(True,