b590f44 TEST_TOOLS_COLONDB: Add tests for sss_colondb_*

2 files Authored by pcech 8 years ago, Committed by lslebodn 8 years ago,
    TEST_TOOLS_COLONDB: Add tests for sss_colondb_*
    
    There are three functions at API of colondb wrapper:
     * sss_colondb_open()
     * sss_colondb_readline()
     * sss_colondb_writeline()
    
    This patch adds tests for all of them.
    
    We test those cases:
     * open nonexisting file for read
     * open nonexisting file for write
     * open existing empty file for read
     * open existing file with records for read
     * open existing empty file for write
     * open existing file with records for write
     * write to empty file
     * write to file with existing records
     * sss_colondb_open()
     * sss_colondb_readline()
     * sss_colondb_write_line()
     * write to empty file and read it
    
    Resolves:
    https://fedorahosted.org/sssd/ticket/2764
    
    Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
    
        
file modified
+17 -0