* Adjust unit test for zahost.

This commit is contained in:
caoyanyi
2024-04-12 15:29:35 +08:00
parent 0e57dd2163
commit 710c7da4aa
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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'); //测试正常域名得到的结果
+1 -1
View File
@@ -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 = '';
+1 -1
View File
@@ -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 = '';