def test(i):
    """

    Input:  {
            }

    Output: {
              return       - return code =  0, if successful
                                         >  0, if error
              (error)      - error text if return > 0
            }

    """

    o=i.get('out','')

    r=ck.access_index_server({'request':'TEST', 'dict':{}})
    if r['return']>0: return r
    dd=r['dict']

    status=dd.get('status',0)
    if status!=200:
       return {'return':1, 'error':'returned status is not 200'}

    version=dd.get('version',{}).get('number','')

    if o=='con':
       ck.out('Indexing server is working. Version = '+version+'.')

    return r
def test ( i ) : o = i . get ( 'out' , '' ) r = ck . access_index_server ( { 'request' : 'TEST' , 'dict' : { } } ) if r [ 'return' ] > 0 : return r dd = r [ 'dict' ] status = dd . get ( 'status' , 0 ) if status != 200 : return { 'return' : 1 , 'error' : 'returned status is not 200' } version = dd . get ( 'version' , { } ) . get ( 'number' , '' ) if o == 'con' : ck . out ( 'Indexing server is working. Version = ' + version + '.' ) return r
Input:  {
            }

    Output: {
              return       - return code =  0, if successful
                                         >  0, if error
              (error)      - error text if return > 0
            }