freedomofpress / dangerzone

Take potentially dangerous PDFs, office documents, or images and convert them to safe PDFs
https://dangerzone.rocks/
GNU Affero General Public License v3.0
3.37k stars 153 forks source link

Move QA Scenario 10 to the CI (except windows and macOS) #719

Closed deeplow closed 3 months ago

deeplow commented 4 months ago

Move the following scenario to the CI (except for Windows and macOS where testing the scenario is implicit and easier).


10. Updating Dangerzone handles external state correctly.

(Applies to Linux/Windows/MacOS. For MacOS/Windows, it requires an installer for the new version)

Install the previous version of Dangerzone system-wide:

Open the Dangerzone application and enable some non-default settings. Close the Dangerzone application and get the container image for that version. For example:

$ podman images dangerzone.rocks/dangerzone:latest
REPOSITORY                   TAG         IMAGE ID      CREATED       SIZE
dangerzone.rocks/dangerzone  latest      <image ID>    <date>        <size>

(use docker on Windows/MacOS)

Install the new version of Dangerzone system-wide. For Linux, copy the package back into the container. Open the Dangerzone application and make sure that the previously enabled settings still show up. Also, ensure that Dangerzone reports that the new image has been installed, and verify that it's different from the old one by doing:

$ podman images dangerzone.rocks/dangerzone:latest
REPOSITORY                   TAG         IMAGE ID        CREATED       SIZE
dangerzone.rocks/dangerzone  latest      <different ID>  <newer date>  <different size>