Repository: osbuild/osbuild-composer
Pull request #38 (2019-10-21 00:19:41)

Add unit tests for blueprint output types
See commits for details.


Patch:
diff --git a/internal/blueprint/pipelines/ami_empty_blueprint.json b/internal/blueprint/pipelines/ami_empty_blueprint.json
new file mode 100644
index 000000000..728eac907
--- /dev/null
+++ b/internal/blueprint/pipelines/ami_empty_blueprint.json
@@ -0,0 +1,105 @@
+{
+  "build": {
+    "stages": [
+      {
+        "name": "org.osbuild.dnf",
+        "options": {
+          "repos": [
+            {
+              "metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch",
+              "gpgkey": "F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9",
+              "checksum": "sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
+            }
+          ],
+          "packages": [
+            "dnf",
+            "e2fsprogs",
+            "policycoreutils",
+            "qemu-img",
+            "systemd",
+            "grub2-pc",
+            "tar"
+          ],
+          "releasever": "30",
+          "basearch": "x86_64"
+        }
+      }
+    ]
+  },
+  "stages": [
+    {
+      "name": "org.osbuild.dnf",
+      "options": {
+        "repos": [
+          {
+            "metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch",
+            "gpgkey": "F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9",
+            "checksum": "sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
+          }
+        ],
+        "packages": [
+          "@Core",
+          "chrony",
+          "kernel",
+          "selinux-policy-targeted",
+          "grub2-pc",
+          "spice-vdagent",
+          "qemu-guest-agent",
+          "xen-libs",
+          "langpacks-en"
+        ],
+        "releasever": "30",
+        "basearch": "x86_64"
+      }
+    },
+    {
+      "name": "org.osbuild.fix-bls",
+      "options": {}
+    },
+    {
+      "name": "org.osbuild.locale",
+      "options": {
+        "language": "en_US"
+      }
+    },
+    {
+      "name": "org.osbuild.fstab",
+      "options": {
+        "filesystems": [
+          {
+            "uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+            "vfs_type": "extf4",
+            "path": "/",
+            "options": "defaults",
+            "freq": 1,
+            "passno": 1
+          }
+        ]
+      }
+    },
+    {
+      "name": "org.osbuild.grub2",
+      "options": {
+        "root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+        "boot_fs_uuid": "00000000-0000-0000-0000-000000000000",
+        "kernel_opts": "ro biosdevname=0 net.ifnames=0"
+      }
+    },
+    {
+      "name": "org.osbuild.selinux",
+      "options": {
+        "file_contexts": "etc/selinux/targeted/contexts/files/file_contexts"
+      }
+    }
+  ],
+  "assembler": {
+    "name": "org.osbuild.qemu",
+    "options": {
+      "format": "qcow2",
+      "filename": "image.ami",
+      "ptuuid": "0x14fc63d2",
+      "root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+      "size": 3221225472
+    }
+  }
+}
diff --git a/internal/blueprint/pipelines/disk_empty_blueprint.json b/internal/blueprint/pipelines/disk_empty_blueprint.json
new file mode 100644
index 000000000..ee71bbecf
--- /dev/null
+++ b/internal/blueprint/pipelines/disk_empty_blueprint.json
@@ -0,0 +1,105 @@
+{
+  "build": {
+    "stages": [
+      {
+        "name": "org.osbuild.dnf",
+        "options": {
+          "repos": [
+            {
+              "metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch",
+              "gpgkey": "F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9",
+              "checksum": "sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
+            }
+          ],
+          "packages": [
+            "dnf",
+            "e2fsprogs",
+            "policycoreutils",
+            "qemu-img",
+            "systemd",
+            "grub2-pc",
+            "tar"
+          ],
+          "releasever": "30",
+          "basearch": "x86_64"
+        }
+      }
+    ]
+  },
+  "stages": [
+    {
+      "name": "org.osbuild.dnf",
+      "options": {
+        "repos": [
+          {
+            "metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch",
+            "gpgkey": "F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9",
+            "checksum": "sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
+          }
+        ],
+        "packages": [
+          "@Core",
+          "chrony",
+          "kernel",
+          "selinux-policy-targeted",
+          "grub2-pc",
+          "spice-vdagent",
+          "qemu-guest-agent",
+          "xen-libs",
+          "langpacks-en"
+        ],
+        "releasever": "30",
+        "basearch": "x86_64"
+      }
+    },
+    {
+      "name": "org.osbuild.fix-bls",
+      "options": {}
+    },
+    {
+      "name": "org.osbuild.locale",
+      "options": {
+        "language": "en_US"
+      }
+    },
+    {
+      "name": "org.osbuild.fstab",
+      "options": {
+        "filesystems": [
+          {
+            "uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+            "vfs_type": "extf4",
+            "path": "/",
+            "options": "defaults",
+            "freq": 1,
+            "passno": 1
+          }
+        ]
+      }
+    },
+    {
+      "name": "org.osbuild.grub2",
+      "options": {
+        "root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+        "boot_fs_uuid": "00000000-0000-0000-0000-000000000000",
+        "kernel_opts": "ro biosdevname=0 net.ifnames=0"
+      }
+    },
+    {
+      "name": "org.osbuild.selinux",
+      "options": {
+        "file_contexts": "etc/selinux/targeted/contexts/files/file_contexts"
+      }
+    }
+  ],
+  "assembler": {
+    "name": "org.osbuild.qemu",
+    "options": {
+      "format": "raw",
+      "filename": "image.img",
+      "ptuuid": "0x14fc63d2",
+      "root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+      "size": 3221225472
+    }
+  }
+}
diff --git a/internal/blueprint/pipelines/liveiso_empty_blueprint.json b/internal/blueprint/pipelines/liveiso_empty_blueprint.json
new file mode 100644
index 000000000..318292ab6
--- /dev/null
+++ b/internal/blueprint/pipelines/liveiso_empty_blueprint.json
@@ -0,0 +1,82 @@
+{
+  "build": {
+    "stages": [
+      {
+        "name": "org.osbuild.dnf",
+        "options": {
+          "repos": [
+            {
+              "metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch",
+              "gpgkey": "F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9",
+              "checksum": "sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
+            }
+          ],
+          "packages": [
+            "dnf",
+            "e2fsprogs",
+            "policycoreutils",
+            "qemu-img",
+            "systemd",
+            "grub2-pc",
+            "tar"
+          ],
+          "releasever": "30",
+          "basearch": "x86_64"
+        }
+      }
+    ]
+  },
+  "stages": [
+    {
+      "name": "org.osbuild.dnf",
+      "options": {
+        "repos": [
+          {
+            "metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch",
+            "gpgkey": "F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9",
+            "checksum": "sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
+          }
+        ],
+        "packages": [
+          "@Core",
+          "chrony",
+          "kernel",
+          "selinux-policy-targeted",
+          "grub2-pc",
+          "spice-vdagent",
+          "qemu-guest-agent",
+          "xen-libs",
+          "langpacks-en"
+        ],
+        "releasever": "30",
+        "basearch": "x86_64"
+      }
+    },
+    {
+      "name": "org.osbuild.fix-bls",
+      "options": {}
+    },
+    {
+      "name": "org.osbuild.locale",
+      "options": {
+        "language": "en_US"
+      }
+    },
+    {
+      "name": "org.osbuild.selinux",
+      "options": {
+        "file_contexts": "etc/selinux/targeted/contexts/files/file_contexts"
+      }
+    }
+  ],
+  "assembler": {
+    "name": "org.osbuild.qemu",
+    "options": {
+      "format": "raw",
+      "filename": "image.iso",
+      "ptuuid": "0x14fc63d2",
+      "root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+      "size": 3221225472
+    }
+  }
+}
diff --git a/internal/blueprint/pipelines/openstack_empty_blueprint.json b/internal/blueprint/pipelines/openstack_empty_blueprint.json
new file mode 100644
index 000000000..a1768a580
--- /dev/null
+++ b/internal/blueprint/pipelines/openstack_empty_blueprint.json
@@ -0,0 +1,105 @@
+{
+  "build": {
+    "stages": [
+      {
+        "name": "org.osbuild.dnf",
+        "options": {
+          "repos": [
+            {
+              "metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch",
+              "gpgkey": "F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9",
+              "checksum": "sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
+            }
+          ],
+          "packages": [
+            "dnf",
+            "e2fsprogs",
+            "policycoreutils",
+            "qemu-img",
+            "systemd",
+            "grub2-pc",
+            "tar"
+          ],
+          "releasever": "30",
+          "basearch": "x86_64"
+        }
+      }
+    ]
+  },
+  "stages": [
+    {
+      "name": "org.osbuild.dnf",
+      "options": {
+        "repos": [
+          {
+            "metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch",
+            "gpgkey": "F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9",
+            "checksum": "sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
+          }
+        ],
+        "packages": [
+          "@Core",
+          "chrony",
+          "kernel",
+          "selinux-policy-targeted",
+          "grub2-pc",
+          "spice-vdagent",
+          "qemu-guest-agent",
+          "xen-libs",
+          "langpacks-en"
+        ],
+        "releasever": "30",
+        "basearch": "x86_64"
+      }
+    },
+    {
+      "name": "org.osbuild.fix-bls",
+      "options": {}
+    },
+    {
+      "name": "org.osbuild.locale",
+      "options": {
+        "language": "en_US"
+      }
+    },
+    {
+      "name": "org.osbuild.fstab",
+      "options": {
+        "filesystems": [
+          {
+            "uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+            "vfs_type": "extf4",
+            "path": "/",
+            "options": "defaults",
+            "freq": 1,
+            "passno": 1
+          }
+        ]
+      }
+    },
+    {
+      "name": "org.osbuild.grub2",
+      "options": {
+        "root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+        "boot_fs_uuid": "00000000-0000-0000-0000-000000000000",
+        "kernel_opts": "ro biosdevname=0 net.ifnames=0"
+      }
+    },
+    {
+      "name": "org.osbuild.selinux",
+      "options": {
+        "file_contexts": "etc/selinux/targeted/contexts/files/file_contexts"
+      }
+    }
+  ],
+  "assembler": {
+    "name": "org.osbuild.qemu",
+    "options": {
+      "format": "qcow2",
+      "filename": "image.qcow2",
+      "ptuuid": "0x14fc63d2",
+      "root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+      "size": 3221225472
+    }
+  }
+}
diff --git a/internal/blueprint/pipelines/qcow2_empty_blueprint.json b/internal/blueprint/pipelines/qcow2_empty_blueprint.json
new file mode 100644
index 000000000..a1768a580
--- /dev/null
+++ b/internal/blueprint/pipelines/qcow2_empty_blueprint.json
@@ -0,0 +1,105 @@
+{
+  "build": {
+    "stages": [
+      {
+        "name": "org.osbuild.dnf",
+        "options": {
+          "repos": [
+            {
+              "metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch",
+              "gpgkey": "F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9",
+              "checksum": "sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
+            }
+          ],
+          "packages": [
+            "dnf",
+            "e2fsprogs",
+            "policycoreutils",
+            "qemu-img",
+            "systemd",
+            "grub2-pc",
+            "tar"
+          ],
+          "releasever": "30",
+          "basearch": "x86_64"
+        }
+      }
+    ]
+  },
+  "stages": [
+    {
+      "name": "org.osbuild.dnf",
+      "options": {
+        "repos": [
+          {
+            "metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch",
+            "gpgkey": "F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9",
+            "checksum": "sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
+          }
+        ],
+        "packages": [
+          "@Core",
+          "chrony",
+          "kernel",
+          "selinux-policy-targeted",
+          "grub2-pc",
+          "spice-vdagent",
+          "qemu-guest-agent",
+          "xen-libs",
+          "langpacks-en"
+        ],
+        "releasever": "30",
+        "basearch": "x86_64"
+      }
+    },
+    {
+      "name": "org.osbuild.fix-bls",
+      "options": {}
+    },
+    {
+      "name": "org.osbuild.locale",
+      "options": {
+        "language": "en_US"
+      }
+    },
+    {
+      "name": "org.osbuild.fstab",
+      "options": {
+        "filesystems": [
+          {
+            "uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+            "vfs_type": "extf4",
+            "path": "/",
+            "options": "defaults",
+            "freq": 1,
+            "passno": 1
+          }
+        ]
+      }
+    },
+    {
+      "name": "org.osbuild.grub2",
+      "options": {
+        "root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+        "boot_fs_uuid": "00000000-0000-0000-0000-000000000000",
+        "kernel_opts": "ro biosdevname=0 net.ifnames=0"
+      }
+    },
+    {
+      "name": "org.osbuild.selinux",
+      "options": {
+        "file_contexts": "etc/selinux/targeted/contexts/files/file_contexts"
+      }
+    }
+  ],
+  "assembler": {
+    "name": "org.osbuild.qemu",
+    "options": {
+      "format": "qcow2",
+      "filename": "image.qcow2",
+      "ptuuid": "0x14fc63d2",
+      "root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+      "size": 3221225472
+    }
+  }
+}
diff --git a/internal/blueprint/pipelines/tar_empty_blueprint.json b/internal/blueprint/pipelines/tar_empty_blueprint.json
new file mode 100644
index 000000000..197df4969
--- /dev/null
+++ b/internal/blueprint/pipelines/tar_empty_blueprint.json
@@ -0,0 +1,78 @@
+{
+  "build": {
+    "stages": [
+      {
+        "name": "org.osbuild.dnf",
+        "options": {
+          "repos": [
+            {
+              "metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch",
+              "gpgkey": "F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9",
+              "checksum": "sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
+            }
+          ],
+          "packages": [
+            "dnf",
+            "e2fsprogs",
+            "policycoreutils",
+            "qemu-img",
+            "systemd",
+            "grub2-pc",
+            "tar"
+          ],
+          "releasever": "30",
+          "basearch": "x86_64"
+        }
+      }
+    ]
+  },
+  "stages": [
+    {
+      "name": "org.osbuild.dnf",
+      "options": {
+        "repos": [
+          {
+            "metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch",
+            "gpgkey": "F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9",
+            "checksum": "sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
+          }
+        ],
+        "packages": [
+          "@Core",
+          "chrony",
+          "kernel",
+          "selinux-policy-targeted",
+          "grub2-pc",
+          "spice-vdagent",
+          "qemu-guest-agent",
+          "xen-libs",
+          "langpacks-en"
+        ],
+        "releasever": "30",
+        "basearch": "x86_64"
+      }
+    },
+    {
+      "name": "org.osbuild.fix-bls",
+      "options": {}
+    },
+    {
+      "name": "org.osbuild.locale",
+      "options": {
+        "language": "en_US"
+      }
+    },
+    {
+      "name": "org.osbuild.selinux",
+      "options": {
+        "file_contexts": "etc/selinux/targeted/contexts/files/file_contexts"
+      }
+    }
+  ],
+  "assembler": {
+    "name": "org.osbuild.tar",
+    "options": {
+      "filename": "image.tar"
+    }
+  }
+}
diff --git a/internal/blueprint/pipelines/vhd_empty_blueprint.json b/internal/blueprint/pipelines/vhd_empty_blueprint.json
new file mode 100644
index 000000000..42c1161db
--- /dev/null
+++ b/internal/blueprint/pipelines/vhd_empty_blueprint.json
@@ -0,0 +1,105 @@
+{
+  "build": {
+    "stages": [
+      {
+        "name": "org.osbuild.dnf",
+        "options": {
+          "repos": [
+            {
+              "metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch",
+              "gpgkey": "F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9",
+              "checksum": "sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
+            }
+          ],
+          "packages": [
+            "dnf",
+            "e2fsprogs",
+            "policycoreutils",
+            "qemu-img",
+            "systemd",
+            "grub2-pc",
+            "tar"
+          ],
+          "releasever": "30",
+          "basearch": "x86_64"
+        }
+      }
+    ]
+  },
+  "stages": [
+    {
+      "name": "org.osbuild.dnf",
+      "options": {
+        "repos": [
+          {
+            "metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch",
+            "gpgkey": "F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9",
+            "checksum": "sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
+          }
+        ],
+        "packages": [
+          "@Core",
+          "chrony",
+          "kernel",
+          "selinux-policy-targeted",
+          "grub2-pc",
+          "spice-vdagent",
+          "qemu-guest-agent",
+          "xen-libs",
+          "langpacks-en"
+        ],
+        "releasever": "30",
+        "basearch": "x86_64"
+      }
+    },
+    {
+      "name": "org.osbuild.fix-bls",
+      "options": {}
+    },
+    {
+      "name": "org.osbuild.locale",
+      "options": {
+        "language": "en_US"
+      }
+    },
+    {
+      "name": "org.osbuild.fstab",
+      "options": {
+        "filesystems": [
+          {
+            "uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+            "vfs_type": "extf4",
+            "path": "/",
+            "options": "defaults",
+            "freq": 1,
+            "passno": 1
+          }
+        ]
+      }
+    },
+    {
+      "name": "org.osbuild.grub2",
+      "options": {
+        "root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+        "boot_fs_uuid": "00000000-0000-0000-0000-000000000000",
+        "kernel_opts": "ro biosdevname=0 net.ifnames=0"
+      }
+    },
+    {
+      "name": "org.osbuild.selinux",
+      "options": {
+        "file_contexts": "etc/selinux/targeted/contexts/files/file_contexts"
+      }
+    }
+  ],
+  "assembler": {
+    "name": "org.osbuild.qemu",
+    "options": {
+      "format": "qcow2",
+      "filename": "image.vhd",
+      "ptuuid": "0x14fc63d2",
+      "root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+      "size": 3221225472
+    }
+  }
+}
diff --git a/internal/blueprint/pipelines/vmdk_empty_blueprint.json b/internal/blueprint/pipelines/vmdk_empty_blueprint.json
new file mode 100644
index 000000000..f3d55d30b
--- /dev/null
+++ b/internal/blueprint/pipelines/vmdk_empty_blueprint.json
@@ -0,0 +1,105 @@
+{
+  "build": {
+    "stages": [
+      {
+        "name": "org.osbuild.dnf",
+        "options": {
+          "repos": [
+            {
+              "metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch",
+              "gpgkey": "F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9",
+              "checksum": "sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
+            }
+          ],
+          "packages": [
+            "dnf",
+            "e2fsprogs",
+            "policycoreutils",
+            "qemu-img",
+            "systemd",
+            "grub2-pc",
+            "tar"
+          ],
+          "releasever": "30",
+          "basearch": "x86_64"
+        }
+      }
+    ]
+  },
+  "stages": [
+    {
+      "name": "org.osbuild.dnf",
+      "options": {
+        "repos": [
+          {
+            "metalink": "https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch",
+            "gpgkey": "F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9",
+            "checksum": "sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"
+          }
+        ],
+        "packages": [
+          "@Core",
+          "chrony",
+          "kernel",
+          "selinux-policy-targeted",
+          "grub2-pc",
+          "spice-vdagent",
+          "qemu-guest-agent",
+          "xen-libs",
+          "langpacks-en"
+        ],
+        "releasever": "30",
+        "basearch": "x86_64"
+      }
+    },
+    {
+      "name": "org.osbuild.fix-bls",
+      "options": {}
+    },
+    {
+      "name": "org.osbuild.locale",
+      "options": {
+        "language": "en_US"
+      }
+    },
+    {
+      "name": "org.osbuild.fstab",
+      "options": {
+        "filesystems": [
+          {
+            "uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+            "vfs_type": "extf4",
+            "path": "/",
+            "options": "defaults",
+            "freq": 1,
+            "passno": 1
+          }
+        ]
+      }
+    },
+    {
+      "name": "org.osbuild.grub2",
+      "options": {
+        "root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+        "boot_fs_uuid": "00000000-0000-0000-0000-000000000000",
+        "kernel_opts": "ro biosdevname=0 net.ifnames=0"
+      }
+    },
+    {
+      "name": "org.osbuild.selinux",
+      "options": {
+        "file_contexts": "etc/selinux/targeted/contexts/files/file_contexts"
+      }
+    }
+  ],
+  "assembler": {
+    "name": "org.osbuild.qemu",
+    "options": {
+      "format": "vmdk",
+      "filename": "image.vmdk",
+      "ptuuid": "0x14fc63d2",
+      "root_fs_uuid": "76a22bf4-f153-4541-b6c7-0332c0dfaeac",
+      "size": 3221225472
+    }
+  }
+}


