AssertionError: Failed command: alter database encrypt with "fbSampleDbCrypt" key "NoSuchkey"
assert   
    unsuccessful metadata update
    -ALTER DATABASE failed
    -Missing correct crypt key
  - -Plugin fbSampleKeyHolder:
  + -Plugin fbSampleDbCrypt:
    -Crypt key NoSuchkey not set

LOG DETAILS:

2024-04-21 05:23:45.857
2024-04-21 05:23:45.857 act = <firebird.qa.plugin.Action object at [hex]>
2024-04-21 05:23:45.857 capsys = <_pytest.capture.CaptureFixture object at [hex]>
2024-04-21 05:23:45.857
2024-04-21 05:23:45.857     @pytest.mark.encryption
2024-04-21 05:23:45.857     @pytest.mark.version('>=3.0.4')
2024-04-21 05:23:45.857     def test_1(act: Action, capsys):
2024-04-21 05:23:45.857
2024-04-21 05:23:45.857         with act.db.connect() as con:
2024-04-21 05:23:45.857             sttm = f'alter database encrypt with "{ENCRYPTION_PLUGIN}" key "{ENCRYPTION_BADKEY}"'
2024-04-21 05:23:45.857             try:
2024-04-21 05:23:45.857                 con.execute_immediate(sttm)
2024-04-21 05:23:

[...SKIPPED...]

douterr().out
2024-04-21 05:23:45.857 >           assert act.clean_stdout == act.clean_expected_stdout, f'Failed command: {sttm}'
2024-04-21 05:23:45.857 E           AssertionError: Failed command: alter database encrypt with "fbSampleDbCrypt" key "NoSuchkey"
2024-04-21 05:23:45.857 E           assert
2024-04-21 05:23:45.857 E               unsuccessful metadata update
2024-04-21 05:23:45.857 E               -ALTER DATABASE failed
2024-04-21 05:23:45.857 E               -Missing correct crypt key
2024-04-21 05:23:45.857 E             - -Plugin fbSampleKeyHolder:
2024-04-21 05:23:45.857 E             + -Plugin fbSampleDbCrypt:
2024-04-21 05:23:45.857 E               -Crypt key NoSuchkey not set
2024-04-21 05:23:45.857
2024-04-21 05:23:45.857 tests\bugs\core_5793_test.py:67: AssertionError
2024-04-21 05:23:45.857 ---------------------------- Captured stdout setup ----------------------------
2024-04-21 05:23:45.857 Cached db: db-12.0-None-None-NONE.fdb [page_size=None, sql_dialect=None, charset='NONE'