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 35f24c7 commit 740133f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/bugs/core_3328.fbt
Expand Up @@ -77,7 +77,13 @@ db_conn.close()
# NOTE: this is NECESSARY if several instances are in work and we did not change
# PATH variable before call this test!

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 740133f

Please sign in to comment.