docs: 인증/메뉴 TC 검증완료 + 품목관리 TC 추가

- auth-login.json: 로그인, 토큰 갱신, 로그아웃 검증 
- auth-menus.json: 메뉴 목록, 동기화, 권한 매트릭스 검증 
- items-crud.json: 품목 조회 테스트 (조회 전용)
- items-bom.json: BOM 조회/트리/요약/검증 테스트

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-21 04:08:37 +09:00
parent 9c8809c43a
commit 741e6677ab
5 changed files with 440 additions and 3 deletions

View File

@@ -11,8 +11,8 @@
|------|-----|
| **현재 Phase** | Phase 4 진행 중 |
| **현재 작업** | 각 API 실제 호출 검증 |
| **진행률** | 75% |
| **다음 액션** | 기타 기능 API 검증 (게시판, 설정, 대시보드) |
| **진행률** | 80% |
| **다음 액션** | 품목 관리 API 검증 |
| **완료 기준** | ⚠️ 소스 존재가 아닌 **실제 API 호출 검증** |
---
@@ -49,7 +49,9 @@
> ⚠️ **완료 기준**: 소스 존재가 아닌 **실제 API 호출 검증 후** 체크
- [ ] 인증/메뉴 - 실제 API 호출 검증
- [x] 인증/메뉴 - ✅ 전체 검증 완료
- ✅ auth-login.json ✔️ 검증완료
- ✅ auth-menus.json ✔️ 검증완료
- [ ] 품목 관리 - 실제 API 호출 검증
- [x] 거래처/판매 - 실제 API 호출 검증 ✅ (POST /v1/pricing 완료)
- [x] 인사/재무 - ✅ 전체 검증 완료

View File

@@ -0,0 +1,87 @@
{
"name": "Auth Login Test",
"description": "인증 테스트 (로그인, 토큰 갱신, 로그아웃)",
"version": "1.0",
"config": {
"baseUrl": "",
"timeout": 30000,
"stopOnFailure": false
},
"variables": {
"user_id": "{{$env.FLOW_TESTER_USER_ID}}",
"user_pwd": "{{$env.FLOW_TESTER_USER_PWD}}"
},
"steps": [
{
"id": "login",
"name": "1. 로그인",
"method": "POST",
"endpoint": "/api/v1/login",
"body": {
"user_id": "{{user_id}}",
"user_pwd": "{{user_pwd}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.access_token": "@isString",
"$.user": "@isObject"
}
},
"extract": {
"token": "$.access_token",
"refreshToken": "$.refresh_token",
"userId": "$.user.id"
}
},
{
"id": "login_invalid",
"name": "2. 잘못된 비밀번호 로그인",
"method": "POST",
"endpoint": "/api/v1/login",
"body": {
"user_id": "{{user_id}}",
"user_pwd": "wrong_password_123"
},
"expect": {
"status": [401, 422]
},
"continueOnFailure": true
},
{
"id": "refresh_token",
"name": "3. 토큰 갱신",
"method": "POST",
"endpoint": "/api/v1/refresh",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"body": {
"refresh_token": "{{login.refreshToken}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.access_token": "@isString"
}
},
"extract": {
"newToken": "$.access_token"
},
"continueOnFailure": true
},
{
"id": "logout",
"name": "4. 로그아웃",
"method": "POST",
"endpoint": "/api/v1/logout",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200, 204]
},
"continueOnFailure": true
}
]
}

View File

@@ -0,0 +1,99 @@
{
"name": "Auth Menus Test",
"description": "메뉴/권한 테스트 (목록, 트리, 권한 매트릭스)",
"version": "1.0",
"config": {
"baseUrl": "",
"timeout": 30000,
"stopOnFailure": false
},
"variables": {
"user_id": "{{$env.FLOW_TESTER_USER_ID}}",
"user_pwd": "{{$env.FLOW_TESTER_USER_PWD}}"
},
"steps": [
{
"id": "login",
"name": "1. 로그인",
"method": "POST",
"endpoint": "/api/v1/login",
"body": {
"user_id": "{{user_id}}",
"user_pwd": "{{user_pwd}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.access_token": "@isString"
}
},
"extract": {
"token": "$.access_token",
"userId": "$.user.id"
}
},
{
"id": "list_menus",
"name": "2. 메뉴 목록 조회",
"method": "GET",
"endpoint": "/api/v1/menus",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
}
},
{
"id": "menu_sync_status",
"name": "3. 메뉴 동기화 상태",
"method": "GET",
"endpoint": "/api/v1/menus/sync-status",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
},
"continueOnFailure": true
},
{
"id": "available_global_menus",
"name": "4. 사용 가능한 글로벌 메뉴",
"method": "GET",
"endpoint": "/api/v1/menus/available-global",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
},
"continueOnFailure": true
},
{
"id": "user_menu_matrix",
"name": "5. 사용자 권한 매트릭스",
"method": "GET",
"endpoint": "/api/v1/permissions/users/{{login.userId}}/menu-matrix",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
},
"continueOnFailure": true
}
]
}

