Skip to content

Acceptance: what is tested, and where ​

These are the acceptance scenarios, the source of truth for what must happen when a sensor fails and recovers, with the tests that check them and an honest list of what no test covers. A change to alerting behaviour arrives with its scenario test. Test names are given as file and function or test title.

Three layers do the checking:

  • Engine (crates/probeward-engine/tests/): the alerting rules with a scripted clock and scripted poll results. Fast and exhaustive; no network, no database.
  • Runtime (crates/probeward-server/tests/runtime/, tests/notify/): the real server with its runtime, real PostgreSQL (a fresh database per test), local targets, webhook receivers and a mail catcher.
  • Browser (ui/e2e/1*.spec.ts): the built UI and the probeward serve binary with its runtime, driven by Playwright against a local web and TCP target, a webhook receiver and Mailpit. Run with pnpm exec playwright test in ui/.

Acceptance scenarios ​

ScenarioEngineRuntimeBrowser
A service fails twice with failure count two, then recovers: the first failure is visible, the second opens one incident and one opening notification, the first good scan closes it with one recoveryacceptance.rs a_service_fails_twice_with_failure_count_two_then_recoversincidents.rs fails_twice_then_recovers_with_one_page_each_way; incidents.rs status_events_follow_the_failure_count_and_stay_quiet_while_nothing_moves11-first-alert.spec.ts "a stopped web service pages once, is acknowledged, and recovers once": "1 failed poll in a row" with no incident, then the incident, exactly one opened and one recovered webhook, both schema-valid and signed
A device's master check fails: one page for the device, its other sensors suppressed with a recorded reasonacceptance.rs a_devices_master_check_failsincidents.rs a_failing_master_check_pages_once_and_suppresses_its_siblingsnot covered
A designated switch check fails and two downstream checks also fail: one page for the switch, the affected checks and the reason recorded; after recovery they are polled again and a persistent independent failure pages after its own countacceptance.rs a_designated_switch_check_fails_and_two_downstream_checks_also_fail; switch_incident_lists_the_checks_suppressed_under_itcollection.rs a_dependency_added_while_running_suppresses_the_dependent (suppression only)not covered
Two unrelated devices share a group and one fails: the other keeps polling and can pageacceptance.rs two_unrelated_devices_share_a_group_and_one_failsnot covered separatelynot covered
The webhook receiver is unavailable: failed delivery and retry status shown apart from sensor health, retries reuse the event id, exhausted retries stay visibleacceptance.rs each_notification_event_has_its_own_event_id_emitted_onceoutages.rs a_receiver_that_is_down_is_retried_with_one_event_id_and_stays_visible_when_exhausted; a_permanent_refusal_is_not_retried; delivery.rs back_off_grows_exponentially_and_attempts_are_boundeddelivery rows on the incident page in 11-first-alert.spec.ts (successful deliveries only); a down receiver is not driven through the browser
A credential stops working during polling: a visible collection failure, no silent change of protocolacceptance.rs a_credential_stops_working_during_pollingcollection.rs a_credential_that_stops_working_is_a_visible_collection_failure; a_missing_or_wrong_kind_credential_is_a_configuration_failurea refused connection shown as "Collection failure" with health kept, in 11-first-alert.spec.ts (not a credential failure)
Notify rules changed while an incident is open: a destination no longer named (including an override to notify nobody, or a destination that no longer opts in to warnings) gets no further repeats and no recovery, also after a restart; a destination added is not told about the incident already openalerting.rs notifying_nobody_while_an_incident_is_open_stops_its_repeats_and_recovery; a_removed_destination_stops_hearing_and_an_added_one_waits_for_the_next_incident; a_warning_incident_stops_paging_a_destination_that_no_longer_opts_in; a_restart_applies_notify_rules_changed_during_the_downtimenot coverednot covered
A ping sensor gains the jitter channel with a warning-only default limit: high jitter shows as a warning and pages nobody unless a destination opts in to warnings; a poll that has no jitter (one reply of several) is not held against the sensoralerting.rs high_ping_jitter_is_a_warning_that_pages_nobody_by_default; a_poll_without_the_jitter_channel_is_not_held_against_the_sensornot coverednot covered

