Node SDK: add unit tests for the change password and delete user commands
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 82/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- testing
Hướng nghiên cứu
Đọc foreign/node/src/wire/user/create-user.command.test.ts và hai bộ tuần tự hóa trong Node SDK. Thêm các tệp kiểm thử được đặt tên cho change-password và delete-user, đồng thời tự xây dựng các buffer mong đợi. Chạy npm run test:unit và npm run lint từ foreign/node; hoàn tất khi các trường hợp byte được yêu cầu chạy thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
CHANGE_PASSWORD.serialize and DELETE_USER.serialize in the Node SDK have no unit tests. client.socket.test.ts calls them through a mock server but does not check the bytes. CHANGE_PASSWORD writes the user identifier, then each password as a one byte length and the bytes, and throws when either password is under 1 or over 255 bytes (counted in bytes, not characters). DELETE_USER writes only the identifier.
Affected area / component
Node SDK
Proposed solution
Add foreign/node/src/wire/user/change-password.command.test.ts and delete-user.command.test.ts, following create-user.command.test.ts, including its UTF-8 case for the 255 byte limit.
- Change password: the exact bytes for a numeric user id, an empty current password, an empty new password, a 255 byte password accepted, a 256 byte password refused, and a multi-byte password that is under 255 characters but over 255 bytes.
- Delete user: the exact bytes for a numeric and a string identifier.
- Build the expected buffers by hand, so the test does not call the code it checks.
How to test: npm run test:unit and npm run lint pass in foreign/node.
Good first issue
- I think this could be a good first issue for a new contributor
- Ngôn ngữ chính
- Rust
- Star
- 5.2k
- Fork
- 516
- Merge trung bình
- 2 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 145
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/iggy
-
docs good first issue php
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue javascript test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue javascript test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue javascript test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue php
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug(core): partial tool arguments drop existing string content during a split surrogate pairĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
0xPlaygrounds/rig#3176 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Publish memtop on crates.ioĐang mởpackaging
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
SalomonAvila/memtop#23 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Anthropic provider: 400 on tools.N.custom.name after tool_search adds web.run (name contains a dot)Đang mởarea:install area:mcp area:state area:tui os:macos
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100