test(cli): pass --yes in the S3 e2e overwrite load (RFC-011 Decision 9) (#265)

The RustFS S3 integration job was red on `local_cli_s3_end_to_end_init_load_read_flow`:
the test runs `load --mode overwrite` against an `s3://` target, which the
RFC-011 Decision 9 destructive-write guard now refuses without `--yes`
("refusing destructive `load --mode overwrite` against non-local target …").

The guard is intended and already covered in cli_data.rs; this test slipped
through because it only runs in the bucket-gated RustFS CI job, not the default
local gate. Add `--yes` to match the established pattern used by the other
overwrite-against-non-local tests in this file (lines ~1305, ~1331).

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Andrew Altshuler 2026-06-16 12:24:14 +03:00 committed by GitHub
parent 1493ea4ce6
commit 05cb73eda6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -640,6 +640,10 @@ fn local_cli_s3_end_to_end_init_load_read_flow() {
.arg("load")
.arg("--mode")
.arg("overwrite")
// `--yes` clears the RFC-011 Decision 9 destructive-write
// confirmation: `--mode overwrite` against a non-local (s3://)
// target is refused without it.
.arg("--yes")
.arg("--data")
.arg(fixture("test.jsonl"))
.arg(&graph_uri),