Test patch:
diff --git a/internal/blueprint/qcow2_output_test.go b/internal/blueprint/qcow2_output_test.go
index 4151f50a3..586799b5e 100644
--- a/internal/blueprint/qcow2_output_test.go
+++ b/internal/blueprint/qcow2_output_test.go
@@ -2,6 +2,7 @@ package blueprint
 
 import (
 	"encoding/json"
+	"io/ioutil"
 	"reflect"
 	"testing"
 
@@ -12,26 +13,26 @@ func Test_qcow2Output_translate(t *testing.T) {
 	type args struct {
 		b *Blueprint
 	}
-	var emptyPipeline pipeline.Pipeline
-	json.Unmarshal([]byte(`{"build":{"stages":[{"name":"org.osbuild.dnf","options":{"repos":[{"metalink":"https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever\u0026arch=$basearch","gpgkey":"F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9","checksum":"sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"}],"packages":["dnf","e2fsprogs","policycoreutils","qemu-img","systemd","grub2-pc","tar"],"releasever":"30","basearch":"x86_64"}}]},"stages":[{"name":"org.osbuild.dnf","options":{"repos":[{"metalink":"https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever\u0026arch=$basearch","gpgkey":"F1D8 EC98 F241 AAF2 0DF6  9420 EF3C 111F CFC6 59B9","checksum":"sha256:9f596e18f585bee30ac41c11fb11a83ed6b11d5b341c1cb56ca4015d7717cb97"}],"packages":["@Core","chrony","kernel","selinux-policy-targeted","grub2-pc","spice-vdagent","qemu-guest-agent","xen-libs","langpacks-en"],"releasever":"30","basearch":"x86_64"}},{"name":"org.osbuild.fix-bls","options":{}},{"name":"org.osbuild.locale","options":{"language":"en_US"}},{"name":"org.osbuild.fstab","options":{"filesystems":[{"uuid":"76a22bf4-f153-4541-b6c7-0332c0dfaeac","vfs_type":"extf4","path":"/","options":"defaults","freq":1,"passno":1}]}},{"name":"org.osbuild.grub2","options":{"root_fs_uuid":"76a22bf4-f153-4541-b6c7-0332c0dfaeac","boot_fs_uuid":"00000000-0000-0000-0000-000000000000","kernel_opts":"ro biosdevname=0 net.ifnames=0"}},{"name":"org.osbuild.selinux","options":{"file_contexts":"etc/selinux/targeted/contexts/files/file_contexts"}}],"assembler":{"name":"org.osbuild.qemu","options":{"format":"qcow2","filename":"image.qcow2","ptuuid":"0x14fc63d2","root_fs_uuid":"76a22bf4-f153-4541-b6c7-0332c0dfaeac","size":3221225472}}}`),
-		&emptyPipeline)
 	tests := []struct {
 		name string
 		t    *qcow2Output
 		args args
-		want *pipeline.Pipeline
+		want string
 	}{
 		{
 			name: "empty-blueprint",
 			t:    &qcow2Output{},
 			args: args{&Blueprint{}},
-			want: &emptyPipeline,
+			want: "pipelines/qcow2_empty_blueprint.json",
 		},
 	}
 	for _, tt := range tests {
 		t.Run(tt.name, func(t *testing.T) {
-			if got := tt.t.translate(tt.args.b); !reflect.DeepEqual(got, tt.want) {
-				t.Errorf("qcow2Output.translate() = %v, want %v", got, tt.want)
+			file, _ := ioutil.ReadFile(tt.want)
+			var want pipeline.Pipeline
+			json.Unmarshal([]byte(file), &want)
+			if got := tt.t.translate(tt.args.b); !reflect.DeepEqual(got, &want) {
+				t.Errorf("qcow2Output.translate() = %v, want %v", got, &want)
 			}
 		})
 	}