Exemple #1
0
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()
Exemple #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()
Exemple #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()
Exemple #4
0
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()
Exemple #5
0
def install_sources():
    install_regression_source()
    install_skrapat_source()
    configure_sites()
    restart_apache()