feat(02-02): capture, scrub, and strictly diff stateful flows
Resolve named placeholders from a private variable store, mask dates and ids after shape checks, and keep comparing independent steps. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
10
tide/flow.go
10
tide/flow.go
@@ -74,6 +74,8 @@ type RecordConfig struct {
|
||||
Target string
|
||||
Client *http.Client
|
||||
MaxBody int64
|
||||
Store *Store
|
||||
Rules Rules
|
||||
}
|
||||
|
||||
// ReplayConfig injects the HTTP target, client and body bound for replay.
|
||||
@@ -81,6 +83,7 @@ type ReplayConfig struct {
|
||||
Target string
|
||||
Client *http.Client
|
||||
MaxBody int64
|
||||
Store *Store
|
||||
}
|
||||
|
||||
// Result is the outcome of replaying a flow.
|
||||
@@ -91,9 +94,10 @@ type Result struct {
|
||||
|
||||
// StepResult is the outcome of one replayed step.
|
||||
type StepResult struct {
|
||||
ID string
|
||||
OK bool
|
||||
Diffs []Diff
|
||||
ID string
|
||||
OK bool
|
||||
Skipped bool
|
||||
Diffs []Diff
|
||||
}
|
||||
|
||||
// Diff is one structural JSON or raw-byte mismatch.
|
||||
|
||||
Reference in New Issue
Block a user