diff --git a/tests/functional/shadow/test_create_01.py b/tests/functional/shadow/test_create_01.py index 195dab2b..ea6be873 100644 --- a/tests/functional/shadow/test_create_01.py +++ b/tests/functional/shadow/test_create_01.py @@ -2,9 +2,15 @@ """ ID: shadow.create-01 -TITLE: CREATE SHADOW +TITLE: CREATE SHADOW: check basic usage DESCRIPTION: -FBTEST: functional.shadow.create_01 +NOTES: + [30.12.2024] pzotov + Splitted expected out for FB 6.x because columns rdb$file_sequence, rdb$file_start and rdb$file_length + have NULLs instead of zeroes, see: + https://github.com/FirebirdSQL/firebird/commit/f0740d2a3282ed92a87b8e0547139ba8efe61173 + ("Wipe out multi-file database support (#8047)") + Checked on 6.0.0.565 """ import pytest @@ -34,9 +40,9 @@ test_script = """ from rdb$files; """ -act = isql_act('db', test_script) +act = isql_act('db', test_script, substitutions=[('[ \t]+', ' ')]) -expected_stdout = """ +expected_stdout_5x = """ CHECK_SHD_FILE_NAME OK FILE_SEQUENCE 0 FILE_START 0 @@ -46,8 +52,18 @@ expected_stdout = """ Records affected: 1 """ +expected_stdout_6x = """ + CHECK_SHD_FILE_NAME OK + FILE_SEQUENCE + FILE_START + FILE_LENGTH + FILE_FLAGS 1 + SHADOW_NUMBER 1 + Records affected: 1 +""" + @pytest.mark.version('>=3.0') def test_1(act: Action): - act.expected_stdout = expected_stdout + act.expected_stdout = expected_stdout_5x if act.is_version('<6') else expected_stdout_6x act.execute() assert act.clean_stdout == act.clean_expected_stdout