Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2905878
D4579.id15048.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D4579.id15048.diff
View Options
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 () {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 7, 8:40 AM (21 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2252905
Default Alt Text
D4579.id15048.diff (2 KB)
Attached To
Mode
D4579: [services] Tests - Refactor integration tests
Attached
Detach File
Event Timeline
Log In to Comment