Make delivery and integration failures explicit
Persist reminder presentations and retry state, atomically complete collapsed deliveries, fall back across away reaches, and block permanent failures visibly (V-715, V-678). Fail closed when enabled integrations lack credentials and keep remote arms explicitly dark (V-691). Give mavweb one sanitized, request-correlated error contract (V-689). Owner explicitly requested direct commits to master.
This commit is contained in:
@@ -16,6 +16,18 @@ import (
|
||||
|
||||
const ambientTestToken = "s3cret"
|
||||
|
||||
func TestValidateAmbientConfig(t *testing.T) {
|
||||
if err := validateAmbientConfig(false, ""); err != nil {
|
||||
t.Fatalf("explicitly disabled ambient config: %v", err)
|
||||
}
|
||||
if err := validateAmbientConfig(true, ""); err == nil {
|
||||
t.Fatal("enabled ambient ingest accepted an empty token")
|
||||
}
|
||||
if err := validateAmbientConfig(true, ambientTestToken); err != nil {
|
||||
t.Fatalf("enabled authenticated ambient config: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
// ambientCore adds provenance-scoped reads to fakeCore, which the dedupe path
|
||||
// needs.
|
||||
type ambientCore struct {
|
||||
|
||||
Reference in New Issue
Block a user