Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33051280
D4379.1768424219.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D4379.1768424219.diff
View Options
diff --git a/services/commtest/tests/backup_test.rs b/services/commtest/tests/backup_test.rs
--- a/services/commtest/tests/backup_test.rs
+++ b/services/commtest/tests/backup_test.rs
@@ -15,12 +15,15 @@
use bytesize::ByteSize;
use tools::Error;
+use std::env;
+
use backup_utils::BackupServiceClient;
#[tokio::test]
async fn backup_test() -> Result<(), Error> {
+ let port = env::var("COMM_SERVICES_PORT_BACKUP").expect("port env var expected but not received");
let mut client =
- BackupServiceClient::connect("http://localhost:50052").await?;
+ BackupServiceClient::connect(format!("http://localhost:{}", port)).await?;
let attachments_fill_size: u64 = 500;
diff --git a/services/commtest/tests/blob_test.rs b/services/commtest/tests/blob_test.rs
--- a/services/commtest/tests/blob_test.rs
+++ b/services/commtest/tests/blob_test.rs
@@ -10,13 +10,15 @@
mod tools;
use bytesize::ByteSize;
+use std::env;
use blob_utils::{BlobData, BlobServiceClient};
use tools::Error;
#[tokio::test]
async fn blob_test() -> Result<(), Error> {
- let mut client = BlobServiceClient::connect("http://localhost:50053").await?;
+ let port = env::var("COMM_SERVICES_PORT_BLOB").expect("port env var expected but not received");
+ let mut client = BlobServiceClient::connect(format!("http://localhost:{}", port)).await?;
let blob_data = vec![
BlobData {
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
@@ -39,4 +39,8 @@
exit 1;
fi;
+set -o allexport
+source .env
+set +o allexport
+
run_integration_test $SERVICE
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 14, 8:57 PM (12 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5934000
Default Alt Text
D4379.1768424219.diff (1 KB)
Attached To
Mode
D4379: [services] Tests - Read port from the env vars
Attached
Detach File
Event Timeline
Log In to Comment