2 @message |
assert
- SYSDBA : 1
+ SYSDBA : 2
- TMP$8353 : 1
+ TMP$8353 : 6
LOG DETAILS:
2025-02-14 12:51:13.289
2025-02-14 12:51:13.301 act = <firebird.qa.plugin.Action object at [hex]>
2025-02-14 12:51:13.316 tmp_user_leg = <firebird.qa.plugin.User object at [hex]>
2025-02-14 12:51:13.327 tmp_user_srp = <firebird.qa.plugin.User object at [hex]>
2025-02-14 12:51:13.342 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2025-02-14 12:51:13.355
2025-02-14 12:51:13.367 @pytest.mark.version('>=4.0.6')
2025-02-14 12:51:13.374 def test_1(act: Action, tmp_user_leg: User, tmp_user_srp: User, capsys):
2025-02-14 12:51:13.382
2025-02-14 12:51:13.389 if act.vars['server-arch'] != 'SuperServer':
2025-02-14 12:51:13.403 pytest.skip("Can not be checked on CS/SC.")
2025-02-14 12:51:13.413
2025-02-14 12:51:13.422 try:
2025-02-14 12:51:13.432 with act.db.connect() as con1, \
2025-02-14 12:51:13.443 act.db.connect() as con2:
2025-02-14 12:51:13.453 conn_lst = []
2025-02-14 12:51:13.468 for i in range(N_CONNECTIONS):
2025-02-14 12:51:13.484 for u in (tmp_user_leg, tmp_user_srp):
2025-02-14 12:51:13.499 conn_lst.append( act.db.connect(user = u.name, password = u.password) )
2025-02-14 12:51:13.511
2025-02-14 12:51:13.521 for k,v in sorted(con1.info.get_info(DbInfoCode.USER_NAMES).items()):
2025-02-14 12:51:13.530 print(k,':',v)
2025-02-14 12:51:13.538
2025-02-14 12:51:13.548 for c in conn_lst:
2025-02-14 12:51:13.561 c.close()
2025-02-14 12:51:13.576
2025-02-14 12:51:13.588 except DatabaseError as e:
2025-02-14 12:51:13.596 print(e.__str__())
2025-02-14 12:51:13.603
2025-02-14 12:51:13.610 act.expected_stdout = f"""
2025-02-14 12:51:13.616 {act.db.user} : 1
2025-02-14 12:51:13.624 {TMP_USER_NAME} : 1
2025-02-14 12:51:13.631 """
2025-02-14 12:51:13.644
2025-02-14 12:51:13.653 act.stdout = capsys.readouterr().out
2025-02-14 12:51:13.660 > assert act.clean_stdout == act.clean_expected_stdout
2025-02-14 12:51:13.669 E assert
2025-02-14 12:51:13.676 E - SYSDBA : 1
2025-02-14 12:51:13.691 E + SYSDBA : 2
2025-02-14 12:51:13.709 E - TMP$8353 : 1
2025-02-14 12:51:13.723 E + TMP$8353 : 6
2025-02-14 12:51:13.739
2025-02-14 12:51:13.752 tests/bugs/gh_8353_test.py:73: AssertionError
2025-02-14 12:51:13.762 ---------------------------- Captured stdout setup -----------------------------
2025-02-14 12:51:13.771 Creating db: localhost:/var/tmp/qa_2024/test_11678/test.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]
2025-02-14 12:51:13.778 CREATE user: TMP$8353 PLUGIN: Legacy_UserManager
2025-02-14 12:51:13.785 CREATE user: TMP$8353 PLUGIN: Srp
2025-02-14 12:51:13.792 --------------------------- Captured stdout teardown ---------------------------
2025-02-14 12:51:13.799 DROP user: TMP$8353 PLUGIN: Srp
2025-02-14 12:51:13.806 DROP user: TMP$8353 PLUGIN: Legacy_UserManager
|
3 #text |
act = <firebird.qa.plugin.Action pytest object at [hex]>
tmp_user_leg = <firebird.qa.plugin.User pytest object at [hex]>
tmp_user_srp = <firebird.qa.plugin.User pytest object at [hex]>
capsys = <_pytest.capture.CaptureFixture pytest object at [hex]>
@pytest.mark.version('>=4.0.6')
def test_1(act: Action, tmp_user_leg: User, tmp_user_srp: User, capsys):
if act.vars['server-arch'] != 'SuperServer':
pytest.skip("Can not be checked on CS/SC.")
try:
with act.db.connect() as con1, \
act.db.connect() as con2:
conn_lst = []
for i in range(N_CONNECTIONS):
for u in (tmp_user_leg, tmp_user_srp):
conn_lst.append( act.db.connect(user = u.name, password = u.password) )
for k,v in sorted(con1.info.get_info(DbInfoCode.USER_NAMES).items()):
print(k,':',v)
for c in conn_lst:
c.close()
except DatabaseError as e:
print(e.__str__())
act.expected_stdout = f"""
{act.db.user} : 1
{TMP_USER_NAME} : 1
"""
act.stdout = capsys.readouterr().out
> assert act.clean_stdout == act.clean_expected_stdout
E assert
E - SYSDBA : 1
E + SYSDBA : 2
E - TMP$8353 : 1
E + TMP$8353 : 6
tests/bugs/gh_8353_test.py:73: AssertionError
|