Files
sam-docs/projects/api-integration/phase-4-integration/tc/auth-menus.json
kent 741e6677ab 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>
2025-12-21 04:08:37 +09:00

100 lines
2.3 KiB
JSON

{
"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
}
]
}