1515 * define type of every page starting from first PP for 'TEST' table and up to total pages of DB,
1616 and doing this for each subsequent page. Dictionary 'broken_pages_map' is used to store LIST of pages
1717 for each encountered page type;
18- * ENCRYPT database, see call of func 'run_encr_decr';
1918 * close connection;
2019 * open test DB file in binary mode for reading and writing, and:
2120 ** store previous content of .fdb in variable 'raw_db_content' (for further restore);
2423 **** if page_type is POINTER_PAGE or IDX_ROOT_PAGE - do nothing (we can get problems if these pages are broken);
2524 **** otherwise put 'garbage bytes' in each of these pages;
2625 * close DB file
26+ * ENCRYPT database, see call of func 'run_encr_decr';
2727 * run 'gstat -e' and check its output for presense of several expected patterns:
2828 ** "Data pages: total encrypted, non-crypted"
2929 ** "Index pages: total encrypted, non-crypted"
@@ -451,12 +451,6 @@ def test_1(act: Action, capsys):
451451 #
452452 raw_db_content = act .db .db_path .read_bytes ()
453453
454-
455- ############################################
456- ### E N C R Y P T D A T A B A S E ###
457- ############################################
458- run_encr_decr (act , 'encrypt' , MAX_WAITING_ENCR_FINISH , capsys )
459-
460454 #################################################
461455 ### P U T G A R B A G E I N D B ###
462456 #################################################
@@ -480,6 +474,11 @@ def test_1(act: Action, capsys):
480474 w .write (garbage_bytes )
481475
482476
477+ ############################################
478+ ### E N C R Y P T D A T A B A S E ###
479+ ############################################
480+ run_encr_decr (act , 'encrypt' , MAX_WAITING_ENCR_FINISH , capsys )
481+
483482 #################################################
484483 ### P A R S E G S T A T O U T P U T ###
485484 #################################################
0 commit comments