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

Sets TBB security level to standard for admin interface TOTP and HOTP tests. #4995

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions securedrop/tests/functional/test_admin_interface.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import pytest

from . import functional_test
from . import functional_test as ft
from . import journalist_navigation_steps


class TestAdminInterface(
functional_test.FunctionalTest,
ft.FunctionalTest,
journalist_navigation_steps.JournalistNavigationStepsMixin):

def test_admin_interface(self):
Expand All @@ -15,17 +13,23 @@ def test_admin_interface(self):
self._new_user_can_log_in()
self._admin_can_edit_new_user()

@pytest.mark.skip(reason="hanging forever, needs investigation")
def test_admin_edits_hotp_secret(self):
# Toggle security slider to force prefs change
self.set_tbb_securitylevel(ft.TBB_SECURITY_HIGH)
self.set_tbb_securitylevel(ft.TBB_SECURITY_LOW)

self._admin_logs_in()
self._admin_visits_admin_interface()
self._admin_adds_a_user()
self._admin_visits_edit_user()
self._admin_visits_reset_2fa_hotp()
self._admin_visits_edit_hotp()

@pytest.mark.skip(reason="hanging forever, needs investigation")
def test_admin_edits_totp_secret(self):
# Toggle security slider to force prefs change
self.set_tbb_securitylevel(ft.TBB_SECURITY_HIGH)
self.set_tbb_securitylevel(ft.TBB_SECURITY_LOW)

self._admin_logs_in()
self._admin_visits_admin_interface()
self._admin_adds_a_user()
Expand Down