mirror of
https://github.com/vee1e/krply.git
synced 2026-09-01 17:57:03 +00:00
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:
parent
9f4b6c2c5a
commit
8f17c42c65
7 changed files with 469 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue