2 @message |
assert
- SYSDBA : 1
+ SYSDBA : 2
- TMP$8353 : 1
+ TMP$8353 : 6
LOG DETAILS:
2025-02-16 06:38:41.518
2025-02-16 06:38:41.526 act = <firebird.qa.plugin.Action object at [hex]>
2025-02-16 06:38:41.534 tmp_user_leg = <firebird.qa.plugin.User object at [hex]>
2025-02-16 06:38:41.541 tmp_user_srp = <firebird.qa.plugin.User object at [hex]>
2025-02-16 06:38:41.550 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2025-02-16 06:38:41.559
2025-02-16 06:38:41.573 @pytest.mark.version('>=4.0.6')
2025-02-16 06:38:41.585 def test_1(act: Action, tmp_user_leg: User, tmp_user_srp: User, capsys):
2025-02-16 06:38:41.593
2025-02-16 06:38:41.605 if act.vars['server-arch'] != 'SuperServer':
2025-02-16 06:38:41.616 pytest.skip("Can not be checked on CS/SC.")
2025-02-16 06:38:41.624
2025-02-16 06:38:41.631 try:
2025-02-16 06:38:41.638 with act.db.connect() as con1, \
2025-02-16 06:38:41.649 act.db.connect() as con2:
2025-02-16 06:38:41.657 conn_lst = []
2025-02-16 06:38:41.664 for i in range(N_CONNECTIONS):
2025-02-16 06:38:41.670 for u in (tmp_user_leg, tmp_user_srp):
2025-02-16 06:38:41.676 conn_lst.append( act.db.connect(user = u.name, password = u.password) )
2025-02-16 06:38:41.682
2025-02-16 06:38:41.688 for k,v in sorted(con1.info.get_info(DbInfoCode.USER_NAMES).items()):
2025-02-16 06:38:41.694 print(k,':',v)
2025-02-16 06:38:41.699
2025-02-16 06:38:41.704 for c in conn_lst:
2025-02-16 06:38:41.711 c.close()
2025-02-16 06:38:41.716
2025-02-16 06:38:41.723 except DatabaseError as e:
2025-02-16 06:38:41.732 print(e.__str__())
2025-02-16 06:38:41.746
2025-02-16 06:38:41.756 act.expected_stdout = f"""
2025-02-16 06:38:41.763 {act.db.user} : 1
2025-02-16 06:38:41.771 {TMP_USER_NAME} : 1
2025-02-16 06:38:41.783 """
2025-02-16 06:38:41.791
2025-02-16 06:38:41.798 act.stdout = capsys.readouterr().out
2025-02-16 06:38:41.805 > assert act.clean_stdout == act.clean_expected_stdout
2025-02-16 06:38:41.811 E assert
2025-02-16 06:38:41.817 E - SYSDBA : 1
2025-02-16 06:38:41.830 E + SYSDBA : 2
2025-02-16 06:38:41.852 E - TMP$8353 : 1
2025-02-16 06:38:41.868 E + TMP$8353 : 6
2025-02-16 06:38:41.886
2025-02-16 06:38:41.897 tests/bugs/gh_8353_test.py:73: AssertionError
2025-02-16 06:38:41.906 ---------------------------- Captured stdout setup -----------------------------
2025-02-16 06:38:41.914 Creating db: localhost:/var/tmp/qa_2024/test_11572/test.fdb [page_size=None, sql_dialect=None, charset='NONE', user=SYSDBA, password=masterkey]
2025-02-16 06:38:41.924 CREATE user: TMP$8353 PLUGIN: Legacy_UserManager
2025-02-16 06:38:41.937 CREATE user: TMP$8353 PLUGIN: Srp
2025-02-16 06:38:41.948 --------------------------- Captured stdout teardown ---------------------------
2025-02-16 06:38:41.962 DROP user: TMP$8353 PLUGIN: Srp
2025-02-16 06:38:41.972 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
|