test-update-remote-configuration.sh (flatpak-1.8.2.tar.xz) | : | test-update-remote-configuration.sh (flatpak-1.8.3.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 41 | skipping to change at line 41 | |||
# Configure a repository without a collection ID and pull it locally. | # Configure a repository without a collection ID and pull it locally. | |||
setup_repo | setup_repo | |||
install_repo | install_repo | |||
DIR=$(mktemp -d) | DIR=$(mktemp -d) | |||
${FLATPAK} build-init ${DIR} org.test.App org.test.Platform org.test.Platform | ${FLATPAK} build-init ${DIR} org.test.App org.test.Platform org.test.Platform | |||
mkdir -p ${DIR}/files/a | mkdir -p ${DIR}/files/a | |||
echo "a" > ${DIR}/files/a/data | echo "a" > ${DIR}/files/a/data | |||
${FLATPAK} build-finish ${DIR} --socket=x11 --share=network --command=true | ${FLATPAK} build-finish ${DIR} --socket=x11 --share=network --command=true | |||
${FLATPAK} build-export ${FL_GPGARGS} --update-appstream repos/test ${DIR} maste r | ${FLATPAK} build-export --no-update-summary ${FL_GPGARGS} --update-appstream rep os/test ${DIR} master | |||
update_repo | update_repo | |||
${FLATPAK} ${U} install -y test-repo org.test.App master | ${FLATPAK} ${U} install -y test-repo org.test.App master | |||
assert_file_has_content ${FL_DIR}/repo/config '^gpg-verify-summary=true$' | assert_file_has_content ${FL_DIR}/repo/config '^gpg-verify-summary=true$' | |||
assert_not_file_has_content ${FL_DIR}/repo/config '^gpg-verify-summary=false$' | assert_not_file_has_content ${FL_DIR}/repo/config '^gpg-verify-summary=false$' | |||
assert_file_has_content ${FL_DIR}/repo/config '^gpg-verify=true$' | assert_file_has_content ${FL_DIR}/repo/config '^gpg-verify=true$' | |||
assert_not_file_has_content ${FL_DIR}/repo/config '^gpg-verify=false$' | assert_not_file_has_content ${FL_DIR}/repo/config '^gpg-verify=false$' | |||
assert_not_file_has_content ${FL_DIR}/repo/config '^collection-id=' | assert_not_file_has_content ${FL_DIR}/repo/config '^collection-id=' | |||
# Change its configuration to include a collection ID, update the repository, | # Change its configuration to include a collection ID, update the repository, | |||
# but don’t mark the collection ID as to be deployed yet. Ensure it doesn’t | # but don’t mark the collection ID as to be deployed yet. Ensure it doesn’t | |||
# appear in the client’s configuration. | # appear in the client’s configuration. | |||
echo -e "[core]\ncollection-id=org.test.Collection" >> repos/test/config | echo -e "[core]\ncollection-id=org.test.Collection" >> repos/test/config | |||
${FLATPAK} build-export ${FL_GPGARGS} --update-appstream repos/test --collection -id org.test.Collection ${DIR} master | ${FLATPAK} build-export --no-update-summary ${FL_GPGARGS} --update-appstream re pos/test --collection-id org.test.Collection ${DIR} master | |||
UPDATE_REPO_ARGS="--collection-id=org.test.Collection" update_repo | UPDATE_REPO_ARGS="--collection-id=org.test.Collection" update_repo | |||
${FLATPAK} ${U} update -y org.test.App master | ${FLATPAK} ${U} update -y org.test.App master | |||
assert_file_has_content ${FL_DIR}/repo/config '^gpg-verify-summary=true$' | assert_file_has_content ${FL_DIR}/repo/config '^gpg-verify-summary=true$' | |||
assert_not_file_has_content ${FL_DIR}/repo/config '^gpg-verify-summary=false$' | assert_not_file_has_content ${FL_DIR}/repo/config '^gpg-verify-summary=false$' | |||
assert_file_has_content ${FL_DIR}/repo/config '^gpg-verify=true$' | assert_file_has_content ${FL_DIR}/repo/config '^gpg-verify=true$' | |||
assert_not_file_has_content ${FL_DIR}/repo/config '^gpg-verify=false$' | assert_not_file_has_content ${FL_DIR}/repo/config '^gpg-verify=false$' | |||
assert_not_file_has_content ${FL_DIR}/repo/config '^collection-id=' | assert_not_file_has_content ${FL_DIR}/repo/config '^collection-id=' | |||
assert_not_file_has_content ${FL_DIR}/repo/config '^collection-id=' | assert_not_file_has_content ${FL_DIR}/repo/config '^collection-id=' | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |