Daskott / kronus

Simple CLI tool for assessing aliveness of users. And executes preset actions based on the results.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add initial tests for server

Daskott opened this issue · comments

Start with probeScheduler

TODO:

  • --test mode should use in:memory db for test
  • Test that ScheduleProbes:
    • Loads crons for probes where users have their probe_settings set to active
    • Loads crons for probe followups i.e. ENQUEUE_FOLLOWUP_PROBES_HANDLER
  • Test that the probes are executed when they are suppose to be ?
    • Perhaps this should not be a probeScheduler test, but a wokerPool test ?