Пример #1
0
Файл: admin.py Проект: 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()
Пример #2
0
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()
Пример #3
0
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()
Пример #4
0
Файл: main.py Проект: 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()
Пример #5
0
def install_sources():
    install_regression_source()
    install_skrapat_source()
    configure_sites()
    restart_apache()