* [task#121208, doing, 0.5h, 1h] Fix cne module unit test.

This commit is contained in:
liyang
2024-06-21 11:28:14 +08:00
committed by 曹延义
parent f7c5d094a1
commit 458f422163
3 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -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');
}
+1 -1
View File
@@ -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'); // 证书名称正确
r($cneModel->certInfoTest($certName)) && p('sans:0') && e('pgeo.corp.cc'); // 证书名称正确
+4 -4
View File
@@ -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平台的集群度量
r($cneModel->cneMetrics()) && p('status') && e('normal'); // 获取CNE平台的集群度量