From 458f422163e7ea61eda3beb82e95bde8174bf88b Mon Sep 17 00:00:00 2001 From: liyang Date: Fri, 21 Jun 2024 11:23:55 +0800 Subject: [PATCH] * [task#121208, doing, 0.5h, 1h] Fix cne module unit test. --- module/cne/test/lib/cne.unittest.class.php | 6 +++--- module/cne/test/model/certinfo.php | 2 +- module/cne/test/model/cnemetrics.php | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/module/cne/test/lib/cne.unittest.class.php b/module/cne/test/lib/cne.unittest.class.php index 1817b754b0..3418309db7 100755 --- a/module/cne/test/lib/cne.unittest.class.php +++ b/module/cne/test/lib/cne.unittest.class.php @@ -18,9 +18,9 @@ class cneTest su('admin'); global $tester, $config; - $config->CNE->api->host = 'http://10.0.7.210:32380'; - $config->CNE->api->token = 'JMz7HCoQ3WHoYbpNyYNpvMfHqde9ugtV'; - $config->CNE->app->domain = 'dops.corp.cc'; + $config->CNE->api->host = 'http://20.205.128.72:32380'; + $config->CNE->api->token = 'esVqIv7c1LxMCwlCdCBv73LZTYANoApK'; + $config->CNE->app->domain = 'pgeo.corp.cc'; $this->objectModel = $tester->loadModel('cne'); } diff --git a/module/cne/test/model/certinfo.php b/module/cne/test/model/certinfo.php index d7e31ea8a8..59dc6f8950 100755 --- a/module/cne/test/model/certinfo.php +++ b/module/cne/test/model/certinfo.php @@ -25,4 +25,4 @@ $certName = 'fail-name'; r($cneModel->certInfoTest($certName)) && p() && e('0'); // 证书名称错误 $certName = 'tls-haogs-cn'; -r($cneModel->certInfoTest($certName)) && p('sans:0') && e('dops.corp.cc'); // 证书名称正确 \ No newline at end of file +r($cneModel->certInfoTest($certName)) && p('sans:0') && e('pgeo.corp.cc'); // 证书名称正确 diff --git a/module/cne/test/model/cnemetrics.php b/module/cne/test/model/cnemetrics.php index dbaa815ee1..f12775b279 100755 --- a/module/cne/test/model/cnemetrics.php +++ b/module/cne/test/model/cnemetrics.php @@ -14,10 +14,10 @@ cid=1 include dirname(__FILE__, 5) . '/test/lib/init.php'; global $tester, $config; -$config->CNE->api->host = 'http://10.0.7.210:32380'; -$config->CNE->api->token = 'JMz7HCoQ3WHoYbpNyYNpvMfHqde9ugtV'; -$config->CNE->app->domain = 'dops.corp.cc'; +$config->CNE->api->host = 'http://20.205.128.72:32380'; +$config->CNE->api->token = 'esVqIv7c1LxMCwlCdCBv73LZTYANoApK'; +$config->CNE->app->domain = 'pgeo.corp.cc'; $cneModel = $tester->loadModel('cne'); -r($cneModel->cneMetrics()) && p('status') && e('normal'); // 获取CNE平台的集群度量 \ No newline at end of file +r($cneModel->cneMetrics()) && p('status') && e('normal'); // 获取CNE平台的集群度量