From 5952c90a9444ba92a496bb9a6f9b7a4551180042 Mon Sep 17 00:00:00 2001 From: Ximon Eighteen <3304436+ximon18@users.noreply.github.com> Date: Tue, 12 Sep 2023 13:09:35 +0200 Subject: [PATCH 1/3] Remove duplicate test. The `peer_up_peer_down()` test already covers this case. --- src/units/bmp_in/state_machine/states/dumping.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/units/bmp_in/state_machine/states/dumping.rs b/src/units/bmp_in/state_machine/states/dumping.rs index 49bc1c91..ae4c311d 100644 --- a/src/units/bmp_in/state_machine/states/dumping.rs +++ b/src/units/bmp_in/state_machine/states/dumping.rs @@ -745,10 +745,6 @@ mod tests { #[ignore = "to do"] fn end_of_rib_for_all_pending_peers() {} - #[test] - #[ignore = "to do"] - fn peer_down_withdraws_correct_routes() {} - #[tokio::test] async fn route_monitoring_invalid_message() { // Given From 3500bc4ca62cb2aaa4e0a668fa8b2000d29ba28e Mon Sep 17 00:00:00 2001 From: ximon18 <3304436+ximon18@users.noreply.github.com> Date: Thu, 14 Sep 2023 23:58:33 +0200 Subject: [PATCH 2/3] Remove old commented out code. --- src/targets/mod.rs | 5 ----- src/units/mod.rs | 2 -- 2 files changed, 7 deletions(-) diff --git a/src/targets/mod.rs b/src/targets/mod.rs index 5f51c7d4..58c389b6 100644 --- a/src/targets/mod.rs +++ b/src/targets/mod.rs @@ -20,9 +20,7 @@ mod bmp_tcp_out; #[cfg(feature = "mqtt")] mod mqtt; mod null; -// mod rotoro; -// pub use rotoro::{RotoroCoder, RotoroCommand, WireMsg}; use tokio::sync::mpsc; //------------ Target -------------------------------------------------------- @@ -46,8 +44,6 @@ pub enum Target { #[serde(rename = "mqtt-out")] Mqtt(mqtt::target::Mqtt), - // #[serde(rename = "rotoro-out")] - // Rotoro(rotoro::Target), #[serde(rename = "null-out")] Null(null::Target), } @@ -65,7 +61,6 @@ impl Target { Target::BmpTcpOut(target) => target.run(component, cmd, waitpoint).await, #[cfg(feature = "mqtt")] Target::Mqtt(target) => target.run(component, cmd, waitpoint).await, - // Target::Rotoro(target) => target.run(component, cmd).await, Target::Null(target) => target.run(component, cmd, waitpoint).await, } } diff --git a/src/units/mod.rs b/src/units/mod.rs index c0b9af29..3df460d9 100644 --- a/src/units/mod.rs +++ b/src/units/mod.rs @@ -47,8 +47,6 @@ pub enum Unit { #[serde(rename = "filter")] Filter(filter::unit::Filter), - // #[serde(rename = "rotoro-in")] - // Rotoro(rotoro::unit::RotoroIn), #[serde(rename = "bmp-in")] BmpIn(bmp_in::unit::BmpIn), From b937951b595a1995cc0035cd2844e0a305d310cd Mon Sep 17 00:00:00 2001 From: Ximon Eighteen <3304436+ximon18@users.noreply.github.com> Date: Fri, 15 Sep 2023 13:13:58 +0200 Subject: [PATCH 3/3] Add manually invoked GH Actions cargo build/test run. --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..25e18585 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: ci + +on: + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose