-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #1324: Refactor packages: move integration tests to packages
3f50803 tests: scaffolding for integration tests (Jose Celano) f233dd2 refactor: remove unsued dependencies from the main Cargo.toml (Jose Celano) c34c8bc refactor: [#1316] remove unsued code (Jose Celano) 60c5826 refactor: remove duplicate test (Jose Celano) f783dbd refactor: [#1316] move the rest of the Health Check API integration tests to the server pkg (Jose Celano) 1aef0c1 refactor: [#1316] move HTTP tracker integration tests to pkg (Jose Celano) 92505b9 refactor: [#1316] UDP tracker integration tests to pkg (Jose Celano) 08efc3b refactor: [#1316] move tracker API integration tests to pkg (Jose Celano) a841e03 refactor: [#1316] move health check API integration tests to pkg (Jose Celano) Pull request description: Refactor packages: move integration tests to packages. - [x] Move Health Check API integration tests to the server package (`axum-health-check-api-server`). - [x] Move Tracker API integration tests to the server package (`axum-tracker-api-server`). - [x] Move UDP Tracker integration tests to the server package (`udp-tracker-server`). - [x] Move HTTP Tracker integration tests to the server package (`axum-http-tracker-server`). ACKs for top commit: josecelano: ACK 3f50803 Tree-SHA512: 21e6dc8bca036f2d90062032e7fc6b714069b792eb529ddf6784ff071dbfc41ca21953c6ea44e361bdaf4d19ddb96fc8f6c1c091b796c00eae2104d0504a78ed
- Loading branch information
Showing
69 changed files
with
430 additions
and
324 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pub mod environment; | ||
pub mod handlers; | ||
pub mod resources; | ||
pub mod responses; | ||
|
19 changes: 19 additions & 0 deletions
19
packages/axum-health-check-api-server/tests/integration.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//! Integration tests. | ||
//! | ||
//! ```text | ||
//! cargo test --test integration | ||
//! ``` | ||
mod server; | ||
|
||
use torrust_tracker_clock::clock; | ||
|
||
/// This code needs to be copied into each crate. | ||
/// Working version, for production. | ||
#[cfg(not(test))] | ||
#[allow(dead_code)] | ||
pub(crate) type CurrentClock = clock::Working; | ||
|
||
/// Stopped version, for testing. | ||
#[cfg(test)] | ||
#[allow(dead_code)] | ||
pub(crate) type CurrentClock = clock::Stopped; |
File renamed without changes.
Oops, something went wrong.