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

Aperta
#61 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
kotlin
Ambito
testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Kotlin
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ft-dev-org/cloudbridge-oss

Tutte le issue di ft-dev-org/cloudbridge-oss

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.