Related checks the scenarios rely on:

  • Simulated errors are labelled SIMULATED end to end: incidents.rs a_simulated_error_is_marked_simulated_end_to_end; 12-controls.spec.ts (sensor page, alarms list and a webhook whose summary starts with SIMULATED).
  • No page is lost or repeated across a restart or a database outage: incidents.rsa_restart_mid_incident_does_not_page_again_and_keeps_the_acknowledgement; outages.rsa_database_outage_loses_no_incident_or_notification; crash.rsa_crash_while_the_journal_is_held_back_does_not_lose_the_page.
  • Webhook payloads match docs/webhook-payload.schema.json and carry a valid signature: channels.rswebhooks_carry_stable_ids_a_valid_signature_and_schema_valid_bodies; every webhook in 10-onboarding, 11-first-alert and 12-controls is validated against the schema in the browser suite too.
  • Credentials never leak: api/leaks.rs secrets_appear_nowhere_outside_the_vault; runtime/leaks.rsno_secret_reaches_payloads_renderings_timeline_events_rows_or_logs.
  • The heartbeat is withheld when Probeward cannot alert, and its URL never shown in full: system.rsthe_heartbeat_is_sent_only_while_the_core_can_alert; the_heartbeat_url_is_never_logged_or_shown_in_full.
  • The UI shows a status change before the database row is written: collection.rsthe_api_shows_a_change_before_the_status_row_is_written; 10-onboarding.spec.ts "a web check added by hand reports live, without a reload".

Schedules and maintenance windows ​

The rules are in schedules and maintenance. Engine tests are in crates/probeward-engine/tests/maintenance.rs unless named otherwise; runtime tests in crates/probeward-server/tests/runtime/calendars.rs.

BehaviourEngineRuntime and APIBrowser
A window opening on a failing sensor before its count is reached: no incident, no page; after the window a persistent failure pages after its own count, never as a burstfailing_sensor_enters_maintenance_before_its_count_is_reached; a_window_ending_while_still_failing_pages_after_the_failure_counta_window_keeps_a_failing_sensor_quiet_until_it_is_ended_early17-maintenance.spec.ts: the Maintenance handling appears on every sensor of the device and goes when the window is ended
An open incident entering a window holds its reminders; a recovery inside closes it without a notificationan_open_incident_entering_maintenance_holds_its_repeats_and_resumes_after; recovery_inside_a_window_closes_quietlynot covered separatelynot covered
Overlapping windows, windows on a group, dependencies, pause, acknowledgement and simulation during a windowoverlapping_windows_hand_over_without_a_gap; a_group_window_covers_a_device_whose_master_check_fails; a_failing_parent_in_maintenance_still_suppresses_its_dependants; a_parent_in_a_stop_polling_window_does_not_suppress_its_dependants; a_manual_pause_overlapping_a_window; acknowledge_during_a_window; a_simulated_error_during_a_window_is_still_simulated_and_still_heldnot coverednot covered
Stop polling, end early and extenda_stop_polling_window_halts_polls_and_polls_at_the_end; ending_a_window_early_and_extending_it_take_effect_at_onceapi/calendars.rs operators_run_maintenance_windows_on_the_injected_clockEnd now from the device page in 17-maintenance.spec.ts
Weekly and monthly windows, the last day of a short montha_monthly_window_opens_on_its_day; unit tests in src/calendar.rsapi/calendars.rs (upcoming occurrences)not covered
Outside the monitoring schedule nothing is polled or paged; a poll in flight is dropped; an open incident does not repeat; a sensor can opt out with "Always"outside_the_monitoring_schedule_nothing_is_polled_and_nothing_pages; the_monitoring_schedule_closes_while_a_poll_is_in_flight; an_open_incident_outside_the_monitoring_schedule_does_not_repeat; a_sensor_can_opt_out_of_an_inherited_scheduleoutside_its_monitoring_schedule_a_sensor_is_not_polled17-maintenance.spec.ts: a schedule created in Settings and attached to the device shows Outside schedule on its sensors, and resetting to inherit removes it
A notification schedule holds a destination and tells it once, marked delayed, when it opens; an incident over before it opens never reaches it; a window still winsa_notification_schedule_opening_on_an_open_incident_notifies_once_marked_delayed; an_incident_that_opens_and_recovers_outside_the_schedule_is_not_sent_there; a_notification_schedule_does_not_bypass_a_windowa_closed_notification_schedule_delays_the_page_until_it_opens (payload validated against the schema)not covered
The daylight saving rule in two zonesdst_spring_forward_opens_at_the_end_of_the_gap; dst_fall_back_uses_the_first_occurrence; dst_a_window_lasts_its_elapsed_duration (Europe/Sarajevo and America/New_York)not coverednot covered
A restart mid-window, after a window ended during downtime, and with destinations still waiting; old snapshots loada_restart_mid_window_neither_pages_nor_loses_the_window; a_restart_after_a_window_ended_during_downtime_polls_before_deciding; a_restart_keeps_waiting_and_delayed_destinations; a_snapshot_from_before_schedules_still_loadsa_restart_mid_window_neither_pages_nor_loses_the_windownot covered
Remote probes: halted sensors are not polled while cut off, replayed samples from a window page nothing, a halted sensor waits on its probeprobe_maintenance.rs halted_spans_cover_the_closed_schedule_and_stop_polling_windows_up_the_tree; a_sensor_outside_its_schedule_is_not_polled_on_reconnect_and_never_pages_for_the_loss; a_schedule_opening_while_the_probe_is_away_leaves_the_sensor_waiting_on_the_probe; failures_replayed_from_inside_a_maintenance_window_are_history_only; agent unit test offline_slots_skip_halted_spansruntime/probes.rs a_sensor_outside_its_monitoring_schedule_is_not_polled_by_its_probe_while_cut_off; failures_the_probe_buffered_inside_a_window_are_replayed_as_history_and_page_nothingnot covered
A window on the probe quiets its own incident and opens it once if the probe is still away after; notification schedules hold probe incidentsprobe_maintenance.rs a_probe_lost_inside_its_window_and_back_before_the_end_never_opens_or_notifies; a_probe_still_away_when_its_window_ends_opens_once_then_and_repeats_from_there; a_window_starting_on_an_open_probe_incident_holds_its_repeats_and_closes_it_quietly; an_open_probe_incident_resumes_repeats_from_the_end_of_the_window; a_restart_keeps_a_held_probe_loss_and_a_window_that_ended_during_downtime_opens_once; a_probe_incident_waits_for_a_closed_notification_schedule_and_is_told_late_once; a_probe_back_before_the_notification_schedule_opens_is_never_told_to_the_waiting_destinationruntime/probes.rs a_window_on_the_probe_stops_its_own_polling_and_pages_only_if_it_is_still_away_afternot covered
Roles, audit and refusal of a schedule in useremoving_a_schedule_still_in_use_is_refusedapi/calendars.rs admins_edit_schedules_and_operators_attach_them, notification_rules_name_a_schedule; api/audit_coverage.rs; store tests in probeward-store/tests/db/calendars.rs17-maintenance.spec.ts checks the audit log

Receivers ​

SNMP trap and syslog sensors count what a device sent to the probe. The design is in receivers; the engine is unchanged, because a receiver sensor reaches it as an ordinary poll result: a count on a channel with limits, and optionally a state of its own. Receiver tests that need no database are in crates/probeward-sensors/tests/ (sensors_receivers.rs against a scripted receiver, receivers_net.rs on real loopback sockets) and in the receiver modules; the database tests are crates/probeward-store/tests/db/events.rs and crates/probeward-server/tests/runtime/receivers.rs.

BehaviourSensorsRuntime and storeBrowser
A matching trap or message turns the sensor to the state it is set to (Warning by the default limit, Warning or Down by state_on_match) for as long as it is in the window, and the sensor recovers by itself when it ages outsensors_receivers.rs a_message_ages_out_of_the_window_and_the_sensor_recovers; state_on_match_sets_warning_or_down_only_while_something_matchedruntime/receivers.rs a_match_that_sets_the_state_pages_once_and_the_sensor_recovers_when_nothing_matches: two failing polls with the failure count of two open one incident and send one page, the first quiet poll closes it with one recovery, and nothing repeatsnot covered
A sensor that only counts is visible and pages nobody, however many matchwithout_a_filter_every_trap_countsruntime/receivers.rs a_sensor_that_only_counts_never_pages_however_many_matchnot covered
A match is kept once for the sensor's page however many polls its window covers, also across a restart of the probe, and is read back newest first; retention takes it with the timeline; a sensor keeps at most 1,000each_match_becomes_one_event_however_often_it_is_in_the_window; a_restarted_receiver_starts_its_numbering_again_without_losing_events; a_flood_keeps_only_the_newest_events_but_counts_them_allstore/tests/db/events.rs (four tests); runtime/receivers.rs (paging by before, housekeeping, the API)91-sensor-screenshots.spec.ts: the sensor page lists what the runtime server received on its trap and syslog ports
A device that floods the probe is cut at its rate limit and the cut is counted against it; another device keeps its allowance; the store stays within its message, time and byte limitsreceivers_net.rs a_flood_is_cut_at_the_rate_limit_and_counted; a_second_source_keeps_its_own_allowance_during_a_flood; drops_unreadable_datagrams_and_a_short_memory_are_said_plainlystore unit tests in proto/receiver/store.rs with a scripted clock (burst and refill, per-source buckets, newest kept, byte budget, retention, the watch limit)not covered
Messages from an address no sensor watches are dropped before they are read; garbage and v3 messages that do not authenticate are counted as unreadable and never kept; a community is never keptreceivers_net.rs garbage_and_unwatched_senders_are_not_kept; a_v3_trap_is_read_with_the_sensors_credential_and_only_then; a_credential_of_authpriv_does_not_accept_a_message_that_is_not_encrypted; a_v2c_trap_is_stored_without_its_communitynot coverednot covered
A port that cannot be opened is a visible, explained collection failure of the sensor, not silencea_port_that_cannot_be_opened_fails_the_poll_with_what_to_do; receivers_net.rs a_port_another_program_holds_is_named_in_the_failure; a_privileged_port_names_the_capability_it_needsnot coverednot covered

Derived sensors ​

The rules are in business process and combined, and how the engine does it in the "Derived sensors" section of architecture. Engine tests are in crates/probeward-engine/tests/derived.rs unless named otherwise; runtime tests in crates/probeward-server/tests/runtime/derived.rs; API tests in crates/probeward-server/tests/api/derived.rs.

BehaviourEngineRuntime and APIBrowser
A business process "down when two of three are down": one source down is a warning and pages nothing for the process; the second, once confirmed, opens one incident after the process's own failure count, with the sources named in the page; the first source recovering closes it with one recoverya_process_is_down_when_two_of_three_are_down_and_recovers_when_one_returnsa_business_process_pages_once_when_its_rule_holds_and_recovers_with_its_sources (webhook payload, summary, no secret)picture in 91-sensor-screenshots.spec.ts (one source down, process in warning)
The process follows a change of source straight away, and a source whose values only move does not make it record a sample each timethe_process_follows_a_change_of_source_at_once_not_a_whole_interval_later; a_source_whose_values_only_move_does_not_make_the_sensor_record_a_sample_each_timenot covered separatelynot covered
A combined sensor computes sum, average, minimum, maximum and difference of chosen channels; limits on the computed channels page; its state is the worst of its sources or only its limitsa_combined_sensor_computes_its_channels_from_the_channels_it_names; the_sensors_own_limits_apply_to_what_it_computes; a_combined_sensor_takes_its_state_from_its_sources_unless_told_not_to; unit tests in src/derived.rsa_combined_sensor_sums_its_sources_and_a_deleted_source_leaves_its_value_unknown (sum and maximum on the status)picture in 91-sensor-screenshots.spec.ts
A source that is stale, paused or deleted: the channel has no value (or is computed from the rest when told to skip), a rule counts it as unknown_as says, the message names it, and the sensor itself neither fails nor pages for ita_source_that_goes_stale_leaves_its_value_unknown_and_the_sensor_keeps_working; a_paused_source_counts_as_the_process_is_told_and_a_process_with_nothing_to_read_decides_nothing; a_deleted_source_is_read_as_unknown_by_name_and_the_rest_still_decide; a_source_still_settling_is_left_out_whatever_the_settingthe deleted source in a_combined_sensor_sums_its_sources_and_a_deleted_source_leaves_its_value_unknownnot covered
When no source can be read the sensor is Unknown with a reason and an open incident is neither recovered nor repeated by it; the same after a restart, when every source is stale at oncea_paused_source_counts_as_the_process_is_told_and_a_process_with_nothing_to_read_decides_nothing; a_restart_keeps_the_incident_and_does_not_page_againnot coverednot covered
Derived sensors reading each other: a chain follows its sources, a circle (a sensor reading itself included) is refused at save time with its path, and a derived sensor cannot be a master check or a dependencya_process_can_read_another_derived_sensor_and_both_follow_the_sources; a_process_in_a_circle_of_derived_sensors_is_refused; a_derived_sensor_cannot_be_a_master_check_or_a_dependencyapi/derived.rs sources_must_exist_and_derived_sensors_cannot_read_each_other_in_a_circlenot covered
A branch operator cannot read a sensor outside their branch through a derived sensor of their own, and is answered as for one that does not existnot applicableapi/derived.rs a_branch_operator_cannot_read_a_sensor_outside_the_branch_through_one_of_their_ownnot covered
A paused derived sensor is not evaluated and evaluates again when resumed; Scan now evaluates at once without a poll; a derived sensor is never polleda_paused_process_is_not_evaluated_and_evaluates_again_when_it_resumes; scan_now_evaluates_a_derived_sensor_at_once_without_a_pollpolls_of is zero in the business process runtime testnot covered

