Skip to content

Commit

Permalink
test: Factorize registry setup in testDownloadImage()
Browse files Browse the repository at this point in the history
Use our setupRegistry() helper.
  • Loading branch information
martinpitt committed Jan 7, 2025
1 parent ca80889 commit ecf6faa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ecf6faa

Please sign in to comment.