6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-22 13:33:07 +01:00
firebird-qa/tests/bugs/core_5270_test.py

32 lines
710 B
Python
Raw Normal View History

2021-04-26 20:07:00 +02:00
#coding:utf-8
2022-01-25 22:55:48 +01:00
"""
ID: issue-5548
ISSUE: 5548
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
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