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 4ff61ca commit 0926318
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/bugs/core_4855.fbt
Expand Up @@ -50,7 +50,14 @@ os.environ["ISC_PASSWORD"] = user_password

# Obtain engine version:
engine = str(db_conn.engine_version) # convert to text because 'float' object has no attribute 'startswith'
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()
# fb_home = services.connect(host='localhost').get_home_directory()

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

Expand Down

0 comments on commit 0926318

Please sign in to comment.