Skip to content

Commit

Permalink
Add Debug Digest tests for AOF scenarios
Browse files Browse the repository at this point in the history
Signed-off-by: Nihal Mehta <[email protected]>
  • Loading branch information
nnmehta committed Nov 15, 2024
1 parent b8754a6 commit 67c5c09
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_aofrewrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ def test_basic_aofrewrite_and_restore(self):
bf_info_result_1 = client.execute_command('BF.INFO testSave')
assert(len(bf_info_result_1)) != 0
curr_item_count_1 = client.info_obj().num_keys()

# cmd debug digest
client.execute_command('DEBUG', 'DIGEST')
debug_original = client.execute_command('DEBUG DIGEST-VALUE testSave')

# save aof, restart sever
client.bgrewriteaof()
self.server.wait_for_action_done(ValkeyAction.AOF_REWRITE)
Expand All @@ -36,6 +39,8 @@ def test_basic_aofrewrite_and_restore(self):
assert bf_exists_result_2 == 1
bf_info_result_2 = client.execute_command('BF.INFO testSave')
assert bf_info_result_2 == bf_info_result_1
debug_copy = client.execute_command('DEBUG DIGEST-VALUE testSave')
assert debug_original == debug_copy
client.execute_command('DEL testSave')

def test_aofrewrite_bloomfilter_metrics(self):
Expand Down

0 comments on commit 67c5c09

Please sign in to comment.