delivery: a composition's digest leaves its plan out, as a have, a want and the apply name it by its resources (ADR 0593 §6)
Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
This commit is contained in:
@@ -81,8 +81,11 @@ func TestComposeCandidateAndComposedPlanRoundTripAndRefuse(t *testing.T) {
|
||||
}
|
||||
d1, _ := ComposedDigestOf(planned)
|
||||
d0, _ := ComposedDigestOf(Composed{Node: "ace", Module: "netcheck", FP: fp, Resources: []json.RawMessage{}})
|
||||
if d1 == "" || d1 == d0 {
|
||||
t.Error("the digest does not move with the plan")
|
||||
if d1 == "" || d1 != d0 {
|
||||
t.Error("the digest moves with the plan: it is the resources' alone")
|
||||
}
|
||||
if SameComposed(planned, Composed{Node: "ace", Module: "netcheck", FP: fp, Resources: []json.RawMessage{}}) {
|
||||
t.Error("a plan change is not a new composition value")
|
||||
}
|
||||
refused := Composed{Node: "ace", Module: "netcheck", FP: fp, Refused: "the setting domain has no value"}
|
||||
if raw, err = EncodeComposed(refused); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user