osbuild-composer: add iot-bootable-container to weldr deny list
We only want to build this image type in Fedora Koji.
This commit is contained in:
parent
bbbb3278f8
commit
3e31ebfbb1
2 changed files with 14 additions and 2 deletions
|
|
@ -111,6 +111,11 @@ func GetDefaultConfig() *ComposerConfigFile {
|
|||
"gce-rhui",
|
||||
},
|
||||
},
|
||||
"fedora-*": {
|
||||
ImageTypeDenyList: []string{
|
||||
"iot-bootable-container",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
DistroAliases: map[string]string{
|
||||
|
|
|
|||
|
|
@ -57,6 +57,11 @@ func TestDefaultConfig(t *testing.T) {
|
|||
"gce-rhui",
|
||||
},
|
||||
},
|
||||
"fedora-*": {
|
||||
[]string{
|
||||
"iot-bootable-container",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
@ -113,9 +118,11 @@ func TestWeldrDistrosImageTypeDenyList(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
require.NotNil(t, config)
|
||||
|
||||
// rhel config is overridden, but fedora is unaffected
|
||||
expectedWeldrDistrosImageTypeDenyList := map[string][]string{
|
||||
"*": {"qcow2", "vmdk"},
|
||||
"rhel-84": {"qcow2"},
|
||||
"*": {"qcow2", "vmdk"},
|
||||
"fedora-*": {"iot-bootable-container"},
|
||||
"rhel-84": {"qcow2"},
|
||||
}
|
||||
|
||||
require.Equal(t, expectedWeldrDistrosImageTypeDenyList, config.weldrDistrosImageTypeDenyList())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue