test: Add skopeo tests

There is a source test that installs a pre-build, embeded image file
and ensure all the right files are installed. This uses the vfs driver
because then it works everywhere, including the CI (which doesn't do
overlayfs).

Then the is a source test that downloads a minimal image from
a faked registry on localhost.

For the registy API to work the "/v2" entry-point in the webserver has
to be at the root, so there is a symlink in test/data:

  v2 -> sources/org.osbuild.skopeo/data/v2

But otherwise the data is localized to sources/org.osbuild.skopeo.
This commit is contained in:
Alexander Larsson 2022-02-03 10:46:04 +01:00 committed by Christian Kellner
parent 693e44e412
commit 13c0c1e59e
15 changed files with 1592 additions and 0 deletions

1
test/data/v2 Symbolic link
View file

@ -0,0 +1 @@
sources/org.osbuild.skopeo/data/v2