image-builder: add integration test for container resolving

This commit adds an integration test for the container resolving
when generating a manifest. This is sadly quite indirect right now
because `manifestgen` needs some more support from `images` and
the `distro_test` code there (that will hopefully come soon(ish)).
This commit is contained in:
Michael Vogt 2024-12-02 16:32:19 +01:00 committed by Simon de Vlieger
parent 05ef9502e4
commit 0d06eedd26

View file

@ -134,6 +134,11 @@ func hasDepsolveDnf() bool {
}
var testBlueprint = `{
"containers": [
{
"source": "registry.gitlab.com/redhat/services/products/image-builder/ci/osbuild-composer/fedora-minimal"
}
],
"customizations": {
"user": [
{
@ -183,4 +188,5 @@ func TestManifestIntegrationSmoke(t *testing.T) {
// XXX: provide helpers in manifesttest to extract this in a nicer way
assert.Contains(t, fakeStdout.String(), `{"type":"org.osbuild.users","options":{"users":{"alice":{}}}}`)
assert.Contains(t, fakeStdout.String(), `"image":{"name":"registry.gitlab.com/redhat/services/products/image-builder/ci/osbuild-composer/fedora-minimal"`)
}