2021-04-26 20:07:00 +02:00
|
|
|
#coding:utf-8
|
|
|
|
|
2022-01-25 22:55:48 +01:00
|
|
|
"""
|
|
|
|
ID: issue-5548
|
|
|
|
ISSUE: 5548
|
2022-02-02 15:46:19 +01:00
|
|
|
TITLE: FBSVCMGR does not produce error while attempting to shutdown a database without
|
|
|
|
specified timeout (prp_force_shutdown N)
|
2022-01-25 22:55:48 +01:00
|
|
|
DESCRIPTION:
|
|
|
|
JIRA: CORE-5270
|
2022-02-02 15:46:19 +01:00
|
|
|
FBTEST: bugs.core_5270
|
2022-01-25 22:55:48 +01:00
|
|
|
"""
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-25 22:55:48 +01:00
|
|
|
import pytest
|
|
|
|
from firebird.qa import *
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-25 22:55:48 +01:00
|
|
|
db = db_factory()
|
2021-12-06 19:23:35 +01:00
|
|
|
|
2022-01-25 22:55:48 +01:00
|
|
|
act = python_act('db')
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-25 22:55:48 +01:00
|
|
|
expected_stderr = """
|
2021-04-26 20:07:00 +02:00
|
|
|
must specify type of shutdown
|
2021-12-06 19:23:35 +01:00
|
|
|
"""
|
2021-04-26 20:07:00 +02:00
|
|
|
|
|
|
|
@pytest.mark.version('>=3.0.1')
|
2022-01-25 22:55:48 +01:00
|
|
|
def test_1(act: Action):
|
|
|
|
act.expected_stderr = expected_stderr
|
|
|
|
act.svcmgr(switches=['action_properties', 'dbname', str(act.db.db_path),
|
|
|
|
'prp_shutdown_mode', 'prp_sm_single'])
|
|
|
|
assert act.clean_stderr == act.clean_expected_stderr
|
2021-04-26 20:07:00 +02:00
|
|
|
|
|
|
|
|