Hub: reusable module test kit (fixtures for auth, gate, purge and log checks)

Abierto
#61 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
kotlin
Área
testing

Línea de trabajo

Read hub/tests/demo_module.py, hub/tests/test_platform_hooks.py, hub/tests/test_apple_modules.py, and hub/tests/test_invariants.py to identify the shared checks and current Apple module coverage. Build the parameterizable helper in hub/tests/modulekit.py, migrate the Apple module tests without losing coverage, then document the kit in docs/sdk/; done means all three acceptance criteria are met.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

backend difficulty: intermediate enhancement

Context

hub/tests/demo_module.py and the Apple module tests show how to test a module, but each new module would re-implement
the same checks: role enforcement, the 423/409 behaviour, tombstone triggers and purge hooks, and "nothing from the
payload reaches the logs".

Acceptance criteria

  • A hub/tests/modulekit.py helper with parametrisable checks that any module test can call.
  • The Apple modules' tests use it (no loss of coverage).
  • Documented in docs/sdk/ as part of the module test kit.

Pointers

  • hub/tests/demo_module.py, hub/tests/test_platform_hooks.py, hub/tests/test_apple_modules.py,
    hub/tests/test_invariants.py
Lenguaje dominante
Kotlin
Estrellas
0
Forks
0
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ft-dev-org/cloudbridge-oss

Todos los issues de ft-dev-org/cloudbridge-oss

Issues similares

Más issues de Kotlin

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.