From 600fcfbd167adc1f0bc14ad2cf477c5662a88630 Mon Sep 17 00:00:00 2001 From: Conor Schaefer Date: Wed, 24 Feb 2021 10:21:15 -0500 Subject: [PATCH] Makes unattended-upgrades test read-only Adds the "dry-run" flag so that system state is not changed during the test. --- molecule/testinfra/common/test_automatic_updates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/molecule/testinfra/common/test_automatic_updates.py b/molecule/testinfra/common/test_automatic_updates.py index 63746bcf4b..fd4d016ec4 100644 --- a/molecule/testinfra/common/test_automatic_updates.py +++ b/molecule/testinfra/common/test_automatic_updates.py @@ -243,7 +243,7 @@ def test_unattended_upgrades_functional(host): are up-to-date. """ if host.system_info.codename != "xenial": - c = host.run('sudo unattended-upgrades -d') + c = host.run('sudo unattended-upgrades --dry-run --debug') assert c.rc == 0 expected_origins = ( "Allowed origins are: origin=Ubuntu,archive=focal, origin=Ubuntu,archive=focal-security"