pungi/tests
Jeremy Cline ee1ee0467b extra-files: Write a metadata file enumerating extra files
Introduces a new metadata file to track arbitrary files added during the
extra-files phase. This file is placed in the root of each tree and is
called ``extra_files.json``. It is a JSON file containing a single
object, which contains a "header" key with an object describing the
metadata, and a "data" key, which is an array of objects, where each
object represents a file. Each object contains the "file", "checksums",
and "size" keys. "file" is the relative path from the tree root to the
extra file. "checksums" is an object containing one or more checksums,
where the key is the digest type and the value of that key is the hex
digest. Finally, the size is the size of the file in bytes.

For example:
{
  "header": {"version": "1.0},
  "data": [
    {
      "file": "GPL",
      "checksums": {
        "sha256": "8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643"
      },
      "size": 18092
    },
    {
      "file": "release-notes/notes.html",
      "checksums": {
        "sha256": "82b1ba8db522aadf101dca6404235fba179e559b95ea24ff39ee1e5d9a53bdcb"
      },
      "size": 1120
    }
  ]
}

Signed-off-by: Jeremy Cline <jeremy@jcline.org>
Fixes: #295
2016-09-07 13:02:48 +02:00
..
data Fix test data build script 2016-09-01 08:46:23 +02:00
fixtures [pkgset] Add tests for KojiPackageSet 2016-04-22 13:35:17 +02:00
__init__.py Fix test data, improve Makefile. 2015-06-25 08:02:57 -04:00
helpers.py Merge #381 `Automatically generate missing image version` 2016-09-06 15:19:55 +00:00
test_arch.py [arch] Add mock rpmUtils module 2016-05-17 12:10:45 +02:00
test_buildinstall.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_checks.py Use unittest2 if available 2016-05-25 13:41:49 +02:00
test_compose.py Merge #381 `Automatically generate missing image version` 2016-09-06 15:19:55 +00:00
test_compose.sh Fix PYTHONPATH usage in test_compose.sh. 2016-06-02 10:16:02 -04:00
test_config.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_createiso_phase.py createiso: Report nice error when tag does not exist 2016-09-01 09:09:31 +02:00
test_createiso_script.py [createiso] Use shell script for runroot 2016-08-10 13:39:50 +02:00
test_createrepo_wrapper.py Use unittest2 if available 2016-05-25 13:41:49 +02:00
test_createrepophase.py Use unittest2 if available 2016-05-25 13:41:49 +02:00
test_extra_files_phase.py extra-files: Write a metadata file enumerating extra files 2016-09-07 13:02:48 +02:00
test_imagebuildphase.py Merge #381 `Automatically generate missing image version` 2016-09-06 15:19:55 +00:00
test_imagechecksumphase.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_initphase.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_koji_wrapper.py Use unittest2 if available 2016-05-25 13:41:49 +02:00
test_liveimagesphase.py Merge #381 `Automatically generate missing image version` 2016-09-06 15:19:55 +00:00
test_livemediaphase.py Merge #381 `Automatically generate missing image version` 2016-09-06 15:19:55 +00:00
test_lorax_wrapper.py Use unittest2 if available 2016-05-25 13:41:49 +02:00
test_media_split.py [media-split] Add unit tests 2016-06-01 14:03:23 +02:00
test_metadata.py extra-files: Write a metadata file enumerating extra files 2016-09-07 13:02:48 +02:00
test_notifier.py Fix notifier tests 2015-12-14 14:35:00 +01:00
test_osbs_phase.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_ostree_installer_phase.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_ostree_phase.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_ostree_script.py Stop using str.format 2016-05-25 13:41:49 +02:00
test_pathmatch.py Allow running scripts with any python in PATH 2015-11-27 08:38:47 +01:00
test_paths.py Add JSON Schema for configuration 2016-09-01 10:56:15 +02:00
test_phase_base.py Add common global settings for images 2016-04-18 18:11:29 +02:00
test_pkgset_pkgsets.py Use unittest2 if available 2016-05-25 13:41:49 +02:00
test_pkgset_source_koji.py [pkgset] Add tests for Koji source 2016-04-22 09:44:20 +02:00
test_scm.py Use unittest2 if available 2016-05-25 13:41:49 +02:00
test_test_phase.py [test] Only check bootability for images on x86_64 and i386 2016-08-10 13:02:56 +02:00
test_util.py extra-files: Write a metadata file enumerating extra files 2016-09-07 13:02:48 +02:00