[control] Previews: POST/GET/DELETE /api/v1/previews, tokens scoped to previews only, the upstream allow list, expiry; Windows drive paths in compile options (tests first)

This commit is contained in:
2026-11-17 13:46:33 +01:00
parent 83270e0746
commit fc9e16f1b2
21 changed files with 1677 additions and 43 deletions
+8 -2
View File
@@ -27,7 +27,11 @@ fn a_cli_revoke_is_not_lost_while_the_server_records_token_use() {
let d = TempDir::new("tok-race");
let server = Tokens::new(d.path());
let values: Vec<_> = (0..150)
.map(|i| server.create(&format!("t{i}"), None).unwrap())
.map(|i| {
server
.create(&format!("t{i}"), None, Default::default())
.unwrap()
})
.collect();
let victim = values[75].0.id.clone();
let mut cli = std::process::Command::new(bin)
@@ -77,7 +81,9 @@ fn concurrent_creates_from_the_cli_and_the_server_all_survive() {
})
.collect();
for i in 0..40 {
server.create(&format!("srv{i}"), None).unwrap();
server
.create(&format!("srv{i}"), None, Default::default())
.unwrap();
}
for c in &mut clis {
assert!(c.wait().unwrap().success());