1 @message |
I/O error
failed on teardown with "firebird.driver.types.DatabaseError: I/O error during "CreateFile (open)" operation for file "R:\TEMP\QA\FBQA\TEST_1873\CORE_4462_RES.FDB"
-Error while trying to open file
-Не удается найти указанный файл."
LOG DETAILS:
2024-04-21 05:23:45.826
2024-04-21 05:23:45.826 act = <firebird.qa.plugin.Action object at [hex]>
2024-04-21 05:23:45.826 act_rest_fdb = <firebird.qa.plugin.Action object at [hex]>
2024-04-21 05:23:45.826 tmp_zipped_nbk_list = [WindowsPath('R:/temp/qa/fbqa/test_1873/tmp_core_4462.nbk0.compressed'), WindowsPath('R:/temp/qa/fbqa/test_1873/tmp_co...fbqa/test_1873/tmp_core_4462.nbk2.compressed'), WindowsPath('R:/temp/qa/fbqa/test_1873/tmp_core_4462.nbk3.compressed')]
2024-04-21 05:23:45.826 tmp_compressors_list = [WindowsPath('R:/temp/qa/fbqa/test_1873/7zip.exe'), WindowsPath('R:/temp/qa/fbqa/test_1873/zstd.exe')]
2024-04-21 05:23:45.826 tmp_blob_txt = WindowsPath('R:/temp/qa/fbqa/test_1873/core_4462_txt.dat')
2024-04-21 05:23:45.826 tmp_blob_bin = WindowsPath('R:/temp/qa/fbqa/test_1873/core_4462_bin.dat')
2024-04-21 05:23:45.826 tmp_rest_fdb = <firebird.qa.plugin.Database object at [hex]>
2024-04-21 05:23:45.826 tmp_rest_log = WindowsPath('R:/temp/qa/fbqa/test_1873/core_4462_res.log')
2024-04-21 05:23:45.826 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2024-04-21 05:23:45.826
2024-04-21 05:23:45.826 @pytest.mark.encryption
2024-04-21 05:23:45.826 @pytest.mark.version('>=3.0.5')
2024-04-21 05:23:45.826 @pytest.mark.platform('Windows')
2024-04-21 05:23:45.826 def test_1(act: Action, act_rest_fdb: Action, tmp_zipped_nbk_list: List[Path], tmp_compressors_list: List[Path], tmp_blob_txt: Path, tmp_blob_bin: Path, tmp_rest_fdb: Path, tmp_rest_log: Path, capsys):
2024-04-21 05:23:45.826
2024-04-21 05:23:45.826 with act.db.connect() as con:
2024-04-21 05:23:45.826 sttm = f'alter database encrypt with "{ENCRYPTION_PLUGIN}" key "{ENCRYPTION_KEY}"'
2024-04-21 05:23:45.826 try:
2024-04-21 05:23:45.826 con.execute_immediate(sttm)
2024-04-21 05:23:45.826 con.commit()
2024-04-21 05:23:45.826 time.sleep(2)
2024-04-21 05:23:45.826 except DatabaseError as e:
2024-04-21 05:23:45.826 print( e.__str__() )
2024-04-21 05:23:45.826
2024-04-21 05:23:45.826 > assert '' == capsys.readouterr().out
2024-04-21 05:23:45.826 E assert
2024-04-21 05:23:45.826 E - unsuccessful metadata update
2024-04-21 05:23:45.826 E - -ALTER DATABASE failed
2024-04-21 05:23:45.826 E - -Missing correct crypt key
2024-04-21 05:23:45.826 E - -Plugin fbSampleDbCrypt:
2024-04-21 05:23:45.826 E - -Crypt key Red not set
2024-04-21 05:23:45.826
2024-04-21 05:23:45.826 tests\bugs\core_4462_windows_test.py:116: AssertionError
2024-04-21 05:23:45.826 ---------------------------- Captured stdout setup ----------------------------
2024-04-21 05:23:45.826 Cached db: db-12.0-None-None-UTF8.fdb [page_size=None, sql_dialect=None, charset='UTF8'
|
2 #text |
request = <SubRequest 'tmp_rest_fdb' for <Function test_1>>
db_path = WindowsPath('R:/temp/qa/fbqa/test_1873')
db_cache = <firebird.qa.plugin.DbCache pytest object at [hex]>
@pytest.fixture
def database_fixture(request: pytest.FixtureRequest, db_path, db_cache) -> Database:
db = Database(db_path, filename, user, password, charset, debug=str(request.module),
config_name=config_name, utf8filename=utf8filename)
if not do_not_create:
if from_backup is None and copy_of is None:
db.create(page_size, sql_dialect, db_cache)
elif from_backup is not None:
db.restore(from_backup)
elif copy_of is not None:
db.copy(copy_of)
if async_write:
db.set_async_write()
if init: # Do not check for None, we want to skip empty scripts as well
try:
db.init(init)
except Error as exc:
if hasattr(exc, 'stderr'):
request.node.user_properties.append(("dbinit-stderr", exc.stderr))
raise
yield db
if not do_not_drop:
> db.drop()
src\firebird\qa\plugin.py:953:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <firebird.driver.core.ServerDbServices3 pytest object at [hex]>
def no_linger(self, *, database: FILESPEC, role: str=None) -> None:
"""Set one-off override for database linger.
Arguments:
database: Database specification or alias.
role: SQL ROLE name passed to gfix.
"""
self._srv()._reset_output()
with a.get_api().util.get_xpb_builder(XpbKind.SPB_START) as spb:
spb.insert_tag(ServerAction.PROPERTIES)
spb.insert_string(SPBItem.DBNAME, str(database), encoding=self._srv().encoding)
if role is not None:
spb.insert_string(SPBItem.SQL_ROLE_NAME, role, encoding=self._srv().encoding)
spb.insert_int(SPBItem.OPTIONS, SrvPropertiesFlag.NOLINGER)
> self._srv()._svc.start(spb.get_buffer())
C:\Python3x\Lib\site-packages\firebird\driver\core.py:4712:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <firebird.driver.interfaces.iService_v3 pytest object at [hex]>
spb = b'\x08j+\x00R:\\temp\\qa\\fbqa\\test_1873\\core_4462_res.fdbl\x00\x04\x00\x00'
def start(self, spb: bytes) -> None:
"Start utility in services manager. Replaces `isc_service_start()`."
self.vtable.start(self, self.status, len(spb), spb)
> self._check()
C:\Python3x\Lib\site-packages\firebird\driver\interfaces.py:1262:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <firebird.driver.interfaces.iService_v3 pytest object at [hex]>
def _check(self) -> None:
state = self.status.get_state()
if StateFlag.ERRORS in state:
> raise self.__report(DatabaseError, self.status.get_errors())
E firebird.driver.types.DatabaseError: I/O error during "CreateFile (open)" operation for file "R:\TEMP\QA\FBQA\TEST_1873\CORE_4462_RES.FDB"
E -Error while trying to open file
E -Не удается найти указанный файл.
C:\Python3x\Lib\site-packages\firebird\driver\interfaces.py:113: DatabaseError
|