tests: Fix failure with test-unsigned-summaries.sh

The test used to verify that metadata was coming from the
ostree-metadata ref rather than the summary file, by ensuring that
xa.title was set in one but not the other, by regenerating one
separately from the other. However, since the test was written, OSTree
has changed so that it now writes them both out, at the same time, with
no possibility of separating the two.

Trim down this test so it no longer tries to check the source of the
updated metadata, and instead just checks that it is updated.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Closes: #1201
Approved by: alexlarsson
This commit is contained in:
Philip Withnall 2017-11-24 16:05:43 +00:00 committed by Atomic Bot
parent 659b02011a
commit 4ed08b24d1

View File

@ -127,17 +127,9 @@ assert_file_has_content metadata "'ostree.ref-binding': <\['ostree-metadata'\]>"
echo "ok 6 update repo metadata"
# Try to update the app, which should pull the updated repository metadata as a
# side effect. Before doing that, drop xa.title from the summary to check that
# its actually coming from ostree-metadata.
ostree --repo=repos/test summary --update
assert_not_has_file repos/test/summary.sig
ostree --repo=repos/test summary --view > summary
assert_not_file_has_content summary '^xa.title: '
#${FLATPAK} ${U} update org.test.App
# Try to install the app again, which should pull the updated repository
# metadata as a side effect.
${FLATPAK} ${U} install test-repo org.test.App master
assert_file_has_content ${FL_DIR}/repo/config '^xa.title=New title$'
# TODO: More
echo "ok 7 pull updated repo metadata"