From 710c7da4aa11d30d0743990605fc5a41ff6ecbd3 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Fri, 12 Apr 2024 15:29:32 +0800 Subject: [PATCH] * Adjust unit test for zahost. --- module/zahost/test/model/checkaddress.php | 2 +- module/zahost/test/model/create.php | 2 +- module/zahost/test/model/update.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/zahost/test/model/checkaddress.php b/module/zahost/test/model/checkaddress.php index 144dd8866e..0a8275e481 100755 --- a/module/zahost/test/model/checkaddress.php +++ b/module/zahost/test/model/checkaddress.php @@ -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'); //测试正常域名得到的结果 diff --git a/module/zahost/test/model/create.php b/module/zahost/test/model/create.php index f84a1c5131..038e250e76 100755 --- a/module/zahost/test/model/create.php +++ b/module/zahost/test/model/create.php @@ -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 = ''; diff --git a/module/zahost/test/model/update.php b/module/zahost/test/model/update.php index 0e927c37a3..ba10c6962a 100755 --- a/module/zahost/test/model/update.php +++ b/module/zahost/test/model/update.php @@ -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 = '';