mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-31 07:56:28 +00:00 
			
		
		
		
	Merge #2502
2502: test dump v5 r=ManyTheFish a=MarinPostma this PR adds a test for dump v5 Co-authored-by: ad hoc <postma.marin@protonmail.com>
This commit is contained in:
		| @@ -52,16 +52,13 @@ impl Server { | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     pub async fn new_auth() -> Self { | ||||
|         let dir = TempDir::new().unwrap(); | ||||
|  | ||||
|     pub async fn new_auth_with_options(mut options: Opt, dir: TempDir) -> Self { | ||||
|         if cfg!(windows) { | ||||
|             std::env::set_var("TMP", TEST_TEMP_DIR.path()); | ||||
|         } else { | ||||
|             std::env::set_var("TMPDIR", TEST_TEMP_DIR.path()); | ||||
|         } | ||||
|  | ||||
|         let mut options = default_settings(dir.path()); | ||||
|         options.master_key = Some("MASTER_KEY".to_string()); | ||||
|  | ||||
|         let meilisearch = setup_meilisearch(&options).unwrap(); | ||||
| @@ -79,6 +76,12 @@ impl Server { | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     pub async fn new_auth() -> Self { | ||||
|         let dir = TempDir::new().unwrap(); | ||||
|         let options = default_settings(dir.path()); | ||||
|         Self::new_auth_with_options(options, dir).await | ||||
|     } | ||||
|  | ||||
|     pub async fn new_with_options(options: Opt) -> Result<Self, anyhow::Error> { | ||||
|         let meilisearch = setup_meilisearch(&options)?; | ||||
|         let auth = AuthController::new(&options.db_path, &options.master_key)?; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user