fix(supabase): R5.5 gate round 1, final errors, four attempts, keys off argv, runbook
This commit is contained in:
1 parent
a481af52c7
commit
56593af25c
10 files changed
+330
-17
No files matched your search
@@ -314,3 +314,41 @@ fn a_usage_error_names_the_usage() {
|
||||
assert_eq!(output.status.code(), Some(1));
|
||||
assert!(text(&output).contains("usage"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn an_oversized_object_is_a_final_state_refusal_not_retried() {
|
||||
let (state, url) = stub();
|
||||
let huge = vec![b'x'; 16 * 1024 * 1024 + 2];
|
||||
state
|
||||
.lock()
|
||||
.unwrap()
|
||||
.objects
|
||||
.insert(format!("{SHA}.svg"), huge);
|
||||
let output = run(&url, &[DRAFT]);
|
||||
let said = text(&output);
|
||||
assert_eq!(output.status.code(), Some(1), "{said}");
|
||||
assert!(said.contains("State"), "{said}");
|
||||
let log = state.lock().unwrap().log.clone();
|
||||
assert_eq!(
|
||||
log.iter()
|
||||
.filter(|l| l.contains("/storage/v1/object/"))
|
||||
.count(),
|
||||
1
|
||||
);
|
||||
assert_eq!(writes(&state), 0);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_dev_address_that_is_not_this_machine_is_ignored() {
|
||||
let output = Command::new(env!("CARGO_BIN_EXE_upload-sheet-assets"))
|
||||
.args(["--check", DRAFT])
|
||||
.env_clear()
|
||||
.env("SUPABASE_URL", "http://10.255.255.254:54321")
|
||||
.env("FAUNOSTEO_DEV_HOST", "10.255.255.254")
|
||||
.env("SUPABASE_SERVICE_ROLE_KEY", KEY)
|
||||
.output()
|
||||
.unwrap();
|
||||
let said = text(&output);
|
||||
assert_eq!(output.status.code(), Some(1), "{said}");
|
||||
assert!(said.contains("Destination"), "{said}");
|
||||
}
|
||||
Reference in new issue
Block a user