File: test_functional.py

package info (click to toggle)
freedombox 26.2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 82,976 kB
  • sloc: python: 48,504; javascript: 1,736; xml: 481; makefile: 290; sh: 167; php: 32
file content (28 lines) | stat: -rw-r--r-- 785 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for ssh app.
"""

import pytest

from plinth.tests.functional import BaseAppTests

pytestmark = [pytest.mark.system, pytest.mark.ssh]


class TestSshApp(BaseAppTests):
    app_name = 'ssh'
    has_service = True
    has_web = False
    disable_after_tests = False

    # TODO: Improve test_backup_restore to actually check that earlier
    # ssh certificate has been restored.

    def test_enable_disable(self, session_browser):
        """Skip test for enabling and disabling the app."""
        pytest.skip('Avoid restarting SSH server')

    def test_backup_restore(self, session_browser):
        """Skip test for backup and restore operations."""
        pytest.skip('Avoid restarting SSH server')