23 lines
663 B
JSON
23 lines
663 B
JSON
{
|
|
"name": "containers",
|
|
"description": "分组容器(Container)测试",
|
|
"type": "create_architecture",
|
|
"params": {
|
|
"title": "容器测试",
|
|
"components": [
|
|
{"name": "App", "type": "frontend", "x": 120, "y": 120},
|
|
{"name": "Service", "type": "backend", "x": 120, "y": 200}
|
|
],
|
|
"containers": [
|
|
{"name": "业务层", "x": 80, "y": 80, "width": 200, "height": 200, "color": "#34d399"}
|
|
],
|
|
"output": "__TMP__/05_containers.svg",
|
|
"format": "svg"
|
|
},
|
|
"assertions": [
|
|
{"check": "not_empty"},
|
|
{"check": "contains", "text": "业务层"},
|
|
{"check": "contains_tag", "tag": "<rect", "min_count": 3}
|
|
]
|
|
}
|