Example #1
0
api_key = get_apikey(config)
stdurl = get_url(config, api_key[1])
link_iso = 'http://20.10.1.101/dailybuilds/1.4.0.p5/Apr22-1.4.0.891/ElastiStor_1_4_0_Apr22_1.4.0.891.iso'

startTime = ctime()
verify_tsmIP = verify_tsmIP_from_configFile(config, stdurl)
endTime = ctime()
if verify_tsmIP[0] == 'FAILED':
    logAndresult(testcase, 'BLOCKED', verify_tsmIP[1], startTime, endTime)

tsmIP = verify_tsmIP[1]
tsmInterface = verify_tsmIP[2]

#---------create pool--------
poolName = 'iPoolspace'
pool_create =  pool_creation_flow(stdurl, poolName, 2, 'SAS', 'mirror')
endTime = ctime()
if pool_create[0] == 'FAILED':
    logAndresult(testcase, 'BLOCKED', pool_create[1], startTime, endTime)
logging.debug('Pool "%s" is created successfully', poolName)
#------------------------------------
#----------create tsm---------------------
startTime = ctime()
acctName = 'Account'
tsm_params = {'name': 'iTsmSpace', 'ipaddress': tsmIP, 'tntinterface': tsmInterface}
tsm_create = tsm_creation_flow(stdurl, poolName, acctName, tsm_params)
endTime = ctime()
if tsm_create[0] == 'FAILED':
    logAndresult(testcase, 'BLOCKED', tsm_create[1], startTime, endTime)
logging.debug('%s', tsm_create[1])
#----------------------------------------------
Example #2
0
        endTime = ctime()
        msg = 'Size is not updated on client side, current size is : %s' % size
        logAndresult(tcName, 'FAILED', msg, startTime, endTime)


#******************************************************************************

#**************PREREQUSITES: POOL AND VSM CREATION*****************************

####-------------------------Pool creation---------------------------------####
poolName = 'nPoolspace'
pool_paras = {'name': poolName, 'grouptype': pool_type, \
                'iops': pool_iops}

startTime = ctime()
pool_create = pool_creation_flow(stdurl, pool_paras, no_of_disk, disk_type)
endTime = ctime()
if pool_create[0] == 'FAILED':
    logAndresult(tcName, 'BLOCKED', pool_create[1], startTime, endTime)
logging.debug('Pool "%s" is created successfully', poolName)

####--------------------------Vsm creation---------------------------------####
startTime = ctime()
tsm_params = {'name': 'nTsmSpace', 'ipaddress': tsmIP, 'totaliops': pool_iops, \
        'tntinterface': tsmInterface}
tsm_create = tsm_creation_flow(stdurl, poolName, acctName, tsm_params)
endTime = ctime()
if tsm_create[0] == 'FAILED':
    logAndresult(tcName, 'BLOCKED', tsm_create[1], startTime, endTime)
logging.debug('%s', tsm_create[1])
#******************************************************************************