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_4879_test.py

31 lines
847 B
Python
Raw Permalink Normal View History

2021-04-26 20:07:00 +02:00
#coding:utf-8
2022-01-24 20:27:02 +01:00
"""
ID: issue-5174
ISSUE: 5174
TITLE: Minor inconvenience in user management via services API
DESCRIPTION:
JIRA: CORE-4879
FBTEST: bugs.core_4879
2022-01-24 20:27:02 +01:00
"""
2021-04-26 20:07:00 +02:00
2022-01-24 20:27:02 +01:00
import pytest
from firebird.qa import *
2021-04-26 20:07:00 +02:00
2022-01-24 20:27:02 +01:00
db = db_factory()
2021-04-26 20:07:00 +02:00
2022-01-24 20:27:02 +01:00
act = python_act('db')
2021-04-26 20:07:00 +02:00
@pytest.mark.version('>=3.0')
2022-01-24 20:27:02 +01:00
def test_1(act: Action):
act.expected_stderr = 'We do not expect any error output'
act.svcmgr(switches=['action_add_user', 'dbname', str(act.db.db_path),
2021-11-26 19:20:43 +01:00
'sec_username', 'TMP$C4879', 'sec_password', '123'])
# There should be no output at all
2022-01-24 20:27:02 +01:00
assert act.clean_stderr == ''
assert act.clean_stdout == ''
2021-11-26 19:20:43 +01:00
# add_user passed, so remove it
2022-01-24 20:27:02 +01:00
act.reset()
act.svcmgr(switches=['action_delete_user', 'dbname', str(act.db.db_path),
2021-11-26 19:20:43 +01:00
'sec_username', 'TMP$C4879'])