mirror of
https://github.com/FirebirdSQL/firebird-qa.git
synced 2025-01-22 21:43:06 +01:00
Added/Updated tests\bugs\core_6049_test.py: Adjusted expected_stdout because SQLDA output changed after commits 'correction metaData'.
This commit is contained in:
parent
e33c46eb86
commit
e9299994ca
@ -12,6 +12,14 @@ DESCRIPTION:
|
||||
We get columns type details using sqlda_display in order to fix them in expected_stdout.
|
||||
JIRA: CORE-6049
|
||||
FBTEST: bugs.core_6049
|
||||
NOTES:
|
||||
[19.11.2023] pzotov
|
||||
Adjusted expected_stdout because SQLDA output changed after
|
||||
0b846ad4787233559d371ade99776b4e1da205b7 // 4.x
|
||||
1ed7f81f168b643a29357fce2e1f49156e9f5a1f // 5.x
|
||||
ab6aced05723dc1b2e6bb96bfdaa86cb3090daf2 // 6.x
|
||||
(Log message: "correction metaData")
|
||||
Discussed with dimitr, letter 20.11.2023 17:38.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
@ -45,32 +53,11 @@ test_script = """
|
||||
commit;
|
||||
"""
|
||||
|
||||
act = isql_act('db', test_script, substitutions=[('INPUT message.*', '')])
|
||||
substitutions = [ ('^((?!(sqltype|alias|UID|encode|decode|result)).)*$', ''), ]
|
||||
|
||||
expected_stdout = """
|
||||
OUTPUT message field count: 7
|
||||
01: sqltype: 452 TEXT Nullable scale: 0 subtype: 0 len: 20 charset: 1 OCTETS
|
||||
: name: UID alias: UID
|
||||
: table: TEST owner: SYSDBA
|
||||
02: sqltype: 448 VARYING Nullable scale: 0 subtype: 0 len: 28 charset: 2 ASCII
|
||||
: name: alias: b64_encode(uid)
|
||||
: table: owner:
|
||||
03: sqltype: 448 VARYING Nullable scale: 0 subtype: 0 len: 21 charset: 1 OCTETS
|
||||
: name: alias: b64_decode(b64_encode(uid))
|
||||
: table: owner:
|
||||
04: sqltype: 448 VARYING Nullable scale: 0 subtype: 0 len: 40 charset: 2 ASCII
|
||||
: name: alias: hex_encode(uid)
|
||||
: table: owner:
|
||||
05: sqltype: 448 VARYING Nullable scale: 0 subtype: 0 len: 20 charset: 1 OCTETS
|
||||
: name: alias: hex_decode(hex_encode(uid))
|
||||
: table: owner:
|
||||
06: sqltype: 32764 BOOLEAN Nullable scale: 0 subtype: 0 len: 1
|
||||
: name: alias: b64_dec(b64_enc(uid)) result
|
||||
: table: owner:
|
||||
07: sqltype: 32764 BOOLEAN Nullable scale: 0 subtype: 0 len: 1
|
||||
: name: alias: hex_dec(hex_enc(uid)) result
|
||||
: table: owner:
|
||||
act = isql_act('db', test_script, substitutions = substitutions)
|
||||
|
||||
COMMON_OUTPUT = """
|
||||
UID CFA677DA45594D52A7D24EF9FA4C04D600000000
|
||||
b64_encode(uid) z6Z32kVZTVKn0k75+kwE1gAAAAA=
|
||||
b64_decode(b64_encode(uid)) CFA677DA45594D52A7D24EF9FA4C04D600000000
|
||||
@ -80,6 +67,24 @@ expected_stdout = """
|
||||
hex_dec(hex_enc(uid)) result <true>
|
||||
"""
|
||||
|
||||
expected_stdout = f"""
|
||||
01: sqltype: 452 TEXT Nullable scale: 0 subtype: 0 len: 20 charset: 1 OCTETS
|
||||
: name: UID alias: UID
|
||||
02: sqltype: 448 VARYING Nullable scale: 0 subtype: 0 len: 28 charset: 2 ASCII
|
||||
: name: BASE64_ENCODE alias: b64_encode(uid)
|
||||
03: sqltype: 448 VARYING Nullable scale: 0 subtype: 0 len: 21 charset: 1 OCTETS
|
||||
: name: BASE64_DECODE alias: b64_decode(b64_encode(uid))
|
||||
04: sqltype: 448 VARYING Nullable scale: 0 subtype: 0 len: 40 charset: 2 ASCII
|
||||
: name: HEX_ENCODE alias: hex_encode(uid)
|
||||
05: sqltype: 448 VARYING Nullable scale: 0 subtype: 0 len: 20 charset: 1 OCTETS
|
||||
: name: HEX_DECODE alias: hex_decode(hex_encode(uid))
|
||||
06: sqltype: 32764 BOOLEAN Nullable scale: 0 subtype: 0 len: 1
|
||||
: name: alias: b64_dec(b64_enc(uid)) result
|
||||
07: sqltype: 32764 BOOLEAN Nullable scale: 0 subtype: 0 len: 1
|
||||
: name: alias: hex_dec(hex_enc(uid)) result
|
||||
{COMMON_OUTPUT}
|
||||
"""
|
||||
|
||||
@pytest.mark.version('>=4.0')
|
||||
def test_1(act: Action):
|
||||
act.expected_stdout = expected_stdout
|
||||
|
Loading…
Reference in New Issue
Block a user