* [task#121208, doing, 0.5h, 1h] Fix cne module unit test.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
@@ -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'); // 证书名称正确
|
||||
|
||||
@@ -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平台的集群度量
|
||||
|
||||
Reference in New Issue
Block a user