3 Commits

Author SHA1 Message Date
kjh2064 65241c453c test: use dedicated test account for e2e responsive testing
Previously, responsive tests used the 'admin' production account,
which violates testing best practices and can contaminate live data.

Changes:
- Add test_admin account (password: test123456) to V003 migration
- Update all responsive test cases to use test_admin instead of admin
- Add setupTestData() helper for API-based test data preparation
- Improve test isolation and repeatability
- Document that test account is for development/testing only

Test improvements:
- Tests now use separate test_admin account
- Tests can run repeatedly without affecting production admin
- API layer ready for test data setup via authorization tokens
- Test data can be created/cleaned up programmatically

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 11:31:37 +09:00
kjh2064 e7e01d0cd8 마이그레이션 및 보안 수정
TaxBaik CI/CD / build-and-deploy (push) Failing after 15s
- MigrationRunner: 이미 존재하는 테이블에 대한 "relation already exists" 오류 처리
- V002, V003 마이그레이션: ON CONFLICT DO NOTHING으로 멱등성 보장
- Web, Admin Program.cs: app.UseAntiforgery() 미들웨어 추가 (anti-forgery 토큰 검증)

변경사항:
- 마이그레이션 재실행 시에도 안전하게 처리
- 폼 제출 시 CSRF 공격 방지
- 관리자 로그인 페이지 405 에러 해결

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-26 16:46:36 +09:00
kjh2064 f4eeeb9ec0 추가: 초기 관리자 계정 및 블로그 포스트 5개
- 초기 관리자: admin / admin123
- 블로그 포스트 5개 자동 생성
- AdminUserRepository 구현
- CreateBlogPostDto 추가

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-06-26 15:18:01 +09:00