Commit Graph

12 Commits

Author SHA1 Message Date
Nalin Dahyabhai b436176d4a Add --transient-store global option
Add another global storage configuration option.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-08-18 15:11:35 -04:00
Nalin Dahyabhai fc748f85a4 Support "--imagestore" global flags
Add the global --imagestore flag to the buildah command and to the copy
and imgtype test helpers.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-08-13 21:25:19 -04:00
Giuseppe Scrivano c174e91624
vendor: update c/{common,image,storage}
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-11-21 14:29:05 +01:00
Daniel J Walsh 8d5d763213
Fix stutters
Podman adds an Error: to every error message. So starting an error
message with "error" ends up being reported to the user as

Error: error ...

This patch removes the stutter.

Also ioutil.ReadFile errors report the Path, so wrapping the err message
with the path causes a stutter.

Signed-off-by: Daniel J Walsh dwalsh@redhat.com

[NO NEW TESTS NEEDED]

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2022-09-19 07:11:44 -04:00
Nalin Dahyabhai bef61d791d tests: don't try to wrap `nil` errors
In a couple of places, we'd try to wrap an error at points after we'd
have returned if they weren't `nil`.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2022-07-26 11:05:01 -04:00
Sascha Grunert ce384684c0
Switch to golang native error wrapping
We now use the golang error wrapping format specifier `%w` instead of
the deprecated github.com/pkg/errors package.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2022-07-07 11:41:47 +02:00
Nalin Dahyabhai 7dbc5ce82f test helpers: default to being rootless-aware
Make tests/copy/copy.go and tests/imgtype/imgtype.go aware of rootless
defaults, and have them re-exec themselves in user namespaces if they're
run in such an environment.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2022-05-16 13:25:22 -04:00
Paul Holzinger 00fe346f6a
tests/copy: read correct containers.conf
`DefaultConfig()` from c/common/pkg/config should not be used here.
This only contains the built in defaults but not the actual values from
the files on disk. The correct way is to call `Default()` and since this
already handles the `CONTAINERS_CONF` env var we do not need to handle
it manually.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2022-03-09 15:04:21 +01:00
Nalin Dahyabhai 14d58918fb tests/copy: initialize the network, too
Force libnetwork to record the network configuration so that its
auto-detection logic doesn't get confused by the presence of the image
that we're writing to storage, after it's been written.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2022-03-07 16:27:12 -05:00
Nalin Dahyabhai f0ddf5eacf tests/copy/copy: wire up compression options
Add the --dest-compress, --dest-decompress, --dest-compress-format,
and --dest-compress-level options to the "copy" test helper.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-09-20 14:49:01 -04:00
Nalin Dahyabhai 239fc6f112 copy: add --max-parallel-downloads to tune that copy option
Add a --max-parallel-downloads flag to allow tuning down from the
default of six blobs at a time, and tune it down to one at a time when
we invoke the helper.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-08-30 11:04:14 -04:00
Nalin Dahyabhai d95c6be83b Add and use a "copy" helper instead of podman load/save
Instead of using podman to cache images during integration tests, use a
custom helper.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-05-26 09:49:28 -04:00