示例#1
0
文件: runlists.py 项目: allfs/autooam
def run_module_failover(vers, vmitype, num = None, enterprise = True):
    '''Runs moduleFailover on all configs on all supported boxtypes.'''
    runlist = []
  
    # root user
    cfg = configs.multi_1um_2pm(vers)
    cfg['boxtype'] = 'cal-precise64'
    cfg['storage'] = 'external'
    cfg['enterprise'] = enterprise
    runlist.append( (cfg, 'vagrant', tests.moduleFailover()) )

    cfg = configs.multi_2umpm_combo(vers)
    cfg['boxtype'] = 'cal-centos6'
    cfg['storage'] = 'external'
    cfg['enterprise'] = enterprise
    runlist.append( (cfg, 'vagrant', tests.moduleFailover()) )

    cfg = configs.multi_1um_2pm(vers)
    cfg['boxtype'] = 'cal-debian6'
    cfg['storage'] = 'external'
    cfg['binary'] = True
    cfg['enterprise'] = enterprise
    runlist.append( (cfg, 'vagrant', tests.moduleFailover()) )

    cfg = configs.multi_1um_2pm(vers)
    cfg['boxtype'] = 'cal-centos6'
    cfg['datdup'] = True
    cfg['enterprise'] = enterprise
    runlist.append( (cfg, 'vagrant', tests.moduleFailover()) )

    cfg = configs.multi_1um_2pm(vers)
    cfg['boxtype'] = 'cal-centos6'
    cfg['datdup'] = True
    cfg['binary'] = True
    cfg['enterprise'] = enterprise
    runlist.append( (cfg, 'vagrant', tests.moduleFailover()) )

    # non-root user
    cfg = configs.multi_2umpm_combo(vers)
    cfg['idbuser'] = '******'
    cfg['boxtype'] = 'cal-centos58'
    cfg['storage'] = 'external'
    cfg['enterprise'] = enterprise
    cfg['em'] = None # guarantee no EM since this is a "legacy" boxtype
    runlist.append( (cfg, 'vagrant', tests.moduleFailover()) )

    cfg = configs.multi_1um_2pm(vers)
    cfg['idbuser'] = '******'
    cfg['boxtype'] = 'cal-lucid64'
    cfg['storage'] = 'external'
    cfg['enterprise'] = enterprise
    cfg['em'] = None # guarantee no EM since this is a "legacy" boxtype
    runlist.append( (cfg, 'vagrant', tests.moduleFailover()) )

    return runlist
示例#2
0
文件: runlists.py 项目: allfs/autooam
def run_hadoop_basic(vers, vmitype, num = None, enterprise = True):
    '''Run basic002 on the supported Hadoop configurations.'''
    
    # standard root package installs
    cfg = _base_hadoop_1um_2pm_config( vers, 'cal-centos6', enterprise ) 
    runlist = [ (cfg, 'vagrant', tests.basic002()) ]
    runlist.append( (cfg, 'vagrant', tests.moduleFailover(testpm1_fail = False)) )

    cfg = _base_hadoop_1um_2pm_config( vers, 'cal-precise64', enterprise ) 
    runlist.append( (cfg, 'vagrant', tests.basic002()) )
    runlist.append( (cfg, 'vagrant', tests.moduleFailover(testpm1_fail = False)) )

    # standard root binary installs
    cfg = _base_hadoop_1um_2pm_config( vers, 'cal-centos6', enterprise ) 
    cfg['binary'] = True
    runlist.append( (cfg, 'vagrant', tests.basic002()) )
    runlist.append( (cfg, 'vagrant', tests.moduleFailover(testpm1_fail = False)) )

    cfg = _base_hadoop_1um_2pm_config( vers, 'cal-precise64', enterprise ) 
    cfg['binary'] = True
    runlist.append( (cfg, 'vagrant', tests.basic002()) )
    runlist.append( (cfg, 'vagrant', tests.moduleFailover(testpm1_fail = False)) )
    
    return runlist