a
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "connections",
|
||||
"description": "组件连接(Connection)测试",
|
||||
"type": "create_architecture",
|
||||
"params": {
|
||||
"title": "连接测试",
|
||||
"components": [
|
||||
{"name": "Frontend", "type": "frontend", "x": 100, "y": 100},
|
||||
{"name": "Backend", "type": "backend", "x": 300, "y": 100},
|
||||
{"name": "DB", "type": "database", "x": 500, "y": 100}
|
||||
],
|
||||
"connections": [
|
||||
{"from": "Frontend", "to": "Backend", "style": "solid", "label": "API"},
|
||||
{"from": "Backend", "to": "DB", "style": "dashed", "label": "SQL"}
|
||||
],
|
||||
"output": "__TMP__/04_connections.svg",
|
||||
"format": "svg"
|
||||
},
|
||||
"assertions": [
|
||||
{"check": "not_empty"},
|
||||
{"check": "contains", "text": "Frontend"},
|
||||
{"check": "contains", "text": "Backend"},
|
||||
{"check": "contains", "text": "DB"},
|
||||
{"check": "contains", "text": "API"},
|
||||
{"check": "contains", "text": "SQL"},
|
||||
{"check": "contains_tag", "tag": "<path", "min_count": 2}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user