osbuild: simplify copy stage test

This commit is contained in:
Achilleas Koutsou 2022-09-30 17:05:35 +02:00 committed by Tomáš Hozza
parent 547f7a66b3
commit 1324f7fb8c

View file

@ -29,14 +29,11 @@ func TestNewCopyStage(t *testing.T) {
*NewBtrfsMount("root", "root", "/"),
}
treeInput := TreeInput{}
treeInput.Type = "org.osbuild.tree"
treeInput.Origin = "org.osbuild.pipeline"
treeInput.References = []string{"name:input-pipeline"}
treeInput := NewTreeInput("name:input-pipeline")
expectedStage := &Stage{
Type: "org.osbuild.copy",
Options: &CopyStageOptions{paths},
Inputs: &PipelineTreeInputs{"tree-input": treeInput},
Inputs: &PipelineTreeInputs{"tree-input": *treeInput},
Devices: devices,
Mounts: mounts,
}