Add webhook verification tests for edge cases
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 85/100
Línea de trabajo
Lee apidly/webhook.py y las pruebas de webhook existentes en tests/test_sdk.py; luego añade los casos específicos a tests/test_webhook.py. Cubre todos los casos límite enumerados y comprueba que se devuelva False o se produzca la excepción documentada, sin fallos; ejecuta python -m pytest -q para confirmar que la suite pasa sin conexión.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Context
apidly/webhook.py has verify_webhook, verify_standard_webhook and verify_webhook_request. They are used in tests/test_sdk.py, but a dedicated, easy-to-read file for the edge cases would help the next person who touches signing.
Acceptance criteria
tests/test_webhook.pywith cases for: a timestamp outside the tolerance, a tampered body, a wrong secret, headers in different letter case, several signatures in one header, a missing header, and a body passed asbytesand asstr.- Each case asserts
False(or the documented exception), never a crash. python -m pytest -qpasses; no network.
Pointers
apidly/webhook.py,tests/test_sdk.py(existing webhook tests),examples/04_webhook_receiver.py
Not sure where to start, or want to claim it? Comment here first, or ask in Discussions. See CONTRIBUTING.md. Tests run offline and never call the real API.
- Lenguaje dominante
- Python
- Estrellas
- 1
- Forks
- 0
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apidly-ltd/apidly-python
-
documentation good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
-
documentation good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
Todos los issues de apidly-ltd/apidly-python
Issues similares
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorPosiblemente ocupada @jejjohnson la tomó hoy. Abiertotype:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
jejjohnson/integrix#144 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
finos/ai-governance-framework#459 ·
-
slurm: a case outcome nested too deep crashes status/collect instead of reading as no outcomeAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
freelawproject/litigant-portal#1307 ·
Los mantenedores suelen responder en 2 días
-
type/bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
h2oai/h2o-llmstudio#1163 ·
Los mantenedores suelen responder en 1 día