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

32 lines
990 B
Python
Raw Permalink Normal View History

#coding:utf-8
2022-01-27 20:08:36 +01:00
"""
ID: issue-6817
ISSUE: 6817
TITLE: Command switch "-fetch_password <passwordfile>" does not work with gfix
DESCRIPTION:
FBTEST: bugs.gh_6817
2022-01-27 20:08:36 +01:00
"""
2022-01-27 20:08:36 +01:00
import pytest
from pathlib import Path
from firebird.qa import *
2022-01-27 20:08:36 +01:00
db = db_factory()
2022-01-27 20:08:36 +01:00
act = python_act('db')
2022-01-27 20:08:36 +01:00
passfile = temp_file('tmp_gh_6817.dat')
@pytest.mark.version('>=3.0.7')
2022-01-27 20:08:36 +01:00
def test_1(act: Action, passfile: Path):
passfile.write_text(act.db.password)
act.gfix(switches=['-user', act.db.user, '-fetch_password', passfile, act.db.dsn, '-w', 'async'],
2022-01-27 20:08:36 +01:00
credentials=False)
act.gfix(switches=['-fetch_password', passfile, act.db.dsn, '-user', act.db.user, '-w', 'async'],
2022-01-27 20:08:36 +01:00
credentials=False)
act.gfix(switches=['-user', act.db.user, act.db.dsn, '-fetch_password', passfile, '-w', 'async'],
2022-01-27 20:08:36 +01:00
credentials=False)
act.gfix(switches=[act.db.dsn, '-fetch_password', passfile, '-user', act.db.user, '-w', 'async'],
2022-01-27 20:08:36 +01:00
credentials=False)