- 개발팀 전용 폴더 dev/ 생성 (standards, guides, quickstart, changes, deploys, data, history, dev_plans 이동) - 프론트엔드 전용 폴더 frontend/ 생성 (api/ → frontend/api-specs/) - 기획팀 폴더 requests/ 생성 - plans/ → dev/dev_plans/ 이름 변경 - README.md 신규 (사람용 안내), INDEX.md 재작성 (Claude Code용) - resources.md 신규 (노션 링크용, assets/brochure 이관 예정) - CURRENT_WORKS.md 삭제, TODO.md → dev/ 이동 - 전체 참조 경로 업데이트 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
86 lines
1.9 KiB
JSON
86 lines
1.9 KiB
JSON
{
|
|
"name": "인증 플로우 테스트",
|
|
"description": "로그인, 프로필 조회, 토큰 갱신, 로그아웃 플로우를 테스트합니다.",
|
|
"version": "1.0",
|
|
"config": {
|
|
"apiKey": "42Jfwc6EaRQ04GNRmLR5kzJp5UudSOzGGqjmdk1a",
|
|
"baseUrl": "https://api.sam.kr/api/v1",
|
|
"timeout": 30000,
|
|
"stopOnFailure": true
|
|
},
|
|
"variables": {
|
|
"user_id": "codebridgex",
|
|
"user_pwd": "code1234"
|
|
},
|
|
"steps": [
|
|
{
|
|
"id": "login",
|
|
"name": "로그인",
|
|
"method": "POST",
|
|
"endpoint": "/login",
|
|
"body": {
|
|
"user_id": "{{variables.user_id}}",
|
|
"user_pwd": "{{variables.user_pwd}}"
|
|
},
|
|
"extract": {
|
|
"accessToken": "$.access_token",
|
|
"refreshToken": "$.refresh_token"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.access_token": "@isString"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "get_profile",
|
|
"name": "프로필 조회",
|
|
"method": "GET",
|
|
"endpoint": "/users/me",
|
|
"headers": {
|
|
"Authorization": "Bearer {{login.accessToken}}"
|
|
},
|
|
"dependsOn": ["login"],
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.success": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "refresh_token",
|
|
"name": "토큰 갱신",
|
|
"method": "POST",
|
|
"endpoint": "/refresh",
|
|
"body": {
|
|
"refresh_token": "{{login.refreshToken}}"
|
|
},
|
|
"dependsOn": ["get_profile"],
|
|
"extract": {
|
|
"newToken": "$.access_token"
|
|
},
|
|
"expect": {
|
|
"status": [200],
|
|
"jsonPath": {
|
|
"$.access_token": "@isString"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "logout",
|
|
"name": "로그아웃",
|
|
"method": "POST",
|
|
"endpoint": "/logout",
|
|
"headers": {
|
|
"Authorization": "Bearer {{refresh_token.newToken}}"
|
|
},
|
|
"dependsOn": ["refresh_token"],
|
|
"expect": {
|
|
"status": [200, 204]
|
|
}
|
|
}
|
|
]
|
|
}
|