View File

@@ -0,0 +1,133 @@
{
"name": "Items BOM Test",
"description": "BOM 관리 테스트 (조회, 트리, 요약, 검증)",
"version": "1.0",
"config": {
"baseUrl": "",
"timeout": 30000,
"stopOnFailure": false
},
"variables": {
"user_id": "{{$env.FLOW_TESTER_USER_ID}}",
"user_pwd": "{{$env.FLOW_TESTER_USER_PWD}}"
},
"steps": [
{
"id": "login",
"name": "1. 로그인",
"method": "POST",
"endpoint": "/api/v1/login",
"body": {
"user_id": "{{user_id}}",
"user_pwd": "{{user_pwd}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.access_token": "@isString"
}
},
"extract": {
"token": "$.access_token"
}
},
{
"id": "list_items",
"name": "2. 품목 목록 조회 (BOM 있는 품목 찾기)",
"method": "GET",
"endpoint": "/api/v1/items?page=1&per_page=10&item_type=FG",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
},
"extract": {
"firstItemId": "$.data.data[0].id"
}
},
{
"id": "get_bom_list",
"name": "3. BOM 목록 조회",
"method": "GET",
"endpoint": "/api/v1/items/{{list_items.firstItemId}}/bom",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
},
"continueOnFailure": true
},
{
"id": "get_bom_tree",
"name": "4. BOM 트리 조회",
"method": "GET",
"endpoint": "/api/v1/items/{{list_items.firstItemId}}/bom/tree",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
},
"continueOnFailure": true
},
{
"id": "get_bom_summary",
"name": "5. BOM 요약 조회",
"method": "GET",
"endpoint": "/api/v1/items/{{list_items.firstItemId}}/bom/summary",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
},
"continueOnFailure": true
},
{
"id": "validate_bom",
"name": "6. BOM 검증",
"method": "GET",
"endpoint": "/api/v1/items/{{list_items.firstItemId}}/bom/validate",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
},
"continueOnFailure": true
},
{
"id": "get_bom_categories",
"name": "7. BOM 카테고리 목록",
"method": "GET",
"endpoint": "/api/v1/items/{{list_items.firstItemId}}/bom/categories",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
},
"continueOnFailure": true
}
]
}

View File

@@ -0,0 +1,116 @@
{
"name": "Items CRUD Test",
"description": "품목 관리 테스트 (조회 위주)",
"version": "1.0",
"config": {
"baseUrl": "",
"timeout": 30000,
"stopOnFailure": false
},
"variables": {
"user_id": "{{$env.FLOW_TESTER_USER_ID}}",
"user_pwd": "{{$env.FLOW_TESTER_USER_PWD}}"
},
"steps": [
{
"id": "login",
"name": "1. 로그인",
"method": "POST",
"endpoint": "/api/v1/login",
"body": {
"user_id": "{{user_id}}",
"user_pwd": "{{user_pwd}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.access_token": "@isString"
}
},
"extract": {
"token": "$.access_token"
}
},
{
"id": "list_items",
"name": "2. 품목 목록 조회",
"method": "GET",
"endpoint": "/api/v1/items?page=1&size=10&type=FG",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
},
"extract": {
"firstItemId": "$.data.data[0].id",
"firstItemCode": "$.data.data[0].code"
}
},
{
"id": "list_items_by_type",
"name": "3. 품목 목록 조회 (타입별 FG)",
"method": "GET",
"endpoint": "/api/v1/items?page=1&size=10&type=FG",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
}
},
{
"id": "list_items_search",
"name": "4. 품목 검색",
"method": "GET",
"endpoint": "/api/v1/items?q=test&size=10&type=FG",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
}
},
{
"id": "get_item_by_id",
"name": "5. 품목 상세 조회 (ID)",
"method": "GET",
"endpoint": "/api/v1/items/{{list_items.firstItemId}}?type=FG",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
},
"continueOnFailure": true
},
{
"id": "get_item_by_code",
"name": "6. 품목 상세 조회 (Code)",
"method": "GET",
"endpoint": "/api/v1/items/code/{{list_items.firstItemCode}}?type=FG",
"headers": {
"Authorization": "Bearer {{login.token}}"
},
"expect": {
"status": [200],
"jsonPath": {
"$.success": true
}
},
"continueOnFailure": true
}
]
}