Skip to content

Commit

Permalink
image-builder: add integration test for container resolving
Browse files Browse the repository at this point in the history
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)).
  • Loading branch information
mvo5 committed Dec 4, 2024
1 parent f832001 commit d46d430
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/image-builder/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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"`)
}

0 comments on commit d46d430

Please sign in to comment.