From fa3b943defc7784f41d9db5096154fac7ca1f882 Mon Sep 17 00:00:00 2001 From: aviv Date: Mon, 20 May 2024 17:38:21 +0300 Subject: [PATCH] RavenDB-20325 : change tests to run in all database modes --- .../PeriodicBackup/PeriodicBackupSlowTests.cs | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/test/SlowTests/Server/Documents/PeriodicBackup/PeriodicBackupSlowTests.cs b/test/SlowTests/Server/Documents/PeriodicBackup/PeriodicBackupSlowTests.cs index 0848662259f9..cc9bafc3cf91 100644 --- a/test/SlowTests/Server/Documents/PeriodicBackup/PeriodicBackupSlowTests.cs +++ b/test/SlowTests/Server/Documents/PeriodicBackup/PeriodicBackupSlowTests.cs @@ -4005,13 +4005,14 @@ await store.Subscriptions.CreateAsync(new SubscriptionCreationOptions } } - [RavenFact(RavenTestCategory.Smuggler | RavenTestCategory.BackupExportImport | RavenTestCategory.TimeSeries)] - public async Task can_backup_and_restore_with_deleted_timeseries_ranges() + [RavenTheory(RavenTestCategory.Smuggler | RavenTestCategory.BackupExportImport | RavenTestCategory.TimeSeries)] + [RavenData(DatabaseMode = RavenDatabaseMode.All)] + public async Task can_backup_and_restore_with_deleted_timeseries_ranges(Options options) { var backupPath = NewDataPath(suffix: "BackupFolder"); const string id = "users/1"; - using (var store = GetDocumentStore()) + using (var store = GetDocumentStore(options)) { var baseline = DateTime.UtcNow; using (var session = store.OpenAsyncSession()) @@ -4058,7 +4059,7 @@ public async Task can_backup_and_restore_with_deleted_timeseries_ranges() }, expectedVal: true)); } - using (var store = GetDocumentStore()) + using (var store = GetDocumentStore(options)) { await store.Smuggler.ImportIncrementalAsync(new DatabaseSmugglerImportOptions(), Directory.GetDirectories(backupPath).First()); @@ -4074,13 +4075,14 @@ await store.Smuggler.ImportIncrementalAsync(new DatabaseSmugglerImportOptions(), } } - [RavenFact(RavenTestCategory.Smuggler | RavenTestCategory.BackupExportImport | RavenTestCategory.TimeSeries)] - public async Task deleted_ranges_should_be_processed_before_timeseries() + [RavenTheory(RavenTestCategory.Smuggler | RavenTestCategory.BackupExportImport | RavenTestCategory.TimeSeries)] + [RavenData(DatabaseMode = RavenDatabaseMode.All)] + public async Task deleted_ranges_should_be_processed_before_timeseries(Options options) { var backupPath = NewDataPath(suffix: "BackupFolder"); const string id = "users/1"; - using (var store = GetDocumentStore()) + using (var store = GetDocumentStore(options)) { var baseline = DateTime.UtcNow; using (var session = store.OpenAsyncSession()) @@ -4133,7 +4135,7 @@ public async Task deleted_ranges_should_be_processed_before_timeseries() }, expectedVal: true)); } - using (var store = GetDocumentStore()) + using (var store = GetDocumentStore(options)) { await store.Smuggler.ImportIncrementalAsync(new DatabaseSmugglerImportOptions(), Directory.GetDirectories(backupPath).First());