huskies: merge 864
This commit is contained in:
@@ -18,6 +18,7 @@ async fn rate_limit_warning_sends_notification_with_agent_and_story() {
|
||||
"365_story_rate_limit",
|
||||
"2_current",
|
||||
"---\nname: Rate Limit Test Story\n---\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: Rate Limit Test Story\n---\n"),
|
||||
);
|
||||
|
||||
let (watcher_tx, watcher_rx) = broadcast::channel::<WatcherEvent>(16);
|
||||
@@ -144,6 +145,7 @@ async fn story_blocked_sends_notification_with_reason() {
|
||||
"425_story_blocking_test",
|
||||
"2_current",
|
||||
"---\nname: Blocking Test Story\n---\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: Blocking Test Story\n---\n"),
|
||||
);
|
||||
|
||||
let (watcher_tx, watcher_rx) = broadcast::channel::<WatcherEvent>(16);
|
||||
|
||||
@@ -17,7 +17,12 @@ async fn stage_notification_uses_dynamic_room_ids() {
|
||||
let tmp = tempfile::tempdir().unwrap();
|
||||
// Seed story via CRDT (the only source of truth).
|
||||
crate::db::ensure_content_store();
|
||||
crate::db::write_item_with_content("10_story_foo", "3_qa", "---\nname: Foo Story\n---\n");
|
||||
crate::db::write_item_with_content(
|
||||
"10_story_foo",
|
||||
"3_qa",
|
||||
"---\nname: Foo Story\n---\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: Foo Story\n---\n"),
|
||||
);
|
||||
|
||||
let (watcher_tx, watcher_rx) = broadcast::channel::<WatcherEvent>(16);
|
||||
let (transport, calls) = MockTransport::new();
|
||||
@@ -106,6 +111,7 @@ fn read_story_name_reads_from_front_matter() {
|
||||
"9942_story_my_feature",
|
||||
"2_current",
|
||||
"---\nname: My Cool Feature\n---\n# Story\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: My Cool Feature\n---\n# Story\n"),
|
||||
);
|
||||
|
||||
let tmp = tempfile::tempdir().unwrap();
|
||||
@@ -128,6 +134,7 @@ fn read_story_name_returns_none_for_missing_name_field() {
|
||||
"9943_story_no_name",
|
||||
"2_current",
|
||||
"---\ncoverage_baseline: 50%\n---\n# Story\n",
|
||||
crate::db::ItemMeta::from_yaml("---\ncoverage_baseline: 50%\n---\n# Story\n"),
|
||||
);
|
||||
|
||||
let tmp = tempfile::tempdir().unwrap();
|
||||
|
||||
@@ -214,6 +214,7 @@ mod tests {
|
||||
story_id,
|
||||
"1_backlog",
|
||||
"---\nname: Service Delete Regression\n---\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: Service Delete Regression\n---\n"),
|
||||
);
|
||||
|
||||
let tmp = tempfile::tempdir().unwrap();
|
||||
|
||||
@@ -79,6 +79,7 @@ mod tests {
|
||||
story_id,
|
||||
"2_current",
|
||||
"---\nname: Freeze Service Test\n---\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: Freeze Service Test\n---\n"),
|
||||
);
|
||||
|
||||
let result = freeze(story_id);
|
||||
@@ -105,6 +106,7 @@ mod tests {
|
||||
story_id,
|
||||
"2_current",
|
||||
"---\nname: Already Frozen\n---\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: Already Frozen\n---\n"),
|
||||
);
|
||||
|
||||
freeze(story_id).expect("first freeze should succeed");
|
||||
@@ -124,6 +126,7 @@ mod tests {
|
||||
story_id,
|
||||
"2_current",
|
||||
"---\nname: Unfreeze Service Test\n---\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: Unfreeze Service Test\n---\n"),
|
||||
);
|
||||
|
||||
freeze(story_id).expect("freeze should succeed");
|
||||
@@ -148,7 +151,12 @@ mod tests {
|
||||
fn unfreeze_not_frozen_item_returns_not_frozen() {
|
||||
crate::crdt_state::init_for_test();
|
||||
let story_id = "8783_story_unfreeze_service_not_frozen";
|
||||
crate::db::write_item_with_content(story_id, "2_current", "---\nname: Not Frozen\n---\n");
|
||||
crate::db::write_item_with_content(
|
||||
story_id,
|
||||
"2_current",
|
||||
"---\nname: Not Frozen\n---\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: Not Frozen\n---\n"),
|
||||
);
|
||||
|
||||
let result = unfreeze(story_id);
|
||||
assert!(
|
||||
@@ -171,6 +179,7 @@ mod tests {
|
||||
story_a,
|
||||
"2_current",
|
||||
"---\nname: Regression Chat Path\n---\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: Regression Chat Path\n---\n"),
|
||||
);
|
||||
|
||||
// Story B simulates the MCP tool path.
|
||||
@@ -179,6 +188,7 @@ mod tests {
|
||||
story_b,
|
||||
"2_current",
|
||||
"---\nname: Regression MCP Path\n---\n",
|
||||
crate::db::ItemMeta::from_yaml("---\nname: Regression MCP Path\n---\n"),
|
||||
);
|
||||
|
||||
// Both paths call service::work_item::freeze().
|
||||
|
||||
Reference in New Issue
Block a user