Node SDK: add unit tests for the change password and delete user commands
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 82/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- testing
Direzione di ricerca
Leggi foreign/node/src/wire/user/create-user.command.test.ts e i due serializer nel Node SDK. Aggiungi i file di test denominati per change-password e delete-user, costruendo i buffer attesi in modo indipendente. Esegui npm run test:unit e npm run lint da foreign/node; il lavoro è completato quando i casi di byte richiesti passano.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Rust
- Stelle
- 5.2k
- Fork
- 516
- Merge medio
- 2g 12h
- PR unite (30g)
- 145
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/iggy
-
docs good first issue php
Difficoltà 1/5 1-3 ore Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue javascript test
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue javascript test
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue javascript test
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue php
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
0xPlaygrounds/rig#3176 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Publish memtop on crates.ioApertapackaging
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
SalomonAvila/memtop#23 ·
I maintainer di solito rispondono entro 1 giorno
-
Anthropic provider: 400 on tools.N.custom.name after tool_search adds web.run (name contains a dot)Apertaarea:install area:mcp area:state area:tui os:macos
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100