diff --git a/.github/workflows/test-integration.yml b/.github/workflows/test-integration.yml index 83bcec9..6b2db08 100644 --- a/.github/workflows/test-integration.yml +++ b/.github/workflows/test-integration.yml @@ -12,7 +12,7 @@ on: env: CARGO_TERM_COLOR: always - DATABASE_URL: postgresql://postgres:postgres@localhost:5432/readur_test + DATABASE_URL: postgresql://readur:readur@localhost:5432/readur jobs: integration-tests: diff --git a/tests/integration_document_upload_hash_duplicate_tests.rs b/tests/integration_document_upload_hash_duplicate_tests.rs index d2e7d0f..9c43669 100644 --- a/tests/integration_document_upload_hash_duplicate_tests.rs +++ b/tests/integration_document_upload_hash_duplicate_tests.rs @@ -70,7 +70,7 @@ async fn create_test_app_state() -> Result> { // Create a test config if env fails - use DATABASE_URL env var or fallback let database_url = std::env::var("DATABASE_URL") .or_else(|_| std::env::var("TEST_DATABASE_URL")) - .unwrap_or_else(|_| "postgresql://postgres:postgres@localhost:5432/readur_test".to_string()); + .unwrap_or_else(|_| "postgresql://readur:readur@localhost:5432/readur".to_string()); Config { database_url, server_address: "127.0.0.1:8000".to_string(), diff --git a/tests/integration_ignored_files_integration_tests.rs b/tests/integration_ignored_files_integration_tests.rs index 47951ce..a73458b 100644 --- a/tests/integration_ignored_files_integration_tests.rs +++ b/tests/integration_ignored_files_integration_tests.rs @@ -13,7 +13,7 @@ async fn create_test_app_state() -> Result> { let config = Config::from_env().unwrap_or_else(|_| { let database_url = std::env::var("DATABASE_URL") .or_else(|_| std::env::var("TEST_DATABASE_URL")) - .unwrap_or_else(|_| "postgresql://postgres:postgres@localhost:5432/readur_test".to_string()); + .unwrap_or_else(|_| "postgresql://readur:readur@localhost:5432/readur".to_string()); Config { database_url, diff --git a/tests/integration_ocr_pipeline_integration_test.rs b/tests/integration_ocr_pipeline_integration_test.rs index 26202a1..9b61831 100644 --- a/tests/integration_ocr_pipeline_integration_test.rs +++ b/tests/integration_ocr_pipeline_integration_test.rs @@ -35,7 +35,7 @@ impl OCRPipelineTestHarness { async fn new() -> Result { let database_url = std::env::var("TEST_DATABASE_URL") .or_else(|_| std::env::var("DATABASE_URL")) - .unwrap_or_else(|_| "postgresql://postgres:postgres@localhost:5432/readur_test".to_string()); + .unwrap_or_else(|_| "postgresql://readur:readur@localhost:5432/readur".to_string()); // Initialize database connection with higher limits for stress testing let pool = sqlx::postgres::PgPoolOptions::new() diff --git a/tests/integration_source_sync_hash_duplicate_tests.rs b/tests/integration_source_sync_hash_duplicate_tests.rs index 93e3b0d..8297da4 100644 --- a/tests/integration_source_sync_hash_duplicate_tests.rs +++ b/tests/integration_source_sync_hash_duplicate_tests.rs @@ -116,7 +116,7 @@ async fn create_test_app_state() -> Result> { let config = Config::from_env().unwrap_or_else(|_| { let database_url = std::env::var("DATABASE_URL") .or_else(|_| std::env::var("TEST_DATABASE_URL")) - .unwrap_or_else(|_| "postgresql://postgres:postgres@localhost:5432/readur_test".to_string()); + .unwrap_or_else(|_| "postgresql://readur:readur@localhost:5432/readur".to_string()); Config { database_url, server_address: "127.0.0.1:8000".to_string(), diff --git a/tests/integration_webdav_hash_duplicate_tests.rs b/tests/integration_webdav_hash_duplicate_tests.rs index 88e50af..7ae4e74 100644 --- a/tests/integration_webdav_hash_duplicate_tests.rs +++ b/tests/integration_webdav_hash_duplicate_tests.rs @@ -116,7 +116,7 @@ async fn create_test_app_state() -> Result> { let config = Config::from_env().unwrap_or_else(|_| { let database_url = std::env::var("DATABASE_URL") .or_else(|_| std::env::var("TEST_DATABASE_URL")) - .unwrap_or_else(|_| "postgresql://postgres:postgres@localhost:5432/readur_test".to_string()); + .unwrap_or_else(|_| "postgresql://readur:readur@localhost:5432/readur".to_string()); Config { database_url, server_address: "127.0.0.1:8000".to_string(),