@@ -6,6 +6,7 @@ use ic_base_types::{CanisterId, PrincipalId};
6
6
use ic_icrc1_test_utils:: minter_identity;
7
7
use ic_ledger_core:: block:: BlockIndex ;
8
8
use ic_ledger_core:: { block:: BlockType , Tokens } ;
9
+ use ic_ledger_suite_state_machine_tests:: archiving:: icp_archives;
9
10
use ic_ledger_suite_state_machine_tests:: {
10
11
balance_of, default_approve_args, default_transfer_from_args, expect_icrc2_disabled,
11
12
send_approval, send_transfer_from, setup, supported_standards, total_supply, transfer,
@@ -1704,6 +1705,36 @@ fn test_account_balance_non_standard_account_identifier_length() {
1704
1705
assert_eq ! ( res, Tokens :: from_e8s( 0 ) ) ;
1705
1706
}
1706
1707
1708
+ #[ test]
1709
+ fn test_archiving_lots_of_blocks_after_enabling_archiving ( ) {
1710
+ ic_ledger_suite_state_machine_tests:: archiving:: test_archiving_lots_of_blocks_after_enabling_archiving (
1711
+ ledger_wasm ( ) , encode_init_args,
1712
+ icp_archives,
1713
+ ic_ledger_suite_state_machine_tests:: archiving:: query_encoded_blocks,
1714
+ ic_ledger_suite_state_machine_tests:: archiving:: get_encoded_blocks,
1715
+ ) ;
1716
+ }
1717
+
1718
+ #[ test]
1719
+ fn test_archiving_in_chunks_returns_disjoint_block_range_locations ( ) {
1720
+ ic_ledger_suite_state_machine_tests:: archiving:: test_archiving_in_chunks_returns_disjoint_block_range_locations (
1721
+ ledger_wasm ( ) , encode_init_args,
1722
+ icp_archives,
1723
+ ic_ledger_suite_state_machine_tests:: archiving:: query_encoded_blocks,
1724
+ ic_ledger_suite_state_machine_tests:: archiving:: get_encoded_blocks,
1725
+ ) ;
1726
+ }
1727
+
1728
+ #[ test]
1729
+ fn test_icp_get_encoded_blocks_returns_multiple_archive_callbacks ( ) {
1730
+ ic_ledger_suite_state_machine_tests:: archiving:: test_get_blocks_returns_multiple_archive_callbacks (
1731
+ ledger_wasm ( ) ,
1732
+ encode_init_args,
1733
+ icp_archives,
1734
+ ic_ledger_suite_state_machine_tests:: archiving:: query_encoded_blocks,
1735
+ ) ;
1736
+ }
1737
+
1707
1738
mod metrics {
1708
1739
use crate :: { encode_init_args, encode_upgrade_args, ledger_wasm} ;
1709
1740
use ic_ledger_suite_state_machine_tests:: metrics:: LedgerSuiteType ;
0 commit comments