From 5623ab563ea2b0b48e6b0184fcb2523fa5d90d38 Mon Sep 17 00:00:00 2001 From: pavel-zotov Date: Wed, 8 Mar 2023 09:15:41 +0300 Subject: [PATCH] Content of $QA_HOME/files/qa-databases.conf must be *ADDED* to the file $TESTING_FB_HOME/databases.conf rather than overwrite it. Final file must contain aliases 'employee' and 'security.db'. Otherwise in some cases attempt to made attach to Services can fail: ======= provider.set_dbcrypt_callback(crypt_callback) > svc = provider.attach_service_manager(host, spb_buf) result = self.vtable.attachServiceManager(self, self.status, service.encode(), len(spb), spb) > self._check() > raise self.__report(DatabaseError, self.status.get_errors()) firebird.driver.types.DatabaseError: Error occurred during login, please check server firebird.log for details ======= And firebird.log contains at this moment: Authentication error I/O error during "CreateFile (open)" operation for file "...\SECURITY5.FDB" Error while trying to open file The system cannot find the file specified. Detected on Windows, FB 5.0.0.970, Classic, test bugs/core_6316_test.py --- files/qa-databases.conf | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/files/qa-databases.conf b/files/qa-databases.conf index 562a8815..f967bbf9 100644 --- a/files/qa-databases.conf +++ b/files/qa-databases.conf @@ -1,14 +1,14 @@ -# QA-specific databases.conf, would be copied manually to $FB_HOME +# QA-specific databases.conf, will be ADDED $FB_HOME/databases.conf # by batch scenario as part of preparation, before QA suite run. +# ::: NB ::: +# DO NOT add here aliases 'employee', 'employee.fdb' and 'security.db' +# #################################################################### # Discussed with pcisar, letters since 30-may-2022 13:48, subject: -# "new qa, core_4964_test.py: strange outcome when use... shutil.copy() // comparing to shutil.copy2()" -################################################################### - -employee.fdb = $(dir_sampleDb)/employee.fdb -employee = $(dir_sampleDb)/employee.fdb +# "new qa, core_4964_test.py: strange outcome when use... shutil.copy()" +# #################################################################### # Hereafter we specify data for tests which require special settings for database. -# NOTE: each alias must EXACTLY match to value specified in the test! +# Each alias must EXACTLY match to value in the test, including letters case. # # Test issue: https://github.com/FirebirdSQL/firebird/issues/5160