diff --git a/services/commtest/tests/backup_test.rs b/services/commtest/tests/backup_integration_test.rs rename from services/commtest/tests/backup_test.rs rename to services/commtest/tests/backup_integration_test.rs --- a/services/commtest/tests/backup_test.rs +++ b/services/commtest/tests/backup_integration_test.rs @@ -20,7 +20,7 @@ use backup_utils::BackupServiceClient; #[tokio::test] -async fn backup_test() -> Result<(), Error> { +async fn backup_integration_test() -> Result<(), Error> { let port = env::var("COMM_SERVICES_PORT_BACKUP") .expect("port env var expected but not received"); let mut client = @@ -70,6 +70,7 @@ ), ], }; + backup_data.backup_item.id = create_new_backup::run(&mut client, &backup_data).await?; println!("backup id in main: {}", backup_data.backup_item.id); diff --git a/services/commtest/tests/blob_test.rs b/services/commtest/tests/blob_integration_test.rs rename from services/commtest/tests/blob_test.rs rename to services/commtest/tests/blob_integration_test.rs --- a/services/commtest/tests/blob_test.rs +++ b/services/commtest/tests/blob_integration_test.rs @@ -16,7 +16,7 @@ use tools::Error; #[tokio::test] -async fn blob_test() -> Result<(), Error> { +async fn blob_integration_test() -> Result<(), Error> { let port = env::var("COMM_SERVICES_PORT_BLOB") .expect("port env var expected but not received"); let mut client = diff --git a/services/commtest/tests/tunnelbroker_test.rs b/services/commtest/tests/tunnelbroker_integration_test.rs rename from services/commtest/tests/tunnelbroker_test.rs rename to services/commtest/tests/tunnelbroker_integration_test.rs --- a/services/commtest/tests/tunnelbroker_test.rs +++ b/services/commtest/tests/tunnelbroker_integration_test.rs @@ -2,6 +2,6 @@ mod tools; #[tokio::test] -async fn tunnelbroker_test() { +async fn tunnelbroker_integration_test() { assert!(false, "not implemented"); } diff --git a/services/scripts/run_integration_tests.sh b/services/scripts/run_integration_tests.sh --- a/services/scripts/run_integration_tests.sh +++ b/services/scripts/run_integration_tests.sh @@ -10,7 +10,7 @@ run_integration_test () { echo "integration tests tests will be run for the $1 service" # add -- --nocapture in the end to enable logs - cargo test "$1"_test --test '*' --manifest-path=commtest/Cargo.toml #-- --nocapture + cargo test "$1"_integration_test --test '*' --manifest-path=commtest/Cargo.toml #-- --nocapture } list_expected () {