Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Updater Integration Tests #1151

Open
1 task done
deeplow opened this issue Jul 16, 2024 · 1 comment
Open
1 task done

Implement Updater Integration Tests #1151

deeplow opened this issue Jul 16, 2024 · 1 comment
Labels

Comments

@deeplow
Copy link
Contributor

deeplow commented Jul 16, 2024

  • I have searched for duplicates or related issues

Description

The current updater does have unit tests. However, it is lacking integration tests and we are currently relying on manual validation for that part. We should have these integrations tests in order to catch:

How will this impact SecureDrop/SecureDrop Workstation users?

Dev-facing / no impact.

How would this affect the SecureDrop Workstation threat model?

Dev-facing / no impact.

User Stories

As a developer, I don't want to rely on manual testing.

@deeplow
Copy link
Contributor Author

deeplow commented Jul 16, 2024

Implementation ideas

Setup:

  • install a package (e.g. htop) on dom0 and all sdw-managed templates
  • then downgrade said package (e.g. qubes-dom0-update --action=downgrade htop)

When:

  • SDW Updater is run

Then:

  • Qubes events detect correct template startups and app qube restarts / shutdowns
  • qvm-prefs tags for last-updated are correctly updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant