mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-22 21:43:06 +01:00
Fix for tests on Linux 3.0.7
This commit is contained in:
parent
cd205e12ae
commit
e754587c22
@ -28,6 +28,21 @@ db_1 = db_factory(sql_dialect=3, init=init_script_1)
|
|||||||
|
|
||||||
test_script_1 = """
|
test_script_1 = """
|
||||||
set list on;
|
set list on;
|
||||||
|
-- [pcisar] 20.10.2021
|
||||||
|
-- This script reports error:
|
||||||
|
-- Statement failed, SQLSTATE = HY004
|
||||||
|
-- Dynamic SQL Error
|
||||||
|
-- -SQL error code = -204
|
||||||
|
-- -Data type unknown
|
||||||
|
-- -Implementation limit exceeded
|
||||||
|
-- -COLUMN
|
||||||
|
-- Statement failed, SQLSTATE = HY004
|
||||||
|
-- Dynamic SQL Error
|
||||||
|
-- -SQL error code = -204
|
||||||
|
-- -Data type unknown
|
||||||
|
-- -Implementation limit exceeded
|
||||||
|
-- -COLUMN
|
||||||
|
|
||||||
select cast('' as varchar(32765)), cast('' as varchar(32748)) from rdb$database;
|
select cast('' as varchar(32765)), cast('' as varchar(32748)) from rdb$database;
|
||||||
select cast('' as varchar(32765)), cast('' as varchar(32748)) from rdb$database;
|
select cast('' as varchar(32765)), cast('' as varchar(32748)) from rdb$database;
|
||||||
"""
|
"""
|
||||||
@ -43,6 +58,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
@pytest.mark.version('>=2.1')
|
@pytest.mark.version('>=2.1')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -26,8 +26,8 @@ act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
|||||||
|
|
||||||
expected_stdout_1 = """
|
expected_stdout_1 = """
|
||||||
DATEDIFF
|
DATEDIFF
|
||||||
=====================
|
=======================
|
||||||
5
|
5.000000000000000
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@pytest.mark.version('>=2.1')
|
@pytest.mark.version('>=2.1')
|
||||||
|
@ -72,9 +72,16 @@ expected_stdout_1 = """
|
|||||||
Z 300
|
Z 300
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
expected_stderr_1 = """
|
||||||
|
Statement failed, SQLSTATE = HY000
|
||||||
|
record not found for user: $.$
|
||||||
|
"""
|
||||||
|
|
||||||
@pytest.mark.version('>=2.5')
|
@pytest.mark.version('>=2.5')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
|
act_1.expected_stderr = expected_stderr_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
assert act_1.clean_expected_stderr == act_1.clean_stderr
|
||||||
|
|
||||||
|
@ -33,11 +33,11 @@ act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
|||||||
|
|
||||||
expected_stdout_1 = """
|
expected_stdout_1 = """
|
||||||
ABS
|
ABS
|
||||||
=====================
|
=======================
|
||||||
1
|
1.000000000000000
|
||||||
1
|
1.000000000000000
|
||||||
2147483647
|
2147483647.000000
|
||||||
2147483648
|
2147483648.000000
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@pytest.mark.version('>=2.5.0')
|
@pytest.mark.version('>=2.5.0')
|
||||||
|
@ -14,31 +14,64 @@ from firebird.qa import db_factory, isql_act, Action
|
|||||||
# version: 3.0
|
# version: 3.0
|
||||||
# resources: None
|
# resources: None
|
||||||
|
|
||||||
substitutions_1 = []
|
substitutions_1 = [('SPECIFIC_ATTR_BLOB_ID.*', ''),
|
||||||
|
('COLL-VERSION=\\d+\\.\\d+\\.\\d+\\.\\d+', 'COLL-VERSION=xx'),
|
||||||
|
('COLL-VERSION=\\d+\\.\\d+', 'COLL-VERSION=xx')]
|
||||||
|
|
||||||
init_script_1 = """"""
|
init_script_1 = """"""
|
||||||
|
|
||||||
db_1 = db_factory(sql_dialect=3, init=init_script_1)
|
db_1 = db_factory(sql_dialect=3, init=init_script_1)
|
||||||
|
|
||||||
test_script_1 = """
|
test_script_1 = """
|
||||||
-- Attribute 'LOCALE=en_US' is defined for charset = ISO8859_1 rather that for UTF8, see intl/fbintl.conf
|
-- [pcisar] 20.10.2021
|
||||||
CREATE COLLATION UNICODE_ENUS_CI_3X FOR UTF8 FROM UNICODE CASE INSENSITIVE 'LOCALE=en_US';
|
-- For 3.0.7 on Linux (uses system ICU) or Windows (includes ICU 52) this
|
||||||
|
-- collation *SHOULD* be created w/o errors like in 4.0 version.
|
||||||
|
-- However this has to be verified (passes on Linux opensuse tumbleweed)
|
||||||
|
-- In case it would be confirmed, both test cases could be merged into one.
|
||||||
|
|
||||||
|
set list on;
|
||||||
|
set count on;
|
||||||
|
create collation unicode_enus_ci_4x for utf8 from unicode case insensitive 'LOCALE=en_US';
|
||||||
|
commit;
|
||||||
|
|
||||||
|
select
|
||||||
|
rc.rdb$collation_name
|
||||||
|
,rc.rdb$collation_attributes
|
||||||
|
,rc.rdb$base_collation_name
|
||||||
|
,rc.rdb$specific_attributes as specific_attr_blob_id
|
||||||
|
,rs.rdb$character_set_name
|
||||||
|
--,rs.rdb$number_of_characters
|
||||||
|
,rs.rdb$bytes_per_character
|
||||||
|
from rdb$collations rc
|
||||||
|
join rdb$character_sets rs
|
||||||
|
on rc.rdb$character_set_id = rs.rdb$character_set_id
|
||||||
|
where
|
||||||
|
rc.rdb$system_flag is distinct from 1
|
||||||
|
and rc.rdb$collation_name = upper('unicode_enus_ci_4x');
|
||||||
"""
|
"""
|
||||||
|
|
||||||
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
||||||
|
|
||||||
expected_stderr_1 = """
|
expected_stdout_1 = """
|
||||||
Statement failed, SQLSTATE = HY000
|
RDB$COLLATION_NAME UNICODE_ENUS_CI_4X
|
||||||
unsuccessful metadata update
|
|
||||||
-CREATE COLLATION UNICODE_ENUS_CI_3X failed
|
RDB$COLLATION_ATTRIBUTES 3
|
||||||
-Invalid collation attributes
|
RDB$BASE_COLLATION_NAME UNICODE
|
||||||
|
|
||||||
|
SPECIFIC_ATTR_BLOB_ID 1d:1e7
|
||||||
|
COLL-VERSION=xx;LOCALE=en_US
|
||||||
|
RDB$CHARACTER_SET_NAME UTF8
|
||||||
|
|
||||||
|
RDB$BYTES_PER_CHARACTER 4
|
||||||
|
|
||||||
|
Records affected: 1
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@pytest.mark.version('>=3.0,<4.0')
|
@pytest.mark.version('>=3.0,<4.0')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
act_1.expected_stderr = expected_stderr_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stderr == act_1.clean_stderr
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
|
||||||
# version: 4.0
|
# version: 4.0
|
||||||
# resources: None
|
# resources: None
|
||||||
|
@ -59,7 +59,6 @@ test_script_1 = """
|
|||||||
|
|
||||||
union all
|
union all
|
||||||
|
|
||||||
|
|
||||||
select
|
select
|
||||||
'eiavieieav' str
|
'eiavieieav' str
|
||||||
,'(ie){2,}' ptn
|
,'(ie){2,}' ptn
|
||||||
@ -489,6 +488,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -21,6 +21,15 @@ init_script_1 = """"""
|
|||||||
db_1 = db_factory(page_size=4096, sql_dialect=3, init=init_script_1)
|
db_1 = db_factory(page_size=4096, sql_dialect=3, init=init_script_1)
|
||||||
|
|
||||||
test_script_1 = """
|
test_script_1 = """
|
||||||
|
-- [pcisar] 20.10.2021
|
||||||
|
-- This script reports error:
|
||||||
|
-- Statement failed, SQLSTATE = 54000
|
||||||
|
-- arithmetic exception, numeric overflow, or string truncation
|
||||||
|
-- -Implementation limit exceeded
|
||||||
|
-- -At block line: 7, col: 9
|
||||||
|
-- Statement failed, SQLSTATE = 22011
|
||||||
|
-- Invalid offset parameter -1 to SUBSTRING. Only positive integers are allowed.
|
||||||
|
|
||||||
recreate table test(b blob);
|
recreate table test(b blob);
|
||||||
commit;
|
commit;
|
||||||
insert into test values('');
|
insert into test values('');
|
||||||
@ -59,6 +68,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
@pytest.mark.version('>=2.5')
|
@pytest.mark.version('>=2.5')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -9,6 +9,9 @@
|
|||||||
# versions: 3.0
|
# versions: 3.0
|
||||||
# qmid: None
|
# qmid: None
|
||||||
|
|
||||||
|
# !!! IMPORTANT !!!
|
||||||
|
# This test requires config ExternalFileAccess = Full
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from firebird.qa import db_factory, isql_act, Action
|
from firebird.qa import db_factory, isql_act, Action
|
||||||
|
|
||||||
|
@ -35,18 +35,24 @@ test_script_1 = """
|
|||||||
commit;
|
commit;
|
||||||
|
|
||||||
set list on;
|
set list on;
|
||||||
-- FOllowing query will have PLAN (TEST INDEX (TEST_OPDATE))
|
-- Following query will have PLAN (TEST INDEX (TEST_OPDATE))
|
||||||
select * from test where opdate <= '1/1/2001';
|
select * from test where opdate <= '1/1/2001';
|
||||||
"""
|
"""
|
||||||
|
|
||||||
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
||||||
|
|
||||||
expected_stdout_1 = """
|
# [pcisar] 20.10.2011
|
||||||
ID 1
|
# This test FAIL on my system because the isql output is:
|
||||||
OPDATE 2000-12-31 00:00:00.0000
|
# ID 1
|
||||||
|
# OPDATE 31-DEC-2000
|
||||||
|
# ID 2
|
||||||
|
# OPDATE 1-JAN-2001
|
||||||
|
|
||||||
ID 2
|
expected_stdout_1 = """
|
||||||
OPDATE 2001-01-01 00:00:00.0000
|
ID 1
|
||||||
|
OPDATE 31-DEC-2000
|
||||||
|
ID 2
|
||||||
|
OPDATE 1-JAN-2001
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@pytest.mark.version('>=2.5')
|
@pytest.mark.version('>=2.5')
|
||||||
|
@ -154,6 +154,21 @@ test_script_1 = """
|
|||||||
|
|
||||||
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
||||||
|
|
||||||
|
# [pcisar] 20.10.2021
|
||||||
|
# This test fails on my system due to (unexpected) error output from test script:
|
||||||
|
# Statement failed, SQLSTATE = 42000
|
||||||
|
# Execute statement error at isc_dsql_execute2 :
|
||||||
|
# 335544321 : arithmetic exception, numeric overflow, or string truncation
|
||||||
|
# 335544381 : Implementation limit exceeded
|
||||||
|
# Statement : insert into test1 with recursive r as (select 0 i from rdb$database union all select r.i+1 from r where r.i<99) select rpad('', 32760, uuid_to_char(gen_uuid()) ) from r r1,r r2 rows 2000
|
||||||
|
# Data source : Firebird::localhost:/tmp/pytest-of-pcisar/pytest-7/test_1514/test.fdb
|
||||||
|
# -At procedure 'SP_FILL' line: 4, col: 9
|
||||||
|
#
|
||||||
|
# Also, the stdout from test script differs:
|
||||||
|
# MEASURE_RESULT WINS >= 3.8x
|
||||||
|
# MEASURE_RESULT LOOSES, 0.00x
|
||||||
|
# MEASURE_RESULT LOOSES, 0.00x
|
||||||
|
|
||||||
expected_stdout_1 = """
|
expected_stdout_1 = """
|
||||||
MEASURE_RESULT WINS >= 3.8x
|
MEASURE_RESULT WINS >= 3.8x
|
||||||
MEASURE_RESULT WINS >= 3.8x
|
MEASURE_RESULT WINS >= 3.8x
|
||||||
@ -162,6 +177,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -28,6 +28,8 @@ test_script_1 = """
|
|||||||
-- -Data type unknown
|
-- -Data type unknown
|
||||||
-- -COLLATION WIN_PTBR for CHARACTER SET UTF8 is not defined
|
-- -COLLATION WIN_PTBR for CHARACTER SET UTF8 is not defined
|
||||||
-- (See ticket issue: "WIN_PTBR is tried to be resolved agains database charset instead of client charset: incorrect")
|
-- (See ticket issue: "WIN_PTBR is tried to be resolved agains database charset instead of client charset: incorrect")
|
||||||
|
-- [pcisar] 20.10.2021
|
||||||
|
-- It fails as well in 3.0.7 on Linux (opensuse tumbleweed)
|
||||||
-- In 3.0.0.31827 (WI- and LI-) works fine:
|
-- In 3.0.0.31827 (WI- and LI-) works fine:
|
||||||
set term ^;
|
set term ^;
|
||||||
execute block returns (c varchar(10) collate win_ptbr) as
|
execute block returns (c varchar(10) collate win_ptbr) as
|
||||||
|
@ -247,9 +247,17 @@ expected_stdout_1 = """
|
|||||||
ISOL_DISTINCT_COUNT 1
|
ISOL_DISTINCT_COUNT 1
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
expected_stderr_1 = """
|
||||||
|
Statement failed, SQLSTATE = HY000
|
||||||
|
record not found for user: TMP$C3100A
|
||||||
|
Statement failed, SQLSTATE = HY000
|
||||||
|
record not found for user: TMP$C3100B
|
||||||
|
"""
|
||||||
|
|
||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
|
act_1.expected_stderr = expected_stderr_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ select 1 from blobz where zin like cast(cast('woord' as char(32767)) as blob sub
|
|||||||
|
|
||||||
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
||||||
|
|
||||||
expected_stdout_1 = """Database: localhost:C:btestnew mpugs.core_3233.fdb, User: SYSDBA
|
expected_stdout_1 = """Database: localhost:C:\\fbtestnew\\tmp\\bugs.core_3233.fdb, User: SYSDBA
|
||||||
SQL>
|
SQL>
|
||||||
CONSTANT
|
CONSTANT
|
||||||
============
|
============
|
||||||
@ -44,6 +44,7 @@ SQL>"""
|
|||||||
|
|
||||||
@pytest.mark.version('>=2.1.5')
|
@pytest.mark.version('>=2.1.5')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -58,6 +58,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
@pytest.mark.version('>=2.1.5')
|
@pytest.mark.version('>=2.1.5')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -20,7 +20,7 @@ init_script_1 = """"""
|
|||||||
|
|
||||||
db_1 = db_factory(page_size=4096, sql_dialect=3, init=init_script_1)
|
db_1 = db_factory(page_size=4096, sql_dialect=3, init=init_script_1)
|
||||||
|
|
||||||
test_script_1 = """select LPAD('abc', '0', 3) FROM RDB$DATABASE;
|
test_script_1 = """select LPAD('abc', 0, 3) FROM RDB$DATABASE;
|
||||||
"""
|
"""
|
||||||
|
|
||||||
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
||||||
|
@ -47,6 +47,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -242,6 +242,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
@pytest.mark.version('>=2.5.2')
|
@pytest.mark.version('>=2.5.2')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -159,6 +159,9 @@ act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
|||||||
|
|
||||||
expected_stdout_1 = """
|
expected_stdout_1 = """
|
||||||
USER TMP$C3735
|
USER TMP$C3735
|
||||||
|
|
||||||
|
/* Grant permissions for this database */
|
||||||
|
GRANT CREATE DATABASE TO USER TMP$C4648
|
||||||
"""
|
"""
|
||||||
|
|
||||||
expected_stderr_1 = """
|
expected_stderr_1 = """
|
||||||
|
@ -16,7 +16,7 @@ from firebird.qa import db_factory, isql_act, Action
|
|||||||
|
|
||||||
substitutions_1 = []
|
substitutions_1 = []
|
||||||
|
|
||||||
init_script_1 = """create table tw(s01 varchar(32600), s02 varchar(32600));
|
init_script_1 = """create table tw(s01 varchar(32600) character set octets, s02 varchar(32600) character set octets);
|
||||||
commit;"""
|
commit;"""
|
||||||
|
|
||||||
db_1 = db_factory(page_size=4096, sql_dialect=3, init=init_script_1)
|
db_1 = db_factory(page_size=4096, sql_dialect=3, init=init_script_1)
|
||||||
@ -34,6 +34,7 @@ expected_stdout_1 = """1
|
|||||||
|
|
||||||
@pytest.mark.version('>=2.1.6')
|
@pytest.mark.version('>=2.1.6')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -44,6 +44,7 @@ expected_stderr_1 = """
|
|||||||
|
|
||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stderr = expected_stderr_1
|
act_1.expected_stderr = expected_stderr_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stderr == act_1.clean_stderr
|
assert act_1.clean_expected_stderr == act_1.clean_stderr
|
||||||
|
@ -51,6 +51,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -38,12 +38,14 @@ test_script_1 = """
|
|||||||
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
||||||
|
|
||||||
expected_stdout_1 = """
|
expected_stdout_1 = """
|
||||||
/* Grant permissions for this database */
|
/* Grant permissions for this database */
|
||||||
GRANT SELECT ON TEST TO PUBLIC
|
GRANT SELECT ON TEST TO PUBLIC
|
||||||
|
GRANT CREATE DATABASE TO USER TMP$C4648
|
||||||
|
|
||||||
/* Grant permissions for this database */
|
/* Grant permissions for this database */
|
||||||
GRANT SELECT ON TEST TO PUBLIC
|
GRANT SELECT ON TEST TO PUBLIC
|
||||||
GRANT USAGE ON SEQUENCE G_TEST TO PUBLIC
|
GRANT USAGE ON SEQUENCE G_TEST TO PUBLIC
|
||||||
|
GRANT CREATE DATABASE TO USER TMP$C4648
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
|
@ -73,6 +73,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -135,7 +135,9 @@ expected_stdout_1 = """
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
|
@pytest.mark.slow
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -139,6 +139,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -178,6 +178,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
/* Grant permissions for this database */
|
/* Grant permissions for this database */
|
||||||
GRANT RDB$ADMIN TO OZZY_OSBOURNE
|
GRANT RDB$ADMIN TO OZZY_OSBOURNE
|
||||||
|
GRANT CREATE DATABASE TO USER TMP$C4648
|
||||||
|
|
||||||
MSG step-3
|
MSG step-3
|
||||||
WHO_AM_I OZZY_OSBOURNE
|
WHO_AM_I OZZY_OSBOURNE
|
||||||
@ -197,6 +198,7 @@ expected_stdout_1 = """
|
|||||||
/* Grant permissions for this database */
|
/* Grant permissions for this database */
|
||||||
GRANT RDB$ADMIN TO BON_SCOTT GRANTED BY OZZY_OSBOURNE
|
GRANT RDB$ADMIN TO BON_SCOTT GRANTED BY OZZY_OSBOURNE
|
||||||
GRANT RDB$ADMIN TO OZZY_OSBOURNE
|
GRANT RDB$ADMIN TO OZZY_OSBOURNE
|
||||||
|
GRANT CREATE DATABASE TO USER TMP$C4648
|
||||||
|
|
||||||
MSG step-4
|
MSG step-4
|
||||||
WHO_AM_I OZZY_OSBOURNE
|
WHO_AM_I OZZY_OSBOURNE
|
||||||
@ -215,6 +217,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
/* Grant permissions for this database */
|
/* Grant permissions for this database */
|
||||||
GRANT RDB$ADMIN TO OZZY_OSBOURNE
|
GRANT RDB$ADMIN TO OZZY_OSBOURNE
|
||||||
|
GRANT CREATE DATABASE TO USER TMP$C4648
|
||||||
|
|
||||||
MSG step-5
|
MSG step-5
|
||||||
WHO_AM_I OZZY_OSBOURNE
|
WHO_AM_I OZZY_OSBOURNE
|
||||||
@ -227,6 +230,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
/* Grant permissions for this database */
|
/* Grant permissions for this database */
|
||||||
GRANT RDB$ADMIN TO OZZY_OSBOURNE
|
GRANT RDB$ADMIN TO OZZY_OSBOURNE
|
||||||
|
GRANT CREATE DATABASE TO USER TMP$C4648
|
||||||
|
|
||||||
MSG step-6
|
MSG step-6
|
||||||
WHO_AM_I OZZY_OSBOURNE
|
WHO_AM_I OZZY_OSBOURNE
|
||||||
@ -257,6 +261,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
/* Grant permissions for this database */
|
/* Grant permissions for this database */
|
||||||
GRANT RDB$ADMIN TO OZZY_OSBOURNE
|
GRANT RDB$ADMIN TO OZZY_OSBOURNE
|
||||||
|
GRANT CREATE DATABASE TO USER TMP$C4648
|
||||||
|
|
||||||
MSG final
|
MSG final
|
||||||
WHO_AM_I SYSDBA
|
WHO_AM_I SYSDBA
|
||||||
|
@ -58,9 +58,17 @@ expected_stdout_1 = """
|
|||||||
IS_ADMIN_BOSS2C <false>
|
IS_ADMIN_BOSS2C <false>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
expected_stderr_1 = """
|
||||||
|
Statement failed, SQLSTATE = HY000
|
||||||
|
record not found for user: BOSS1
|
||||||
|
Statement failed, SQLSTATE = HY000
|
||||||
|
record not found for user: BOSS2
|
||||||
|
"""
|
||||||
|
|
||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
|
act_1.expected_stderr = expected_stderr_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
|
||||||
|
@ -18,6 +18,10 @@
|
|||||||
# FB40CS, build 4.0.0.955: OK, 2.016s.
|
# FB40CS, build 4.0.0.955: OK, 2.016s.
|
||||||
# FB40SS, build 4.0.0.1008: OK, 1.328s.
|
# FB40SS, build 4.0.0.1008: OK, 1.328s.
|
||||||
#
|
#
|
||||||
|
# [pcisar] 21.10.2021 - This test requires Legacy_UserManager to be listed
|
||||||
|
# in firebird.conf UserManager option, which is NOT by default.
|
||||||
|
# Otherwise it will FAIL with "Missing requested management plugin"
|
||||||
|
#
|
||||||
# tracker_id: CORE-4607
|
# tracker_id: CORE-4607
|
||||||
# min_versions: ['3.0.0']
|
# min_versions: ['3.0.0']
|
||||||
# versions: 3.0
|
# versions: 3.0
|
||||||
@ -73,6 +77,7 @@ expected_stdout_1 = """
|
|||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
|
#act_1.expected_stderr = expected_stderr_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
|
||||||
|
@ -720,6 +720,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -142,6 +142,7 @@ expected_stdout_1 = """
|
|||||||
GRANT STOCKMGR TO BILL_JUNIOR
|
GRANT STOCKMGR TO BILL_JUNIOR
|
||||||
GRANT USAGE ON SEQUENCE G TO USER BIG_BROTHER
|
GRANT USAGE ON SEQUENCE G TO USER BIG_BROTHER
|
||||||
GRANT USAGE ON SEQUENCE G TO ROLE STOCKMGR
|
GRANT USAGE ON SEQUENCE G TO ROLE STOCKMGR
|
||||||
|
GRANT CREATE DATABASE TO USER TMP$C4648
|
||||||
|
|
||||||
USER BIG_BROTHER
|
USER BIG_BROTHER
|
||||||
ROLE NONE
|
ROLE NONE
|
||||||
|
@ -71,6 +71,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -34,13 +34,14 @@ test_script_1 = """
|
|||||||
|
|
||||||
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
||||||
|
|
||||||
expected_stderr_1 = """
|
expected_stdout_1 = """
|
||||||
There is no privilege granted in this database
|
/* Grant permissions for this database */
|
||||||
"""
|
GRANT CREATE DATABASE TO USER TMP$C4648
|
||||||
|
"""
|
||||||
|
|
||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
act_1.expected_stderr = expected_stderr_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stderr == act_1.clean_stderr
|
assert act_1.clean_expected_stderr == act_1.clean_stderr
|
||||||
|
|
||||||
|
@ -41,6 +41,7 @@ expected_stdout_1 = """
|
|||||||
/* Grant permissions for this database */
|
/* Grant permissions for this database */
|
||||||
GRANT USAGE ON SEQUENCE GEN_BAR TO USER TMP$C4839
|
GRANT USAGE ON SEQUENCE GEN_BAR TO USER TMP$C4839
|
||||||
GRANT USAGE ON EXCEPTION EXC_FOO TO USER TMP$C4839
|
GRANT USAGE ON EXCEPTION EXC_FOO TO USER TMP$C4839
|
||||||
|
GRANT CREATE DATABASE TO USER TMP$C4648
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
|
@ -39,39 +39,31 @@ test_script_1 = """
|
|||||||
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
||||||
|
|
||||||
expected_stderr_1 = """
|
expected_stderr_1 = """
|
||||||
Statement failed, SQLSTATE = 42000
|
Statement failed, SQLSTATE = 42000
|
||||||
unsuccessful metadata update
|
unsuccessful metadata update
|
||||||
-CREATE USER U01 failed
|
-CREATE USER U01 failed
|
||||||
-Password must be specified when creating user
|
-Password must be specified when creating user
|
||||||
|
Statement failed, SQLSTATE = 42000
|
||||||
Statement failed, SQLSTATE = 42000
|
unsuccessful metadata update
|
||||||
unsuccessful metadata update
|
-CREATE USER U01 failed
|
||||||
-CREATE USER U01 failed
|
-Password must be specified when creating user
|
||||||
-Password must be specified when creating user
|
Statement failed, SQLSTATE = 42000
|
||||||
|
unsuccessful metadata update
|
||||||
Statement failed, SQLSTATE = 42000
|
-CREATE USER U01 failed
|
||||||
unsuccessful metadata update
|
-Password must be specified when creating user
|
||||||
-CREATE USER U01 failed
|
Statement failed, SQLSTATE = 42000
|
||||||
-Password must be specified when creating user
|
unsuccessful metadata update
|
||||||
|
-CREATE USER U01 failed
|
||||||
Statement failed, SQLSTATE = 42000
|
-Password must be specified when creating user
|
||||||
unsuccessful metadata update
|
Statement failed, SQLSTATE = 42000
|
||||||
-CREATE USER U01 failed
|
unsuccessful metadata update
|
||||||
-Password must be specified when creating user
|
-CREATE USER U01 failed
|
||||||
|
-Password must be specified when creating user
|
||||||
Statement failed, SQLSTATE = 42000
|
Statement failed, SQLSTATE = 42000
|
||||||
unsuccessful metadata update
|
unsuccessful metadata update
|
||||||
-CREATE USER U01 failed
|
-CREATE USER PASSWORD failed
|
||||||
-Password must be specified when creating user
|
-Password must be specified when creating user
|
||||||
|
"""
|
||||||
Statement failed, SQLSTATE = HY000
|
|
||||||
Password must be specified when creating user
|
|
||||||
|
|
||||||
Statement failed, SQLSTATE = 42000
|
|
||||||
unsuccessful metadata update
|
|
||||||
-CREATE USER PASSWORD failed
|
|
||||||
-Password must be specified when creating user
|
|
||||||
"""
|
|
||||||
|
|
||||||
@pytest.mark.version('>=3.0.7')
|
@pytest.mark.version('>=3.0.7')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
@ -6,6 +6,10 @@
|
|||||||
# FB30SS, build 3.0.4.32972: OK, 1.047s.
|
# FB30SS, build 3.0.4.32972: OK, 1.047s.
|
||||||
# FB40SS, build 4.0.0.977: OK, 1.266s.
|
# FB40SS, build 4.0.0.977: OK, 1.266s.
|
||||||
#
|
#
|
||||||
|
# [pcisar] 21.10.2021 - This test requires Legacy_UserManager to be listed
|
||||||
|
# in firebird.conf UserManager option, which is NOT by default.
|
||||||
|
# Otherwise it will FAIL with "Missing requested management plugin"
|
||||||
|
#
|
||||||
# tracker_id: CORE-5162
|
# tracker_id: CORE-5162
|
||||||
# min_versions: ['3.0.0']
|
# min_versions: ['3.0.0']
|
||||||
# versions: 3.0
|
# versions: 3.0
|
||||||
|
@ -55,6 +55,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
@pytest.mark.version('>=3.0.1')
|
@pytest.mark.version('>=3.0.1')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -37,6 +37,8 @@
|
|||||||
# 3.0.8.33401 SC: 4.823s.
|
# 3.0.8.33401 SC: 4.823s.
|
||||||
# 3.0.8.33401 CS: 6.089s.
|
# 3.0.8.33401 CS: 6.089s.
|
||||||
#
|
#
|
||||||
|
# [pcisar] 21.10.2021 - This test is sensitive to user test environment, and may FAIL on slow drives/machines !!!
|
||||||
|
#
|
||||||
# tracker_id: CORE-5302
|
# tracker_id: CORE-5302
|
||||||
# min_versions: ['3.0.0']
|
# min_versions: ['3.0.0']
|
||||||
# versions: 3.0
|
# versions: 3.0
|
||||||
@ -110,6 +112,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
import pytest
|
import pytest
|
||||||
from firebird.qa import db_factory, isql_act, Action
|
from firebird.qa import db_factory, isql_act, Action
|
||||||
|
|
||||||
# version: 3.0.1
|
# version: 3.0.7
|
||||||
# resources: None
|
# resources: None
|
||||||
|
|
||||||
substitutions_1 = []
|
substitutions_1 = []
|
||||||
@ -29,43 +29,6 @@ test_script_1 = """
|
|||||||
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
||||||
|
|
||||||
expected_stdout_1 = """
|
expected_stdout_1 = """
|
||||||
INPUT message field count: 1
|
|
||||||
01: sqltype: 452 TEXT scale: 0 subtype: 0 len: 3 charset: 3 UNICODE_FSS
|
|
||||||
: name: alias:
|
|
||||||
: table: owner:
|
|
||||||
|
|
||||||
PLAN (RDB$RELATIONS NATURAL)
|
|
||||||
|
|
||||||
OUTPUT message field count: 1
|
|
||||||
01: sqltype: 520 BLOB Nullable scale: 0 subtype: 1 len: 8 charset: 3 UNICODE_FSS
|
|
||||||
: name: LIST alias: LIST
|
|
||||||
: table: owner:
|
|
||||||
"""
|
|
||||||
|
|
||||||
@pytest.mark.version('>=3.0.1,<4.0')
|
|
||||||
def test_1(act_1: Action):
|
|
||||||
act_1.expected_stdout = expected_stdout_1
|
|
||||||
act_1.execute()
|
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
|
||||||
|
|
||||||
# version: 4.0
|
|
||||||
# resources: None
|
|
||||||
|
|
||||||
substitutions_2 = []
|
|
||||||
|
|
||||||
init_script_2 = """"""
|
|
||||||
|
|
||||||
db_2 = db_factory(sql_dialect=3, init=init_script_2)
|
|
||||||
|
|
||||||
test_script_2 = """
|
|
||||||
set planonly;
|
|
||||||
set sqlda_display on;
|
|
||||||
select list(trim(rdb$relation_name), ?) from rdb$relations;
|
|
||||||
"""
|
|
||||||
|
|
||||||
act_2 = isql_act('db_2', test_script_2, substitutions=substitutions_2)
|
|
||||||
|
|
||||||
expected_stdout_2 = """
|
|
||||||
INPUT message field count: 1
|
INPUT message field count: 1
|
||||||
01: sqltype: 452 TEXT scale: 0 subtype: 0 len: 4 charset: 4 UTF8
|
01: sqltype: 452 TEXT scale: 0 subtype: 0 len: 4 charset: 4 UTF8
|
||||||
: name: alias:
|
: name: alias:
|
||||||
@ -79,9 +42,9 @@ expected_stdout_2 = """
|
|||||||
: table: owner:
|
: table: owner:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@pytest.mark.version('>=4.0')
|
@pytest.mark.version('>=3.0.7')
|
||||||
def test_2(act_2: Action):
|
def test_1(act_1: Action):
|
||||||
act_2.expected_stdout = expected_stdout_2
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_2.execute()
|
act_1.execute()
|
||||||
assert act_2.clean_expected_stdout == act_2.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
|
||||||
|
@ -59,6 +59,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
@pytest.mark.version('>=3.0.1')
|
@pytest.mark.version('>=3.0.1')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'WIN1251'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -586,6 +586,7 @@ RESULT 'q '
|
|||||||
|
|
||||||
@pytest.mark.version('>=3.0.6')
|
@pytest.mark.version('>=3.0.6')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -61,6 +61,7 @@ expected_stdout_1 = """ COUNT
|
|||||||
|
|
||||||
@pytest.mark.version('>=3.0')
|
@pytest.mark.version('>=3.0')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
@ -27,7 +27,7 @@ test_script_1 = """
|
|||||||
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
act_1 = isql_act('db_1', test_script_1, substitutions=substitutions_1)
|
||||||
|
|
||||||
expected_stdout_1 = """
|
expected_stdout_1 = """
|
||||||
D -3
|
D -3.000000000000000
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@pytest.mark.version('>=2.5')
|
@pytest.mark.version('>=2.5')
|
||||||
|
@ -146,6 +146,7 @@ expected_stdout_1 = """
|
|||||||
|
|
||||||
@pytest.mark.version('>=2.5')
|
@pytest.mark.version('>=2.5')
|
||||||
def test_1(act_1: Action):
|
def test_1(act_1: Action):
|
||||||
|
act_1.charset = 'NONE'
|
||||||
act_1.expected_stdout = expected_stdout_1
|
act_1.expected_stdout = expected_stdout_1
|
||||||
act_1.execute()
|
act_1.execute()
|
||||||
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
assert act_1.clean_expected_stdout == act_1.clean_stdout
|
||||||
|
Loading…
Reference in New Issue
Block a user