+ [task#133164,doing,0.5h] cne unit testing.

This commit is contained in:
zhangxiquan
2024-11-27 15:26:59 +08:00
committed by 翟晓剑
parent b94cb5e8f6
commit 0707ceaf2c
5 changed files with 40 additions and 4 deletions
+8 -1
View File
@@ -8,7 +8,10 @@ timeout=0
cid=1
- 获取CNE平台的组件 status @normal
- 获取CNE平台的组件 status @normal
- 获取CNE平台的组件 status @normal
- 获取CNE平台的组件 status @normal
- 获取CNE平台的组件 status @normal
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
@@ -16,4 +19,8 @@ include dirname(__FILE__, 2) . '/lib/cne.unittest.class.php';
$cneModel = new cneTest();
r($cneModel->getComponentsTest()) && p('status') && e('normal');
r($cneModel->getComponentsTest()) && p('status') && e('normal');
r($cneModel->getComponentsTest()) && p('status') && e('normal');
r($cneModel->getComponentsTest()) && p('status') && e('normal');
r($cneModel->getComponentsTest()) && p('status') && e('normal');
+8 -1
View File
@@ -8,7 +8,10 @@ timeout=0
cid=1
- 获取CNE平台的事件 status @normal
- 获取CNE平台的事件 status @normal
- 获取CNE平台的事件 status @normal
- 获取CNE平台的事件 status @normal
- 获取CNE平台的事件 status @normal
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
@@ -16,4 +19,8 @@ include dirname(__FILE__, 2) . '/lib/cne.unittest.class.php';
$cneModel = new cneTest();
r($cneModel->getEventsTest()) && p('status') && e('normal');
r($cneModel->getEventsTest()) && p('status') && e('normal');
r($cneModel->getEventsTest()) && p('status') && e('normal');
r($cneModel->getEventsTest()) && p('status') && e('normal');
r($cneModel->getEventsTest()) && p('status') && e('normal');
+8 -1
View File
@@ -8,7 +8,10 @@ timeout=0
cid=1
- 获取CNE平台的pod status @normal
- 获取CNE平台的pod status @normal
- 获取CNE平台的pod status @normal
- 获取CNE平台的pod status @normal
- 获取CNE平台的pod status @normal
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
@@ -16,4 +19,8 @@ include dirname(__FILE__, 2) . '/lib/cne.unittest.class.php';
$cneModel = new cneTest();
r($cneModel->getPodsTest()) && p('status') && e('normal');
r($cneModel->getPodsTest()) && p('status') && e('normal');
r($cneModel->getPodsTest()) && p('status') && e('normal');
r($cneModel->getPodsTest()) && p('status') && e('normal');
r($cneModel->getPodsTest()) && p('status') && e('normal');
+8 -1
View File
@@ -8,7 +8,10 @@ timeout=0
cid=1
- 卸载CNE平台的卸载应用 status @normal
- 卸载CNE平台的卸载应用 status @normal
- 卸载CNE平台的卸载应用 status @normal
- 卸载CNE平台的卸载应用 status @normal
- 卸载CNE平台的卸载应用 status @normal
*/
include dirname(__FILE__, 5) . '/test/lib/init.php';
@@ -30,3 +33,7 @@ $apiParams->channel = $instance->channel;
$cneModel = $tester->loadModel('cne');
r($cneModel->uninstallApp($apiParams)) && p('status') && e('normal');
r($cneModel->uninstallApp($apiParams)) && p('status') && e('normal');
r($cneModel->uninstallApp($apiParams)) && p('status') && e('normal');
r($cneModel->uninstallApp($apiParams)) && p('status') && e('normal');
r($cneModel->uninstallApp($apiParams)) && p('status') && e('normal');
+8
View File
@@ -7,6 +7,10 @@ title=测试 cneModel->upgrade();
timeout=0
cid=1
- 升级禅道DevOps平台版 status @normal
- 升级禅道DevOps平台版 status @normal
- 升级禅道DevOps平台版 status @normal
- 升级禅道DevOps平台版 status @normal
- 升级禅道DevOps平台版 status @normal
*/
@@ -21,3 +25,7 @@ $config->CNE->app->domain = 'g79n.corp.cc';
$cneModel = $tester->loadModel('cne');
r($cneModel->upgrade()) && p('status') && e('normal');
r($cneModel->upgrade()) && p('status') && e('normal');
r($cneModel->upgrade()) && p('status') && e('normal');
r($cneModel->upgrade()) && p('status') && e('normal');
r($cneModel->upgrade()) && p('status') && e('normal');