weldr: adapt tests to modularity

This commit is contained in:
Sanne Raymaekers 2025-03-11 15:10:16 +01:00
parent 52e5fe9627
commit d6fe9d85cf
4 changed files with 41 additions and 18 deletions

View file

@ -47,6 +47,7 @@ func FixtureBase(hostDistroName, hostArchName string) *Fixture {
Version: "0.0.0",
Packages: []blueprint.Package{},
Modules: []blueprint.Package{},
EnabledModules: []blueprint.EnabledModule{},
Groups: []blueprint.Group{},
Customizations: nil,
}
@ -191,6 +192,7 @@ func FixtureFinished(hostDistroName, hostArchName string) *Fixture {
Version: "0.0.0",
Packages: []blueprint.Package{},
Modules: []blueprint.Package{},
EnabledModules: []blueprint.EnabledModule{},
Groups: []blueprint.Group{},
Customizations: nil,
}
@ -326,6 +328,7 @@ func FixtureEmpty(hostDistroName, hostArchName string) *Fixture {
Version: "0.0.0",
Packages: []blueprint.Package{},
Modules: []blueprint.Package{},
EnabledModules: []blueprint.EnabledModule{},
Groups: []blueprint.Group{},
Customizations: nil,
}
@ -386,6 +389,7 @@ func FixtureOldChanges(hostDistroName, hostArchName string) *Fixture {
Version: "0.0.0",
Packages: []blueprint.Package{},
Modules: []blueprint.Package{},
EnabledModules: []blueprint.EnabledModule{},
Groups: []blueprint.Group{},
Customizations: nil,
}
@ -434,6 +438,7 @@ func FixtureJobs(hostDistroName, hostArchName string) *Fixture {
Version: "0.0.0",
Packages: []blueprint.Package{},
Modules: []blueprint.Package{},
EnabledModules: []blueprint.EnabledModule{},
Groups: []blueprint.Group{},
Customizations: nil,
}

View file

@ -95,6 +95,8 @@ func (suite *storeTest) SetupSuite() {
{Name: "test1", Version: "*"}},
Modules: []blueprint.Package{
{Name: "test2", Version: "*"}},
EnabledModules: []blueprint.EnabledModule{
{Name: "name", Stream: "1"}},
Groups: []blueprint.Group{
{Name: "test3"}},
Containers: []blueprint.Container{
@ -114,6 +116,8 @@ func (suite *storeTest) SetupSuite() {
{Name: "test4", Version: "*"}},
Modules: []blueprint.Package{
{Name: "test5", Version: "*"}},
EnabledModules: []blueprint.EnabledModule{
{Name: "name", Stream: "1"}},
Groups: []blueprint.Group{
{Name: "test6"}},
Customizations: &suite.myCustomizations,