Flow collectors ​

The netflow and sflow sensors sum what a device exports as flows. The design and every limit are in architecture; the engine is unchanged, because a flow sensor reaches it as an ordinary poll result: rates and shares on channels with limits. No alerting rule is new, so the scenarios below are about what the channels say and what is bounded, not about incidents (those are the receivers' scenarios above, which a flow sensor shares: a limit on a channel, the failure count, one page). Tests that need no database are in crates/probeward-sensors/: the decoders and the store in src/proto/flow/ (hand-made packets, a scripted clock), tests/sensors_flows.rs against a scripted collector, and tests/flows_net.rs on real loopback sockets.

BehaviourDecoders and storeSensorsBrowser
NetFlow v5, v9 and IPFIX are read from hand-made packets: templates (also many unused fields, variable-length and enterprise fields, IPv6), template expiry, replacement and withdrawal, options templates giving the sampling interval, per-domain caches; sFlow v5 flow samples (headers, VLAN, IPv4, IPv6, expanded) and counter samplesnetflow.rs v5_flows_are_read_and_scaled_by_the_header; v9_needs_the_template_and_reads_data_once_it_has_it; templates_are_per_domain_and_expire; a_resent_template_replaces_the_old_one; ipfix_reads_variable_length_and_enterprise_fields; ipfix_ipv6_and_withdrawal; options_data_sets_the_sampling_interval; a_template_with_many_unused_fields_is_stepped_over_by_length; sflow.rs a_flow_sample_from_a_packet_header_is_read_with_its_rate; vlan_tags_and_udp_are_read; sampled_ipv6_is_read; counter_samples_give_the_interface_octets; expanded_samples_and_unknown_samplesnot coverednot covered
Truncated, malformed and hostile datagrams never panic, allocate from a number in the datagram or loop without advancing; template, field, domain and record limits holdnetflow.rs every_truncation_of_a_valid_datagram_is_handled; mutated_and_random_datagrams_never_panic (60,000 datagrams); hostile_lengths_do_not_allocate_or_loop; template_limits_hold; records_per_datagram_are_capped; sflow.rs the same three (80,000 datagrams); store.rs hostile_traffic_through_the_store_never_panicsnot coverednot covered
Counts are scaled by the sampling rate; a sensor's rate replaces the device's; totals stay exact whatever the tables hold; a scan of 20,000 sources keeps the tables at their limit and the heavy talker on topstore.rs sampling_scales_and_a_sensors_rate_overrides; tables_are_bounded_and_totals_stay_exact; the_cost_of_a_flow_is_smallsensors_flows.rs the_channels_are_sums_over_the_covered_windowthe two pictures' tables
Only finished intervals count, and only the part of the window the probe has watched; nothing is measured before the first complete interval; a silent device is zero traffic and a growing since_last_flow_s, not a failurestore.rs an_interval_is_aggregated_and_kept_when_it_ends; what_was_not_watched_for_a_whole_interval_is_not_coveredsensors_flows.rs before_the_first_complete_interval_nothing_is_measured; a_silent_device_is_zero_traffic_and_the_age_of_its_last_flownot covered
A sensor for an interface sees that interface's traffic in the direction asked; an exporter has at most 16 such scopes; at most the configured number of exporters is watchedstore.rs a_scope_sees_only_its_interface; scopes_are_bounded; exporters_are_boundedsensors_flows.rs the_sensor_asks_for_its_device_its_interface_and_its_window; parameters_are_checkednot covered
Exporters nobody watches are dropped before decoding; one that floods is cut at its datagram rate and the cut is counted; unreadable datagrams, data without a template and gaps in the sequence are counted and saidstore.rs unwatched_exporters_are_dropped_before_decoding; a_flood_of_datagrams_is_rate_limited_and_counted; unreadable_datagrams_are_counted; missing_datagrams_are_found_in_the_sequence; templates_work_through_the_store_and_data_without_one_is_countedsensors_flows.rs trouble_is_counted_and_said; an_approximate_interval_and_a_short_retention_are_reported_as_minimumsnot covered
The ring of finished intervals stays within its retention and its byte budget; exporters nobody watches are forgottenstore.rs retention_and_the_byte_budget_bound_the_ring; prune_forgets_exporters_nobody_watchesnot coverednot covered
Each interval is in one summary event, also when polls overlap, and a restarted collector's events are new; a failure to open the port is a failed poll that says what to do, with the cursor keptnot coveredsensors_flows.rs each_interval_is_in_one_summary_event; a_failure_to_listen_is_a_failed_poll_with_the_collectors_words91-sensor-screenshots.spec.ts: the page lists "Who talked" from IPFIX and sFlow sent to the runtime server's collectors
Real datagrams on loopback are collected: v5 and IPFIX on one port, a template that arrives after data, sFlow samples scaled and counters followed, a flood, a port another program holdsflows_net.rs (six tests)not coverednot covered
A real router's exports are read: IPFIX from a RouterOS router, sFlow from a VyOS routerlive_flows.rs, skipped without PROBEWARD_TEST_FLOW_*the samenot covered

Not covered: the flow sensors have no scenario test through the runtime and PostgreSQL of their own. Their poll result is the same PollOutcome::Ok with events that the receivers' runtime tests already carry through the journal into sensor_events, and the summary event is an ordinary event.

Inherited permissions verified through UI and API ​

The M3 exit criterion. The rules are in access control, how routes declare them in declaring access on a route. API tests are in crates/probeward-server/tests/api/ against real PostgreSQL; the browser test is ui/e2e/19-scoped-access.spec.ts.

BehaviourAPIBrowser
Every route answers each principal by its declared need: 404 outside the scope, 403 without the action, allowed otherwise; seven principals (root admin, branch admin, branch operator, branch viewer, a user with no grants, a subtree token, an action-limited token), inside and outside the branchaccess_matrix.rs every_route_answers_each_principal_by_its_declared_need; every_route_declares_what_it_needs_and_nothing_new_is_open"an address outside the branch is not found, in the UI and at the API": a sensor outside the grant shows Sensor not found, and the API answers 404 to reading and to scanning it
A grant reaches everything below its node; the highest role on the way counts; moving a node carries access with it and takes it away from the old branchaccess.rs grants_are_inherited_and_moves_carry_access_with_them"an administrator gives a user operator on one group and the Access panel says why": the grant shows as given on the group and as inherited on the device below it, with its source and what it allows
The live event stream follows every change of access: after a grant is removed, a device moves out of the branch, the user is disabled, the session ends or a token is revoked, nothing about the lost nodes arrives and the rest still does, including for an event published between the change's commit and its announcementaccess.rs an_open_event_stream_follows_moves_and_grant_changes; stream_access.rs (six tests); ui/src/stores/tree.test.ts "drops the nodes the caller lost as soon as their access changes"not covered
A branch user learns nothing about the rest of the tree: the tree, roll-ups, alarms, the timeline, searches, series, credentials, destinations, schedules usageaccess.rs a_branch_user_learns_nothing_about_the_rest_of_the_tree; every answer in the matrix is searched for names and addresses from outside the branch; leaks.rs secrets_appear_nowhere_outside_the_vault"the restricted operator sees and changes the branch, and nothing else": the tree shows the branch only, the device menu offers the operator's actions, the Access panel and the Users page are not offered
Credentials stay on their targets: changes that would send one elsewhere are refused, and at run time a credential refused for the address fails the sensor loudly, naming it, on the local probe and on a remote one; the ranges are exportedaccess.rs credentials_stay_on_their_targets; runtime/collection.rs a_credential_refused_for_the_address_is_a_configuration_failure_that_names_it; runtime/probes.rs a_credential_refused_for_the_address_fails_the_same_way_on_a_remote_probe; config_import.rs a_missing_credential_blocks_the_apply_and_is_listed; configfiles::export every_attribute_of_a_credential_is_exported_or_listed_as_not_configurationnot covered
Scoped tokens never exceed their owner's current rightsaccess.rs scoped_tokens_stay_within_their_owners_current_rightsnot covered
The last administrator cannot be locked outaccess.rs the_last_administrator_cannot_be_locked_outnot covered
Grants from provider groups follow the user's membership at every loginsso.rs provisioned_at_first_login_with_grants_from_groups_each_time; sso_keycloak.rs against Keycloak in a container (skipped, with a message, where Docker is missing)not covered
A single sign-on callback from another client is refused and does not cancel the user's sign-in, which their browser completes oncesso.rs a_callback_from_another_browser_cannot_cancel_the_sign_innot covered

Pilot exercises ​

ExerciseCovered byWhat a test cannot tell
1. Time from download, prerequisites apartThe install path is checked by building deploy/Dockerfile and bringing up deploy/compose.yml (setup, a ping sensor polling as a non-root user, a webhook test reaching a receiver). 10-onboarding.spec.ts "setup creates the administrator and hands over to discovery".How long a person takes, and where they get stuck.
2. Discovery timer: first device with a useful sensor10-onboarding.spec.ts "discovering 127.0.0.1 finds the local listeners and applying it starts monitoring"; runtime/discovery.rs discovery_applies_idempotently_and_rediscovery_never_deletes, a_selection_applies_only_the_chosen_addresses_and_unknown_ones_are_refused, without_a_target_group_the_destination_becomes_the_probes_ruleDiscovery against the pilots' own SNMP and SSH devices. The browser test finds TCP listeners and ping on 127.0.0.1 only.
3. Alert timer: a clearly labelled test incident arrives10-onboarding.spec.ts "a signed webhook and an email destination, each tested end to end" (Send test reaches the webhook receiver and Mailpit); 12-controls.spec.ts (a simulated incident pages as SIMULATED)Whether the label is clear to the person reading it on their phone.
4. Cause and clear a controlled outage on the real polling path11-first-alert.spec.ts stops and restarts a real web serverAn outage on the pilots' own services and networks.
5. Recreate one existing group from their current toolNot covered. Adding groups, devices, sensors, inherited settings, dependencies and rules by hand is exercised piecemeal (04-inheritance.spec.ts, 10-onboarding.spec.ts, collection.rs live_configuration_changes_take_effect).The count of manual edits and the time spent: that is the measurement.
6. Interview: what prompted the look, what keeps them, WinRMNot testable.Everything.

Not covered ​

Stated plainly so nobody assumes otherwise:

  • Suppression and dependencies in the browser. The master-check and switch scenarios are checked in the engine and runtime suites, but no browser test shows a suppressed sensor with its reason.
  • A down webhook receiver in the browser. Retries, one event id and exhausted deliveries are checked in the runtime suite; the "Notifications that need attention" list on the Alarms page is not driven by a browser test against a failing receiver.
  • Two unrelated devices in one group is checked in the engine only, not against the running server.
  • Discord and Telegram are checked against local stand-ins for their APIs (channels.rs), never against the real services.
  • SNMP and SSH sensors against real devices. The sensor suites use local daemons (sensors_snmp.rs, sensors_ssh.rs), which are skipped where PROBEWARD_SKIP_DAEMON_TESTS is set. The browser suite has no SNMP or SSH target, so discovery with credentials is not exercised in the browser.
  • Repeat notifications while an incident is unacknowledged are checked in the engine (alerting.rs), not in the browser, which sets the repeat interval to 0 to keep the counts exact.
  • Notification schedules in the browser. Delayed pages are checked in the engine and runtime suites; the browser suite attaches a monitoring schedule only.
  • Schedules and windows on probe incidents in the browser. Checked in the engine and runtime suites; the browser suite has no remote probe.
  • TLS through Caddy is checked only by the manual Compose run, not by an automated test.
  • Receivers against real devices in the browser. The pictures of the trap and syslog sensors are made with messages sent from the loopback address; the real routers were checked with the live test only (live_receivers.rs), outside the browser suite. A remote probe's receiver is the same code as the local one, but no test runs one against a remote probe.
  • Flow collectors against many real devices. The two lab routers export a few hundred packets a second at most; the limits, the table bounds and the cost per flow are tested with synthetic traffic, and no test sends a million flows a second. A remote probe's collector is the same code as the local one; no test runs one against a remote probe.
  • Timing and usability in the pilot exercises, and exercises 5 and 6, need people.

AGPL-3.0-only