이벤트 가져오기 위젯 테스트 추가 및 테스트 훅 도입

This commit is contained in:
2025-09-12 06:33:44 +09:00
parent 107abc963f
commit a5f2544d11
121 changed files with 39277 additions and 3911 deletions
+174
View File
@@ -0,0 +1,174 @@
===== RUNTIME LOG START 2025-08-16T12:49:30Z =====
Showing iPhone 16 Plus logs:
flutter: fetchClubEvents 호출됨: token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJqYXliZSIsImVtYWlsIjoibWFzdGVyQGpheWJlLmRldiIsInJvbGUiOiJhZG1pbiIsIm5hbWUiOiLqtIDrpqzsnpAiLCJpYXQiOjE3NTUyMjMwMjIsImV4cCI6MTc1NTgyNzgyMn0.yUJlgG39sX-UNneRzOiSc0bA_SmsMEBwR-A8U5Vl70Y
flutter: *** Request ***
flutter: uri: https://lanebow.com/api/club/events
flutter: method: POST
flutter: responseType: ResponseType.json
flutter: followRedirects: true
flutter: persistentConnection: true
flutter: connectTimeout: 0:00:10.000000
flutter: sendTimeout: null
flutter: receiveTimeout: 0:00:10.000000
flutter: receiveDataWhenStatusError: true
flutter: extra: {}
flutter: headers:
flutter: content-type: application/json
flutter: Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJqYXliZSIsImVtYWlsIjoibWFzdGVyQGpheWJlLmRldiIsInJvbGUiOiJhZG1pbiIsIm5hbWUiOiLqtIDrpqzsnpAiLCJpYXQiOjE3NTUyMjMwMjIsImV4cCI6MTc1NTgyNzgyMn0.yUJlgG39sX-UNneRzOiSc0bA_SmsMEBwR-A8U5Vl70Y
flutter: cookie: null
flutter: data:
flutter: {clubId: 3}
flutter:
flutter: *** Response ***
flutter: uri: https://lanebow.com/api/club/events
flutter: statusCode: 200
flutter: headers:
flutter: access-control-allow-credentials: true
flutter: connection: keep-alive
flutter: x-powered-by: Express
flutter: keep-alive: timeout=20
flutter: date: Sat, 16 Aug 2025 12:50:03 GMT
flutter: vary: Origin
flutter: strict-transport-security: max-age=15768000; includeSubdomains; preload
flutter: content-length: 756
flutter: etag: W/"2f4-HBciZGWXEiKOr3p58+rIS9LAWJE"
flutter: content-type: application/json; charset=utf-8
flutter: Response Text:
flutter: [{id: 1, clubId: 3, title: 테스트, description: , eventType: regular, publicHash: JCcXwFlOYNzEpHjI, accessPassword: null, startDate: 2025-06-13T11:00:52.000Z, endDate: null, location: 테스트, gameCount: 3, participantFee: 0.00, maxParticipants: 20, registrationDeadline: null, participantCount: 0, status: active, createdAt: 2025-06-10T17:57:42.000Z, updatedAt: 2025-06-19T09:10:43.000Z, Club: {id: 3, name: 테스트}, EventParticipants: [{id: 1, status: confirmed, paymentStatus: unpaid, Member: {id: 3, name: 배익준, memberType: manager, gender: male}}, {id: 3, status: confirmed, paymentStatus: unpaid, Member: {id: 10, name: 게스트, memberType: guest, gender: male}}], clubName: 테스트}]
flutter:
flutter: fetchClubMembers 호출됨: token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJqYXliZSIsImVtYWlsIjoibWFzdGVyQGpheWJlLmRldiIsInJvbGUiOiJhZG1pbiIsIm5hbWUiOiLqtIDrpqzsnpAiLCJpYXQiOjE3NTUyMjMwMjIsImV4cCI6MTc1NTgyNzgyMn0.yUJlgG39sX-UNneRzOiSc0bA_SmsMEBwR-A8U5Vl70Y
flutter: *** Request ***
flutter: uri: https://lanebow.com/api/club/members
flutter: method: POST
flutter: responseType: ResponseType.json
flutter: followRedirects: true
flutter: persistentConnection: true
flutter: connectTimeout: 0:00:10.000000
flutter: sendTimeout: null
flutter: receiveTimeout: 0:00:10.000000
flutter: receiveDataWhenStatusError: true
flutter: extra: {}
flutter: headers:
flutter: content-type: application/json
flutter: Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJqYXliZSIsImVtYWlsIjoibWFzdGVyQGpheWJlLmRldiIsInJvbGUiOiJhZG1pbiIsIm5hbWUiOiLqtIDrpqzsnpAiLCJpYXQiOjE3NTUyMjMwMjIsImV4cCI6MTc1NTgyNzgyMn0.yUJlgG39sX-UNneRzOiSc0bA_SmsMEBwR-A8U5Vl70Y
flutter: cookie: null
flutter: data:
flutter: {clubId: 3}
flutter:
flutter: *** Response ***
flutter: uri: https://lanebow.com/api/club/members
flutter: statusCode: 200
flutter: headers:
flutter: access-control-allow-credentials: true
flutter: connection: keep-alive
flutter: x-powered-by: Express
flutter: keep-alive: timeout=20
flutter: date: Sat, 16 Aug 2025 12:50:18 GMT
flutter: vary: Origin
flutter: strict-transport-security: max-age=15768000; includeSubdomains; preload
flutter: content-length: 810
flutter: etag: W/"32a-/588NIWxY1dsmdpq/P/DKKlxPgw"
flutter: content-type: application/json; charset=utf-8
flutter: Response Text:
flutter: [{id: 9, userId: null, name: 테스트2, gender: male, memberType: associate, handicap: 0, average: 0, games: 0, phone: null, email: ikjun44@naver.com, joinDate: 2025-08-01T07:44:47.000Z, status: active}, {id: 10, userId: null, name: 게스트, gender: male, memberType: guest, handicap: 0, average: 0, games: 0, phone: null, email: null, joinDate: 2025-08-15T12:27:20.000Z, status: active}, {id: 11, userId: null, name: 게스트2, gender: female, memberType: guest, handicap: 15, average: 0, games: 0, phone: null, email: null, joinDate: 2025-08-15T12:55:04.000Z, status: active}, {id: 3, userId: 2, name: 배익준, gender: male, memberType: manager, handicap: 0, average: 0, games: 0, phone: null, email: null, joinDate: 2025-06-10T17:56:13.000Z, status: active}]
flutter:
flutter: 회원 응답 데이터: [{id: 9, userId: null, name: 테스트2, gender: male, memberType: associate, handicap: 0, average: 0, games: 0, phone: null, email: ikjun44@naver.com, joinDate: 2025-08-01T07:44:47.000Z, status: active}, {id: 10, userId: null, name: 게스트, gender: male, memberType: guest, handicap: 0, average: 0, games: 0, phone: null, email: null, joinDate: 2025-08-15T12:27:20.000Z, status: active}, {id: 11, userId: null, name: 게스트2, gender: female, memberType: guest, handicap: 15, average: 0, games: 0, phone: null, email: null, joinDate: 2025-08-15T12:55:04.000Z, status: active}, {id: 3, userId: 2, name: 배익준, gender: male, memberType: manager, handicap: 0, average: 0, games: 0, phone: null, email: null, joinDate: 2025-06-10T17:56:13.000Z, status: active}]
flutter: 변환된 회원 리스트 길이: 4
flutter: *** Request ***
flutter: uri: https://lanebow.com/api/club/events/participants
flutter: method: POST
flutter: responseType: ResponseType.json
flutter: followRedirects: true
flutter: persistentConnection: true
flutter: connectTimeout: 0:00:10.000000
flutter: sendTimeout: null
flutter: receiveTimeout: 0:00:10.000000
flutter: receiveDataWhenStatusError: true
flutter: extra: {}
flutter: headers:
flutter: content-type: application/json
flutter: Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJqYXliZSIsImVtYWlsIjoibWFzdGVyQGpheWJlLmRldiIsInJvbGUiOiJhZG1pbiIsIm5hbWUiOiLqtIDrpqzsnpAiLCJpYXQiOjE3NTUyMjMwMjIsImV4cCI6MTc1NTgyNzgyMn0.yUJlgG39sX-UNneRzOiSc0bA_SmsMEBwR-A8U5Vl70Y
flutter: cookie: null
flutter: data:
flutter: {eventId: 1, clubId: 3}
flutter:
flutter: *** DioException ***:
flutter: uri: https://lanebow.com/api/club/events/participants
flutter: DioException [bad response]: This exception was thrown because the response has a status code of 404 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 404 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled"
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.
flutter: uri: https://lanebow.com/api/club/events/participants
flutter: statusCode: 404
flutter: headers:
flutter: access-control-allow-credentials: true
flutter: connection: keep-alive
flutter: x-powered-by: Express
flutter: keep-alive: timeout=20
flutter: date: Sat, 16 Aug 2025 12:50:18 GMT
flutter: vary: Origin
flutter: strict-transport-security: max-age=15768000; includeSubdomains; preload
flutter: content-length: 168
flutter: content-type: text/html; charset=utf-8
flutter: x-content-type-options: nosniff
flutter: content-security-policy: default-src 'none'
flutter: Response Text:
flutter: <!DOCTYPE html>
flutter: <html lang="en">
flutter: <head>
flutter: <meta charset="utf-8">
flutter: <title>Error</title>
flutter: </head>
flutter: <body>
flutter: <pre>Cannot POST /api/club/events/participants</pre>
flutter: </body>
flutter: </html>
flutter:
flutter:
flutter:
flutter: API 에러: 404 - <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /api/club/events/participants</pre>
</body>
</html>
flutter: *** Request ***
flutter: uri: https://lanebow.com/api/club/events/1/participants
flutter: method: POST
flutter: responseType: ResponseType.json
flutter: followRedirects: true
flutter: persistentConnection: true
flutter: connectTimeout: 0:00:10.000000
flutter: sendTimeout: null
flutter: receiveTimeout: 0:00:10.000000
flutter: receiveDataWhenStatusError: true
flutter: extra: {}
flutter: headers:
flutter: content-type: application/json
flutter: Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJqYXliZSIsImVtYWlsIjoibWFzdGVyQGpheWJlLmRldiIsInJvbGUiOiJhZG1pbiIsIm5hbWUiOiLqtIDrpqzsnpAiLCJpYXQiOjE3NTUyMjMwMjIsImV4cCI6MTc1NTgyNzgyMn0.yUJlgG39sX-UNneRzOiSc0bA_SmsMEBwR-A8U5Vl70Y
flutter: cookie: null
flutter: data:
flutter: {clubId: 3, memberId: 10, status: confirmed, paymentStatus: unpaid}
flutter:
flutter: *** Response ***
flutter: uri: https://lanebow.com/api/club/events/1/participants
flutter: statusCode: 201
flutter: headers:
flutter: access-control-allow-credentials: true
flutter: connection: keep-alive
flutter: x-powered-by: Express
flutter: keep-alive: timeout=20
flutter: date: Sat, 16 Aug 2025 12:50:42 GMT
flutter: vary: Origin
flutter: strict-transport-security: max-age=15768000; includeSubdomains; preload
flutter: content-length: 300
flutter: etag: W/"12c-QVvZsrstXQ4ciNsRs6kFF7Pb9HA"
flutter: content-type: application/json; charset=utf-8
flutter: Response Text:
flutter: {"message":"기존 참가자 정보를 수정했습니다.","participant":{"id":3,"eventId":1,"memberId":10,"teamId":null,"comment":null,"status":"confirmed","paymentStatus":"unpaid","createdAt":"2025-08-15T12:27:21.000Z","updatedAt":"2025-08-16T12:50:42.000Z","Member":{"id":10,"name":"게스트"}}}
flutter: