Files
sam-docs/plans/flow-tests/items-bom-test.json
hskwon 011bcafcb1 docs: Items BOM 테스트 및 테이블 통합 계획 추가
- Items BOM API 플로우 테스트 JSON 추가 (items-bom-test.json)
  - GET /items/{id} BOM 확장 데이터 검증
  - GET /items/{id}/bom, /items/{id}/bom/tree 엔드포인트 테스트
- Items 테이블 통합 계획 문서 추가 (items-table-unification-plan.md)
  - Products/Materials → Items 통합 마이그레이션 설계
- MNG 필드 관리 계획 필수 참조 문서 섹션 보강
2025-12-11 23:15:43 +09:00

108 lines
2.7 KiB
JSON

{
"name": "Items BOM 데이터 조회 테스트",
"description": "GET /items/{id} 호출 시 BOM 데이터가 확장되어 반환되는지 테스트 (child_item_code, child_item_name, unit 포함)",
"version": "1.0",
"config": {
"baseUrl": "",
"timeout": 30000,
"stopOnFailure": true
},
"variables": {
"user_id": "{{$env.FLOW_TESTER_USER_ID}}",
"user_pwd": "{{$env.FLOW_TESTER_USER_PWD}}",
"test_item_id": "818",
"test_item_type": "FG"
},
"steps": [
{
"id": "login",
"name": "로그인",
"method": "POST",
"endpoint": "/login",
"body": {
"user_id": "{{user_id}}",
"user_pwd": "{{user_pwd}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.access_token": "@isString"
}
},
"extract": {
"token": "$.access_token"
}
},
{
"id": "get_items_list",
"name": "품목 목록 조회 (FG/PT 타입)",
"method": "GET",
"endpoint": "/items?type=FG,PT&size=10",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
}
},
{
"id": "get_item_detail",
"name": "품목 상세 조회 (BOM 확장 확인)",
"method": "GET",
"endpoint": "/items/{{test_item_id}}?item_type={{test_item_type}}",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true,
"$.data.id": "@isNumber",
"$.data.item_type": "@isString",
"$.data.code": "@isString",
"$.data.name": "@isString"
}
},
"extract": {
"item_id": "$.data.id",
"item_code": "$.data.code",
"item_bom": "$.data.bom"
}
},
{
"id": "get_item_bom_api",
"name": "Items BOM API 조회",
"description": "GET /items/{id}/bom 엔드포인트 테스트",
"method": "GET",
"endpoint": "/items/{{test_item_id}}/bom",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
}
},
{
"id": "get_item_bom_tree",
"name": "Items BOM 트리 조회",
"description": "GET /items/{id}/bom/tree 엔드포인트 테스트",
"method": "GET",
"endpoint": "/items/{{test_item_id}}/bom/tree",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
}
}
]
}