* Adjust unit test for zahost.
This commit is contained in:
@@ -16,7 +16,7 @@ include dirname(__FILE__, 5) . '/test/lib/init.php';
|
||||
include dirname(__FILE__, 2) . '/zahost.class.php';
|
||||
su('admin');
|
||||
|
||||
$addressList = array('a', 'www.baidu.com', '10.0.1.222');
|
||||
$addressList = array('a', 'www.baidu.com', '10.0.0.133');
|
||||
|
||||
$zahost = new zahostTest();
|
||||
r($zahost->checkAddress($addressList[1])) && p('') && e('1'); //测试正常域名得到的结果
|
||||
|
||||
@@ -33,7 +33,7 @@ $hostInfo = new stdclass();
|
||||
$hostInfo->vsoft = 'kvm';
|
||||
$hostInfo->hostType = 'physical';
|
||||
$hostInfo->name = '';
|
||||
$hostInfo->extranet = '10.0.1.222';
|
||||
$hostInfo->extranet = '10.0.0.133';
|
||||
$hostInfo->cpuCores = '';
|
||||
$hostInfo->memory = '';
|
||||
$hostInfo->diskSize = '';
|
||||
|
||||
@@ -36,7 +36,7 @@ $hostInfo->id = 1;
|
||||
$hostInfo->vsoft = 'kvm';
|
||||
$hostInfo->hostType = 'physical';
|
||||
$hostInfo->name = '';
|
||||
$hostInfo->extranet = '10.0.1.222';
|
||||
$hostInfo->extranet = '10.0.0.133';
|
||||
$hostInfo->cpuCores = '';
|
||||
$hostInfo->memory = '';
|
||||
$hostInfo->diskSize = '';
|
||||
|
||||
Reference in New Issue
Block a user