stefanha / sanlock

Forked from sanlock 2 months ago
Clone

bd061bf tests: add tests for clearing resource

2 files Authored by Vojtech Juranek 5 years ago, Committed by nsoffer 5 years ago,
    tests: add tests for clearing resource
    
    Add tests for write_resource() with parameter 'clear' set to True, which
    should result into clearing the resource (overwriting PAXOS_DISK_MAGIC
    with PAXOS_DISK_CLEAR). Also add tests for corner cases like calling
    clear on empty storage or with empty lockspace and resource name.
    
        
file modified
+4 -0
file modified
+47 -0