6
0
mirror of https://github.com/FirebirdSQL/firebird-qa.git synced 2025-01-23 22:13:05 +01:00
firebird-qa/tests/functional/database/create/test_08.py

69 lines
1.7 KiB
Python
Raw Normal View History

2021-04-26 20:07:00 +02:00
#coding:utf-8
#
# id: functional.database.create_08
# title:
# CREATE DATABASE - Multi file DB
# Checked on:
# 2.5.9.27126: OK, 0.750s.
# 3.0.5.33086: OK, 2.078s.
# 4.0.0.1378: OK, 8.500s.
#
# decription:
# tracker_id:
# min_versions: ['2.5']
# versions: 4.0
# qmid:
import pytest
from firebird.qa import db_factory, isql_act, Action
# version: 4.0
# resources: None
substitutions_1 = [('^.*TMP_CREATE_DB_08.F00', 'TMP_CREATE_DB_08.F00'), ('[ ]+', '\t')]
init_script_1 = """"""
db_1 = db_factory(sql_dialect=3, init=init_script_1)
# test_script_1
#---
# dsn = "".join([context["server_location"],
# context[db_path_property],
# "TMP_CREATE_DB_08.FDB"])
#
# file1 = "".join([context[db_path_property], "TMP_CREATE_DB_08.F00"])
#
# createCommand = "CREATE DATABASE '%s' LENGTH 300 USER '%s' PASSWORD '%s' FILE '%s' LENGTH 300" % (dsn, user_name, user_password, file1)
#
# db_conn= kdb.create_database(createCommand, int(sql_dialect))
#
# sql='''
# set list on;
# select
# cast(rdb$file_name as varchar(60)) db_file
# ,rdb$file_sequence
# ,rdb$file_start
# ,rdb$file_length
# from rdb$files
# ;
# '''
# runProgram('isql',[dsn,'-user',user_name,'-pas',user_password],sql)
# db_conn.drop_database()
#---
#act_1 = python_act('db_1', test_script_1, substitutions=substitutions_1)
expected_stdout_1 = """
TMP_CREATE_DB_08.F00
RDB$FILE_SEQUENCE 1
RDB$FILE_START 301
RDB$FILE_LENGTH 300
"""
@pytest.mark.version('>=4.0')
@pytest.mark.xfail
def test_create_08_1(db_1):
pytest.fail("Test not IMPLEMENTED")