internal/weldr: specify architecture of compose

This is useful in environments with multi-arch remote workers.
Defaults to the host architecture.
This commit is contained in:
Sanne Raymaekers 2023-10-10 12:53:18 +02:00
parent e24772dc57
commit c6aa7d88d2
10 changed files with 188 additions and 73 deletions

View file

@ -79,6 +79,7 @@ func FixtureBase() *Store {
}}
s.blueprints[bName] = b
s.composes = map[uuid.UUID]Compose{
uuid.MustParse("30000000-0000-0000-0000-000000000000"): {
Blueprint: &b,
@ -309,6 +310,18 @@ func FixtureEmpty() *Store {
b3.Distro = "fedora-1"
s.blueprints[b3.Name] = b3
// Bad arch blueprint
b4 := b
b4.Name = "test-badarch"
b4.Arch = "badarch"
s.blueprints[b4.Name] = b4
// Cross arch blueprint
b5 := b
b5.Name = "test-crossarch"
b5.Arch = test_distro.TestArch2Name
s.blueprints[b5.Name] = b5
return s
}