chore: take deployment-specific material out of the repository for the first release
- MBU parity map, cutover runbook and the tasks/ planning notes move outside the repo - tests/mbu becomes tests/fixtures with generic application names and no placement inventory - test fixtures in Rust and web use neutral names - scripts/export-public.sh checks an external list of private terms instead of naming them Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1753,21 +1753,21 @@ async fn an_administrator_can_rename_a_target_and_everything_that_points_at_it_k
|
||||
&admin,
|
||||
"PUT",
|
||||
&uri,
|
||||
Some(json!({"name": "presensi · dev · app_dev"})),
|
||||
Some(json!({"name": "billing · dev · app_dev"})),
|
||||
)
|
||||
.await;
|
||||
assert_eq!(status, StatusCode::NO_CONTENT);
|
||||
|
||||
let (_, overview) = lab.send(&admin, "GET", "/api/v1/relations", None).await;
|
||||
let target = &overview["targets"][0];
|
||||
assert_eq!(target["name"], "presensi · dev · app_dev");
|
||||
assert_eq!(target["name"], "billing · dev · app_dev");
|
||||
assert_eq!(target["id"], lab.target.to_string());
|
||||
assert_eq!(
|
||||
target["identity"]["database"], "staging_app",
|
||||
"identity is untouched"
|
||||
);
|
||||
let relation = &overview["relations"][0];
|
||||
assert_eq!(relation["target_name"], "presensi · dev · app_dev");
|
||||
assert_eq!(relation["target_name"], "billing · dev · app_dev");
|
||||
assert_eq!(
|
||||
relation["id"], lab.relation,
|
||||
"the relation is the same relation"
|
||||
@@ -1777,9 +1777,9 @@ async fn an_administrator_can_rename_a_target_and_everything_that_points_at_it_k
|
||||
let (_, mine) = lab
|
||||
.send(&qa, "GET", "/api/v1/refresh-relations", None)
|
||||
.await;
|
||||
assert_eq!(mine[0]["target_name"], "presensi · dev · app_dev");
|
||||
assert_eq!(mine[0]["target_name"], "billing · dev · app_dev");
|
||||
let confirmation = format!(
|
||||
"REFRESH prod-db TO presensi · dev · app_dev v{}",
|
||||
"REFRESH prod-db TO billing · dev · app_dev v{}",
|
||||
lab.relation_version
|
||||
);
|
||||
let (status, body) = lab
|
||||
@@ -1884,7 +1884,7 @@ async fn renaming_an_orbit_renames_its_old_snapshots_everywhere_they_are_shown()
|
||||
|
||||
let uri = format!("/api/v1/orbits/{}", lab.orbit);
|
||||
assert_eq!(
|
||||
lab.send(&admin, "PUT", &uri, Some(json!({"name": " broiler "})))
|
||||
lab.send(&admin, "PUT", &uri, Some(json!({"name": " warehouse "})))
|
||||
.await
|
||||
.0,
|
||||
StatusCode::NO_CONTENT
|
||||
@@ -1892,21 +1892,21 @@ async fn renaming_an_orbit_renames_its_old_snapshots_everywhere_they_are_shown()
|
||||
|
||||
// the snapshot was written under the old name; it is shown under the current one
|
||||
let (_, listed) = lab.send(&admin, "GET", "/api/v1/snapshots", None).await;
|
||||
assert_eq!(listed[0]["orbit_name"], "broiler", "{listed}");
|
||||
assert_eq!(listed[0]["orbit_name"], "warehouse", "{listed}");
|
||||
assert!(lab
|
||||
.download_disposition(snapshot)
|
||||
.await
|
||||
.contains("filename=\"broiler_"));
|
||||
.contains("filename=\"warehouse_"));
|
||||
let (_, overview) = lab.send(&admin, "GET", "/api/v1/relations", None).await;
|
||||
assert!(overview["orbits"]
|
||||
.as_array()
|
||||
.unwrap()
|
||||
.iter()
|
||||
.any(|o| o["name"] == "broiler"));
|
||||
.any(|o| o["name"] == "warehouse"));
|
||||
let (_, mine) = lab
|
||||
.send(&qa, "GET", "/api/v1/refresh-relations", None)
|
||||
.await;
|
||||
assert_eq!(mine[0]["source_name"], "broiler");
|
||||
assert_eq!(mine[0]["source_name"], "warehouse");
|
||||
// nothing but the name moved: the relation, its confirmation text and the id are the same relation
|
||||
assert_eq!(overview["relations"][0]["id"], lab.relation);
|
||||
assert!(
|
||||
|
||||
Reference in New Issue
Block a user