2021-04-26 20:07:00 +02:00
|
|
|
#coding:utf-8
|
|
|
|
#
|
|
|
|
# id: functional.tabloid.remote_access_to_security_db
|
|
|
|
# title: Verify ability to make REMOTE connect to security.db
|
|
|
|
# decription:
|
|
|
|
# This test verifies only ability to make REMOTE connect to security.db
|
|
|
|
# Line "RemoteAccess = false" in file $FB_HOME/databases.conf should be COMMENTED.
|
|
|
|
# On the host that run tests this must is done BEFORE launch all testsby calling
|
|
|
|
# batch file "upd_databases_conf.bat" (see \\FirebirdQA\\qa3x.bat; qa4x.bat).
|
|
|
|
# Checked 28.06.2016 on 4.0.0.267
|
|
|
|
#
|
|
|
|
# tracker_id:
|
|
|
|
# min_versions: ['3.0']
|
|
|
|
# versions: 3.0
|
|
|
|
# qmid: None
|
|
|
|
|
|
|
|
import pytest
|
2021-12-22 20:25:10 +01:00
|
|
|
from firebird.qa import db_factory, python_act, Action
|
2021-04-26 20:07:00 +02:00
|
|
|
|
|
|
|
# version: 3.0
|
|
|
|
# resources: None
|
|
|
|
|
|
|
|
substitutions_1 = [('TCPv4', 'TCP'), ('TCPv6', 'TCP')]
|
|
|
|
|
|
|
|
init_script_1 = """"""
|
|
|
|
|
|
|
|
db_1 = db_factory(sql_dialect=3, init=init_script_1)
|
|
|
|
|
|
|
|
# test_script_1
|
|
|
|
#---
|
|
|
|
#
|
|
|
|
# import os
|
|
|
|
# os.environ["ISC_USER"] = user_name
|
|
|
|
# os.environ["ISC_PASSWORD"] = user_password
|
|
|
|
#
|
|
|
|
# db_conn.close()
|
|
|
|
# sql_chk='''
|
|
|
|
# connect 'localhost:security.db';
|
|
|
|
# set list on;
|
|
|
|
# select mon$attachment_name,mon$remote_protocol from mon$attachments where mon$attachment_id = current_connection;
|
|
|
|
# '''
|
|
|
|
# runProgram('isql',['-q'],sql_chk)
|
|
|
|
#---
|
2021-12-22 20:25:10 +01:00
|
|
|
act_1 = python_act('db_1', substitutions=substitutions_1)
|
2021-04-26 20:07:00 +02:00
|
|
|
|
|
|
|
expected_stdout_1 = """
|
|
|
|
MON$ATTACHMENT_NAME security.db
|
|
|
|
MON$REMOTE_PROTOCOL TCP
|
2021-12-22 20:25:10 +01:00
|
|
|
"""
|
2021-04-26 20:07:00 +02:00
|
|
|
|
|
|
|
@pytest.mark.version('>=3.0')
|
2021-12-30 17:00:48 +01:00
|
|
|
@pytest.mark.xfail
|
2021-12-22 20:25:10 +01:00
|
|
|
def test_1(act_1: Action):
|
2021-04-26 20:07:00 +02:00
|
|
|
pytest.fail("Test not IMPLEMENTED")
|
|
|
|
|
|
|
|
|