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:
parent
05ef9502e4
commit
0d06eedd26
1 changed files with 6 additions and 0 deletions
|
|
@ -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"`)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue