Skip to content

Commit

Permalink
Explicitly specify sysdba/masterkey pair for connection to FB service…
Browse files Browse the repository at this point in the history
…s - see PYFB-69.
  • Loading branch information
pavel-zotov committed Dec 6, 2016
1 parent 170af39 commit d9eaf16
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/bugs/core_4707.fbt
Expand Up @@ -51,7 +51,12 @@ engine = str(db_conn.engine_version) # convert to text because 'float' object ha

db_conn.close()

fb_home = services.connect(host='localhost').get_home_directory()
# NB, 06.12.2016: as of fdb 1.6.1 one need to EXPLICITLY specify user+password pair when doing connect
# via to FB services API by services.connect() - see FB tracker, PYFB-69
# ("Can not connect to FB services if set ISC_USER & ISC_PASSWORD by os.environ[ ... ]")

fb_home = services.connect(host='localhost', user= user_name, password= user_password).get_home_directory()

if engine.startswith('2.5'):
fb_home = fb_home + 'bin'+os.sep

Expand Down

0 comments on commit d9eaf16

Please sign in to comment.