Skip to content

Commit 0a3ef79

Browse files
kushaldasredshiftzero
authored andcommitted
Fixes #3460 securedrop-admin update integration test
1 parent c0fc8d6 commit 0a3ef79

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

admin/tests/test_integration.py

+9
Original file line numberDiff line numberDiff line change
@@ -484,3 +484,12 @@ def test_check_for_update(self):
484484
'install_files/ansible-base '))
485485
child = pexpect.spawn(fullcmd)
486486
child.expect('Update needed', timeout=20)
487+
488+
def test_update(self):
489+
cmd = os.path.join(os.path.dirname(CURRENT_DIR),
490+
'securedrop_admin/__init__.py')
491+
child = pexpect.spawn('python {0} --root {1} update'.format(
492+
cmd, os.path.join(
493+
NEW_TMP_DIR,
494+
'install_files/ansible-base')))
495+
child.expect('Updated to SecureDrop', timeout=20)

0 commit comments

Comments
 (0)