Port osbuild/images v0.33.0 with dot-notation to composer
Update the osbuild/images to the version which introduces "dot notation" for distro release versions. - Replace all uses of distroregistry by distrofactory. - Delete local version of reporegistry and use the one from the osbuild/images. - Weldr: unify `createWeldrAPI()` and `createWeldrAPI2()` into a single `createTestWeldrAPI()` function`. - store/fixture: rework fixtures to allow overriding the host distro name and host architecture name. A cleanup function to restore the host distro and arch names is always part of the fixture struct. - Delete `distro_mock` package, since it is no longer used. - Bump the required version of osbuild to 98, because the OSCAP customization is using the 'compress_results' stage option, which is not available in older versions of osbuild. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
f6ff8c40dd
commit
625b1578fa
1166 changed files with 154457 additions and 5508 deletions
|
|
@ -48,7 +48,7 @@ func TestKojiCompose(t *testing.T) {
|
|||
},
|
||||
buildResult: worker.OSBuildJobResult{
|
||||
Arch: test_distro.TestArchName,
|
||||
HostOS: test_distro.TestDistroName,
|
||||
HostOS: test_distro.TestDistro1Name,
|
||||
TargetResults: []*target.TargetResult{target.NewKojiTargetResult(&target.KojiTargetResultOptions{
|
||||
Image: &target.KojiOutputInfo{
|
||||
Filename: "test.img",
|
||||
|
|
@ -92,7 +92,7 @@ func TestKojiCompose(t *testing.T) {
|
|||
},
|
||||
buildResult: worker.OSBuildJobResult{
|
||||
Arch: test_distro.TestArchName,
|
||||
HostOS: test_distro.TestDistroName,
|
||||
HostOS: test_distro.TestDistro1Name,
|
||||
TargetResults: []*target.TargetResult{target.NewKojiTargetResult(&target.KojiTargetResultOptions{
|
||||
Image: &target.KojiOutputInfo{
|
||||
Filename: "test.img",
|
||||
|
|
@ -136,7 +136,7 @@ func TestKojiCompose(t *testing.T) {
|
|||
},
|
||||
buildResult: worker.OSBuildJobResult{
|
||||
Arch: test_distro.TestArchName,
|
||||
HostOS: test_distro.TestDistroName,
|
||||
HostOS: test_distro.TestDistro1Name,
|
||||
TargetResults: []*target.TargetResult{target.NewKojiTargetResult(&target.KojiTargetResultOptions{
|
||||
Image: &target.KojiOutputInfo{
|
||||
Filename: "test.img",
|
||||
|
|
@ -179,7 +179,7 @@ func TestKojiCompose(t *testing.T) {
|
|||
},
|
||||
buildResult: worker.OSBuildJobResult{
|
||||
Arch: test_distro.TestArchName,
|
||||
HostOS: test_distro.TestDistroName,
|
||||
HostOS: test_distro.TestDistro1Name,
|
||||
TargetResults: []*target.TargetResult{target.NewKojiTargetResult(&target.KojiTargetResultOptions{
|
||||
Image: &target.KojiOutputInfo{
|
||||
Filename: "test.img",
|
||||
|
|
@ -224,7 +224,7 @@ func TestKojiCompose(t *testing.T) {
|
|||
},
|
||||
buildResult: worker.OSBuildJobResult{
|
||||
Arch: test_distro.TestArchName,
|
||||
HostOS: test_distro.TestDistroName,
|
||||
HostOS: test_distro.TestDistro1Name,
|
||||
TargetResults: []*target.TargetResult{target.NewKojiTargetResult(&target.KojiTargetResultOptions{
|
||||
Image: &target.KojiOutputInfo{
|
||||
Filename: "test.img",
|
||||
|
|
@ -280,7 +280,7 @@ func TestKojiCompose(t *testing.T) {
|
|||
},
|
||||
buildResult: worker.OSBuildJobResult{
|
||||
Arch: test_distro.TestArchName,
|
||||
HostOS: test_distro.TestDistroName,
|
||||
HostOS: test_distro.TestDistro1Name,
|
||||
TargetResults: []*target.TargetResult{target.NewKojiTargetResult(&target.KojiTargetResultOptions{
|
||||
Image: &target.KojiOutputInfo{
|
||||
Filename: "test.img",
|
||||
|
|
@ -328,7 +328,7 @@ func TestKojiCompose(t *testing.T) {
|
|||
},
|
||||
buildResult: worker.OSBuildJobResult{
|
||||
Arch: test_distro.TestArchName,
|
||||
HostOS: test_distro.TestDistroName,
|
||||
HostOS: test_distro.TestDistro1Name,
|
||||
TargetResults: []*target.TargetResult{target.NewKojiTargetResult(&target.KojiTargetResultOptions{
|
||||
Image: &target.KojiOutputInfo{
|
||||
Filename: "test.img",
|
||||
|
|
@ -407,7 +407,7 @@ func TestKojiCompose(t *testing.T) {
|
|||
"release":"%[6]s",
|
||||
"task_id": 42
|
||||
}
|
||||
}`, test_distro.TestDistroName, test_distro.TestArch3Name, string(v2.ImageTypesGuestImage), name, version, release),
|
||||
}`, test_distro.TestDistro1Name, test_distro.TestArch3Name, string(v2.ImageTypesGuestImage), name, version, release),
|
||||
c.composeReplyCode, c.composeReply, "id", "operation_id")
|
||||
|
||||
// determine the compose ID from the reply
|
||||
|
|
@ -477,7 +477,7 @@ func TestKojiCompose(t *testing.T) {
|
|||
"success": true
|
||||
}
|
||||
}
|
||||
}`, test_distro.TestArch3Name, test_distro.TestDistroName)
|
||||
}`, test_distro.TestArch3Name, test_distro.TestDistro1Name)
|
||||
}
|
||||
|
||||
test.TestRoute(t, workerHandler, false, "PATCH", fmt.Sprintf("/api/worker/v1/jobs/%v", token), buildJobResult, http.StatusOK,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue