mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-05 15:08:24 +00:00
test: move lifecycle deletion suites under tests/lifecycle
This commit is contained in:
+60
@@ -81,5 +81,65 @@ path = "src/lib.rs"
|
||||
name = "ngit-grasp"
|
||||
path = "src/main.rs"
|
||||
|
||||
[[test]]
|
||||
name = "nip09_announcement_cascade"
|
||||
path = "tests/lifecycle/nip09_announcement_cascade.rs"
|
||||
|
||||
[[test]]
|
||||
name = "nip09_blacklist_ops"
|
||||
path = "tests/lifecycle/nip09_blacklist_ops.rs"
|
||||
|
||||
[[test]]
|
||||
name = "nip09_cascade_event_types"
|
||||
path = "tests/lifecycle/nip09_cascade_event_types.rs"
|
||||
|
||||
[[test]]
|
||||
name = "nip09_disrespector"
|
||||
path = "tests/lifecycle/nip09_disrespector.rs"
|
||||
|
||||
[[test]]
|
||||
name = "nip09_git_archive_cleanup"
|
||||
path = "tests/lifecycle/nip09_git_archive_cleanup.rs"
|
||||
|
||||
[[test]]
|
||||
name = "nip09_holding_cleanup"
|
||||
path = "tests/lifecycle/nip09_holding_cleanup.rs"
|
||||
|
||||
[[test]]
|
||||
name = "nip09_holding_db"
|
||||
path = "tests/lifecycle/nip09_holding_db.rs"
|
||||
|
||||
[[test]]
|
||||
name = "nip09_multi_maintainer"
|
||||
path = "tests/lifecycle/nip09_multi_maintainer.rs"
|
||||
|
||||
[[test]]
|
||||
name = "nip09_recovery"
|
||||
path = "tests/lifecycle/nip09_recovery.rs"
|
||||
|
||||
[[test]]
|
||||
name = "nip09_state_cascade"
|
||||
path = "tests/lifecycle/nip09_state_cascade.rs"
|
||||
|
||||
[[test]]
|
||||
name = "nip09_state_multi_maintainer"
|
||||
path = "tests/lifecycle/nip09_state_multi_maintainer.rs"
|
||||
|
||||
[[test]]
|
||||
name = "nip09_validation"
|
||||
path = "tests/lifecycle/nip09_validation.rs"
|
||||
|
||||
[[test]]
|
||||
name = "nip62_lifecycle"
|
||||
path = "tests/lifecycle/nip62_lifecycle.rs"
|
||||
|
||||
[[test]]
|
||||
name = "nip62_validation"
|
||||
path = "tests/lifecycle/nip62_validation.rs"
|
||||
|
||||
[[test]]
|
||||
name = "replaceable_history"
|
||||
path = "tests/lifecycle/replaceable_history.rs"
|
||||
|
||||
[workspace]
|
||||
members = [".", "grasp-audit"]
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
//! cargo test --test nip09_announcement_cascade -- --nocapture
|
||||
//! ```
|
||||
|
||||
#[path = "../common/mod.rs"]
|
||||
mod common;
|
||||
|
||||
use common::{announcement_coordinate, build_deletion, publish_served_repo, TestRelay};
|
||||
@@ -4,6 +4,7 @@
|
||||
//! (1630), comment (1111), repo-status (1633), PR chain
|
||||
//! (1618/1619/1631/1632).
|
||||
|
||||
#[path = "../common/mod.rs"]
|
||||
mod common;
|
||||
|
||||
use common::{
|
||||
@@ -28,6 +28,7 @@
|
||||
//! cargo test --test nip09_disrespector -- --nocapture
|
||||
//! ```
|
||||
|
||||
#[path = "../common/mod.rs"]
|
||||
mod common;
|
||||
|
||||
use common::{
|
||||
@@ -1,5 +1,6 @@
|
||||
//! Integration tests for Phase 4 git archive lifecycle.
|
||||
|
||||
#[path = "../common/mod.rs"]
|
||||
mod common;
|
||||
|
||||
use common::{announcement_coordinate, build_deletion, publish_served_repo, TestRelay};
|
||||
@@ -1,5 +1,6 @@
|
||||
//! Focused integration tests for Phase 2 holding-DB semantics.
|
||||
|
||||
#[path = "../common/mod.rs"]
|
||||
mod common;
|
||||
|
||||
use common::{
|
||||
@@ -14,6 +14,7 @@
|
||||
//! independent second-announcement git promotion is not currently reliable in
|
||||
//! this fixture setup.
|
||||
|
||||
#[path = "../common/mod.rs"]
|
||||
mod common;
|
||||
|
||||
use common::{
|
||||
@@ -1,5 +1,6 @@
|
||||
//! Integration tests for Phase 5 NIP-09 recovery workflow.
|
||||
|
||||
#[path = "../common/mod.rs"]
|
||||
mod common;
|
||||
|
||||
use common::{
|
||||
@@ -3,6 +3,7 @@
|
||||
//! These tests extend the announcement-cascade coverage to kind-30618
|
||||
//! repository state events in the **single-maintainer** case.
|
||||
|
||||
#[path = "../common/mod.rs"]
|
||||
mod common;
|
||||
|
||||
use common::{
|
||||
+1
@@ -10,6 +10,7 @@
|
||||
//! Serving note: second-maintainer announcements are served via the maintainer
|
||||
//! exception path in this suite (`maintainers` tag + non-local `relays` tag).
|
||||
|
||||
#[path = "../common/mod.rs"]
|
||||
mod common;
|
||||
|
||||
use common::{
|
||||
@@ -49,6 +49,7 @@
|
||||
//! cargo test --test nip09_validation -- --nocapture
|
||||
//! ```
|
||||
|
||||
#[path = "../common/mod.rs"]
|
||||
mod common;
|
||||
|
||||
use common::{
|
||||
@@ -5,6 +5,7 @@
|
||||
//! lifecycle: targeted vanish requests must move served data through holding and
|
||||
//! repository archival instead of hard-deleting directly from the main DB.
|
||||
|
||||
#[path = "../common/mod.rs"]
|
||||
mod common;
|
||||
|
||||
use common::{build_vanish, publish_served_repo, TestRelay};
|
||||
@@ -48,6 +48,7 @@
|
||||
//! cargo test --test nip62_validation -- --nocapture
|
||||
//! ```
|
||||
|
||||
#[path = "../common/mod.rs"]
|
||||
mod common;
|
||||
|
||||
use common::{announcement_served_by_coordinate, build_vanish, publish_served_repo, TestRelay};
|
||||
@@ -1,5 +1,6 @@
|
||||
//! Integration tests for durable replaceable/addressable history capture.
|
||||
|
||||
#[path = "../common/mod.rs"]
|
||||
mod common;
|
||||
|
||||
use clap::Parser;
|
||||
Reference in New Issue
Block a user