Ejemplo n.º 1
0
Archivo: admin.py Proyecto: rinfo/rdl
def test_all():
    if not role_is_active('admin'):
        return
    all()
    restart_apache()
    restart_tomcat()
    msg_sleep(10, " apache and tomcat restart")
    try:
        test()
    except:
        e = sys.exc_info()[0]
        print e
        sys.exit(1)
    finally:
        clean()
Ejemplo n.º 2
0
Archivo: checker.py Proyecto: rinfo/rdl
def test_all():
    if not role_is_active('service'):
        return
    all(deps="1", test="0")
    restart_tomcat()
    restart_apache()
    msg_sleep(20, "restart and tomcat apache")
    try:
        test()
    except:
        e = sys.exc_info()[0]
        print e
        sys.exit(1)
    finally:
        clean()
Ejemplo n.º 3
0
Archivo: service.py Proyecto: rinfo/rdl
def test_all():
    if not role_is_active('service'):
        return
    all(deps="1", test="0")
    restart_apache()
    restart_tomcat()
    msg_sleep(20, "restart apache, tomcat and wait for service to start")
    try:
        #ping_start_collect()
        #msg_sleep(60,"collect feed")
        test()
    except:
        e = sys.exc_info()[0]
        print e
        sys.exit(1)
    finally:
        clean()
Ejemplo n.º 4
0
Archivo: main.py Proyecto: rinfo/rdl
def test_all():
    if not role_is_active('service'):
        return
    all(deps="1", test="0")
    restart_apache()
    #if env.target=='regression':
    #    install_regression_data()
    #else:
    restart_tomcat()
    msg_sleep(60, "restart apache, tomcat and wait for service to start, and depot consistency check")
    try:
        #ping_start_collect_admin()
        #msg_sleep(10,"collect feed")
        #ping_start_collect_feed()
        #msg_sleep(60,"collect feed")
        test()
    except:
        e = sys.exc_info()[0]
        print e
        sys.exit(1)
    finally:
        clean()
Ejemplo n.º 5
0
def install_sources():
    install_regression_source()
    install_skrapat_source()
    configure_sites()
    restart_apache()