debian-forge-composer/test/data
Christian Kellner d9ef268809 disk: use GenerateUUIDs in CreatePartitionTable
Instead of generating the UUIDs directly when new partitions are
created and separately for the boot and root partition, use the
new `PartitionTable.GenerateUUIDs` method to generate all UUIDs
that are missing in one go. Since this changes the order in
which the uuids are generated the test manifests UUIDs changed
and needed to be updated:
I used to following patch to get the updated manifests:

--- a/internal/distro/distro_test_common/distro_test_common.go
+++ b/internal/distro/distro_test_common/distro_test_common.go
@@ -105,6 +105,12 @@ func TestDistro_Manifest(t *testing.T, pipelinePath string, prefix string, regis
                                require.NoError(t, err)

                                diff := cmp.Diff(expected, actual)
+                               if diff != "" {
+                                       tt.Manifest = got
+                                       data, _ := json.MarshalIndent(tt, "", "  ")
+                                       path := filepath.Join("/tmp", filepath.Base(fileName))
+                                       _ = ioutil.WriteFile(path, data, 0644)
+                               }
                                require.Emptyf(t, diff, "Distro: %s\nArch: %s\nImage type: %s\nTest case file: %s\n", d.Name(), arch.Name(), imageType.Name(), fileName)
                        }
                })

And the following fish snippet to update the existing ones, using the
jq and sponge utilities:

for file in /tmp/rhel_85-*.json
  set filename (basename $file)
  jq -s '.[0].manifest = .[1].manifest | .[0]' test/data/manifests/$filename /tmp/$filename | sponge test/data/manifests/$filename
end
2022-02-22 19:23:41 +00:00
..
ansible test: wait longer for reboot during ostree rollback test 2022-02-18 10:39:08 +00:00
azure Test Azure images on HyperV Gen1 and Gen2 2021-06-22 13:44:19 +03:00
cloud-init tests: ship all tests in the -tests sub-package 2020-10-06 13:08:26 +02:00
composer test: Fix installation of osbuild-worker.toml in provision.sh 2021-02-25 18:44:21 +00:00
kerberos tests: ship all tests in the -tests sub-package 2020-10-06 13:08:26 +02:00
keyring tests: ship all tests in the -tests sub-package 2020-10-06 13:08:26 +02:00
koji test/koji: remove the koji-cli patch 2022-01-26 14:44:27 +01:00
manifests disk: use GenerateUUIDs in CreatePartitionTable 2022-02-22 19:23:41 +00:00
openshift test: Add case - running edge-container on OCP as stage repo 2021-08-27 09:29:28 +02:00
repositories Update cs9 test repos to latest snapshot 2022-02-18 10:39:08 +00:00
upgrade8to9 tests/upgrade: gather more logs 2022-02-18 09:25:01 +01:00
worker test: Fix installation of osbuild-worker.toml in provision.sh 2021-02-25 18:44:21 +00:00
x509 test: generate certificates on fly instead of shipping them in the test RPM 2020-11-05 13:48:48 +01:00