|
@@ -31,19 +31,12 @@ class MyTest(unittest.TestCase):
|
|
|
|
|
|
# 原子标签
|
|
|
def testComputer(self):
|
|
|
- reqForm("http://localhost:8080/test/dealWithTagCompute", {
|
|
|
- "computeType": 3,
|
|
|
- "dataSourceCode": "mysqlTestHu123",
|
|
|
- "dataSourceType": "mysql",
|
|
|
- "dimensionNo": "10449",
|
|
|
- "dimensionsName": "amount",
|
|
|
- "entityName": "实体测试HU421445",
|
|
|
- "entityNo": "EN882632280592436445",
|
|
|
- "primaryKey": "projectcode",
|
|
|
- "primaryTableName": "shopping",
|
|
|
- "tagName": "采购类型222",
|
|
|
- "tagNo": "TAG16693657062277747"
|
|
|
- })
|
|
|
+ reqForm("http://localhost:8080/test/dealWithTagCompute",
|
|
|
+ {"computeType": 3, "dataSourceCode": "tn_markting_db", "dataSourceType": "oracle",
|
|
|
+ "dimensionNo": "10610", "dimensionsName": "GENDER", "entityName": "tn营销基本信息",
|
|
|
+ "entityNo": "EN892456279547714785", "primaryKey": "CST_ID", "primaryTableName": "DC_CST_INFO",
|
|
|
+ "tagName": "性别0-未知的性别1-男性2-女性9-未说明的性别", "tagNo": "TAG16693487690724795",
|
|
|
+ "tenantId": "TENA883826260025957899"})
|
|
|
|
|
|
# 衍生标签
|
|
|
def testComputer2(self):
|
|
@@ -52,7 +45,8 @@ class MyTest(unittest.TestCase):
|
|
|
"entityName": "mysqlTestShopping33333(mysql数据源)", "entityNo": "EN875254841037837824",
|
|
|
"packageId": "rxdp/mySqlShoppingTest112", "primaryKey": "projectcode", "primaryTableName": "shopping",
|
|
|
"statisticsCycle": "year", "statisticsCycleTime": "createtime",
|
|
|
- "tagName": "衍生标签测试多数据源mysql33333", "tagNo": "TAG16674623867383022", "timeStyle": "TS2"})
|
|
|
+ "tagName": "衍生标签测试多数据源mysql33333", "tagNo": "TAG16674623867383022", "timeStyle": "TS2",
|
|
|
+ "tenantId": "test-test-test2"})
|
|
|
|
|
|
# sql标签
|
|
|
def testComputer3(self):
|
|
@@ -61,4 +55,4 @@ class MyTest(unittest.TestCase):
|
|
|
"entityName": "mysql实体HU123", "entityNo": "EN879274694203750264", "primaryKey": "business_code",
|
|
|
"primaryTableName": "shopping",
|
|
|
"tagCompuleSql": "SELECT projectcode AS businessCode,amount AS tagValue FROM shopping LIMIT ${startNum},${endNum}",
|
|
|
- "tagName": "SQL标签HU1112", "tagNo": "TAG16684123244372739"})
|
|
|
+ "tagName": "SQL标签HU1112", "tagNo": "TAG16684123244372739", "tenantId": "test-test-test3"})
|