test(core): cover the review fixes; scope history gaps; guard record --server

Adds regression tests for the fixed-width timestamp format and sub-second
boundaries, in-memory store dedup and cursor pagination, stream-ID selector
escaping, live-vs-synthetic event IDs, gap healing and baseline state reset,
path-scoped diff ignores, nested Added/Removed flags, snapshot watermarks and
the TypeSnapshot record, NodePort/headless service sanitization, the
dry-run-gated apply, skipped-object reporting, and the expanded gvrFor table.
The object-history endpoint now scopes gap markers to the requested window,
and record --server fails loudly instead of silently recording locally.
This commit is contained in:
lakshit verma 2026-08-06 07:01:21 +05:30
parent 9f4b6c2c5a
commit 8f17c42c65
No known key found for this signature in database
GPG key ID: EB498AFC60A7A01A
7 changed files with 469 additions and 0 deletions

View file

@ -2,6 +2,7 @@ package main
import (
"context"
"errors"
"fmt"
"os"
"os/signal"
@ -47,6 +48,9 @@ func init() {
}
func runRecord(cmd *cobra.Command, args []string) error {
if serverURL != "" {
return errors.New("record runs against a live cluster with a local store; --server is not supported (omit --server)")
}
store, err := openStore(storePath)
if err != nil {
return err