distro: delete distro.Manifest type
Delete the distro.Manifest type and its tests. Change all occurrences of distro.Manifest to manifest.OSBuildManifest.
This commit is contained in:
parent
5498764725
commit
c7aecdf31c
17 changed files with 58 additions and 162 deletions
|
|
@ -5,6 +5,7 @@ import (
|
|||
"fmt"
|
||||
|
||||
"github.com/osbuild/osbuild-composer/internal/distro"
|
||||
"github.com/osbuild/osbuild-composer/internal/manifest"
|
||||
"github.com/osbuild/osbuild-composer/internal/osbuild"
|
||||
"github.com/osbuild/osbuild-composer/internal/rpmmd"
|
||||
"github.com/osbuild/osbuild-composer/internal/target"
|
||||
|
|
@ -16,7 +17,7 @@ import (
|
|||
//
|
||||
|
||||
type OSBuildJob struct {
|
||||
Manifest distro.Manifest `json:"manifest,omitempty"`
|
||||
Manifest manifest.OSBuildManifest `json:"manifest,omitempty"`
|
||||
// Index of the ManifestJobByIDResult instance in the job's dynamic arguments slice
|
||||
ManifestDynArgsIdx *int `json:"manifest_dyn_args_idx,omitempty"`
|
||||
Targets []*target.Target `json:"targets,omitempty"`
|
||||
|
|
@ -243,8 +244,8 @@ type DepsolveJobResult struct {
|
|||
type ManifestJobByID struct{}
|
||||
|
||||
type ManifestJobByIDResult struct {
|
||||
Manifest distro.Manifest `json:"data,omitempty"`
|
||||
Error string `json:"error"`
|
||||
Manifest manifest.OSBuildManifest `json:"data,omitempty"`
|
||||
Error string `json:"error"`
|
||||
JobResult
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ import (
|
|||
"github.com/osbuild/osbuild-composer/internal/distro"
|
||||
"github.com/osbuild/osbuild-composer/internal/distro/test_distro"
|
||||
"github.com/osbuild/osbuild-composer/internal/jobqueue/fsjobqueue"
|
||||
"github.com/osbuild/osbuild-composer/internal/manifest"
|
||||
"github.com/osbuild/osbuild-composer/internal/osbuild"
|
||||
"github.com/osbuild/osbuild-composer/internal/platform"
|
||||
"github.com/osbuild/osbuild-composer/internal/rpmmd"
|
||||
|
|
@ -409,7 +410,7 @@ func TestRequestJobById(t *testing.T) {
|
|||
func TestMixedOSBuildJob(t *testing.T) {
|
||||
require := require.New(t)
|
||||
|
||||
emptyManifestV2 := distro.Manifest(`{"version":"2","pipelines":{}}`)
|
||||
emptyManifestV2 := manifest.OSBuildManifest(`{"version":"2","pipelines":{}}`)
|
||||
server := newTestServer(t, t.TempDir(), time.Millisecond*10, "/", false)
|
||||
fbPipelines := &worker.PipelineNames{Build: distro.BuildPipelinesFallback(), Payload: distro.PayloadPipelinesFallback()}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue