save progress
This commit is contained in:
@@ -44,7 +44,7 @@ public class TarGzBundleExporterTests
|
||||
using var stream = new MemoryStream();
|
||||
|
||||
// Act
|
||||
var result = await _exporter.ExportToStreamAsync(request, stream);
|
||||
var result = await _exporter.ExportToStreamAsync(request, stream, TestContext.Current.CancellationToken);
|
||||
|
||||
// Assert
|
||||
result.Success.Should().BeFalse();
|
||||
@@ -64,7 +64,7 @@ public class TarGzBundleExporterTests
|
||||
using var stream = new MemoryStream();
|
||||
|
||||
// Act
|
||||
var result = await _exporter.ExportToStreamAsync(request, stream);
|
||||
var result = await _exporter.ExportToStreamAsync(request, stream, TestContext.Current.CancellationToken);
|
||||
|
||||
// Assert
|
||||
result.Success.Should().BeTrue();
|
||||
@@ -86,7 +86,7 @@ public class TarGzBundleExporterTests
|
||||
using var stream = new MemoryStream();
|
||||
|
||||
// Act
|
||||
var result = await _exporter.ExportToStreamAsync(request, stream);
|
||||
var result = await _exporter.ExportToStreamAsync(request, stream, TestContext.Current.CancellationToken);
|
||||
|
||||
// Assert
|
||||
result.Success.Should().BeTrue();
|
||||
@@ -118,7 +118,7 @@ public class TarGzBundleExporterTests
|
||||
using var stream = new MemoryStream();
|
||||
|
||||
// Act
|
||||
var result = await _exporter.ExportToStreamAsync(request, stream);
|
||||
var result = await _exporter.ExportToStreamAsync(request, stream, TestContext.Current.CancellationToken);
|
||||
|
||||
// Assert
|
||||
result.Success.Should().BeTrue();
|
||||
@@ -146,7 +146,7 @@ public class TarGzBundleExporterTests
|
||||
using var stream = new MemoryStream();
|
||||
|
||||
// Act
|
||||
var result = await _exporter.ExportToStreamAsync(request, stream);
|
||||
var result = await _exporter.ExportToStreamAsync(request, stream, TestContext.Current.CancellationToken);
|
||||
|
||||
// Assert
|
||||
result.Success.Should().BeTrue();
|
||||
@@ -170,7 +170,7 @@ public class TarGzBundleExporterTests
|
||||
using var stream = new MemoryStream();
|
||||
|
||||
// Act
|
||||
var result = await _exporter.ExportToStreamAsync(request, stream);
|
||||
var result = await _exporter.ExportToStreamAsync(request, stream, TestContext.Current.CancellationToken);
|
||||
|
||||
// Assert
|
||||
result.Success.Should().BeTrue();
|
||||
@@ -198,7 +198,7 @@ public class TarGzBundleExporterTests
|
||||
using var stream = new MemoryStream();
|
||||
|
||||
// Act
|
||||
var result = await _exporter.ExportToStreamAsync(request, stream);
|
||||
var result = await _exporter.ExportToStreamAsync(request, stream, TestContext.Current.CancellationToken);
|
||||
|
||||
// Assert
|
||||
result.Success.Should().BeTrue();
|
||||
@@ -222,7 +222,7 @@ public class TarGzBundleExporterTests
|
||||
using var stream = new MemoryStream();
|
||||
|
||||
// Act
|
||||
var result = await _exporter.ExportToStreamAsync(request, stream);
|
||||
var result = await _exporter.ExportToStreamAsync(request, stream, TestContext.Current.CancellationToken);
|
||||
|
||||
// Assert
|
||||
result.Success.Should().BeTrue();
|
||||
|
||||
@@ -59,7 +59,7 @@ public class EvidenceLockerSchemaEvolutionTests : PostgresSchemaEvolutionTestBas
|
||||
public async Task EvidenceReadOperations_CompatibleWithPreviousSchema()
|
||||
{
|
||||
// Arrange
|
||||
await InitializeAsync();
|
||||
await InitializeAsync(TestContext.Current.CancellationToken);
|
||||
|
||||
// Act
|
||||
var results = await TestReadBackwardCompatibilityAsync(
|
||||
@@ -76,7 +76,7 @@ public class EvidenceLockerSchemaEvolutionTests : PostgresSchemaEvolutionTestBas
|
||||
return exists is true or 1 or (long)1;
|
||||
},
|
||||
result => result,
|
||||
CancellationToken.None);
|
||||
TestContext.Current.CancellationToken);
|
||||
|
||||
// Assert
|
||||
results.Should().AllSatisfy(r => r.IsCompatible.Should().BeTrue(
|
||||
@@ -90,7 +90,7 @@ public class EvidenceLockerSchemaEvolutionTests : PostgresSchemaEvolutionTestBas
|
||||
public async Task EvidenceWriteOperations_CompatibleWithPreviousSchema()
|
||||
{
|
||||
// Arrange
|
||||
await InitializeAsync();
|
||||
await InitializeAsync(TestContext.Current.CancellationToken);
|
||||
|
||||
// Act
|
||||
var results = await TestWriteForwardCompatibilityAsync(
|
||||
@@ -106,7 +106,7 @@ public class EvidenceLockerSchemaEvolutionTests : PostgresSchemaEvolutionTestBas
|
||||
|
||||
await cmd.ExecuteScalarAsync();
|
||||
},
|
||||
CancellationToken.None);
|
||||
TestContext.Current.CancellationToken);
|
||||
|
||||
// Assert
|
||||
results.Should().AllSatisfy(r => r.IsCompatible.Should().BeTrue(
|
||||
@@ -120,7 +120,7 @@ public class EvidenceLockerSchemaEvolutionTests : PostgresSchemaEvolutionTestBas
|
||||
public async Task AttestationStorageOperations_CompatibleAcrossVersions()
|
||||
{
|
||||
// Arrange
|
||||
await InitializeAsync();
|
||||
await InitializeAsync(TestContext.Current.CancellationToken);
|
||||
|
||||
// Act
|
||||
var result = await TestAgainstPreviousSchemaAsync(
|
||||
@@ -132,7 +132,7 @@ public class EvidenceLockerSchemaEvolutionTests : PostgresSchemaEvolutionTestBas
|
||||
|
||||
await cmd.ExecuteScalarAsync();
|
||||
},
|
||||
CancellationToken.None);
|
||||
TestContext.Current.CancellationToken);
|
||||
|
||||
// Assert
|
||||
result.IsCompatible.Should().BeTrue(
|
||||
@@ -146,7 +146,7 @@ public class EvidenceLockerSchemaEvolutionTests : PostgresSchemaEvolutionTestBas
|
||||
public async Task BundleExportOperations_CompatibleAcrossVersions()
|
||||
{
|
||||
// Arrange
|
||||
await InitializeAsync();
|
||||
await InitializeAsync(TestContext.Current.CancellationToken);
|
||||
|
||||
// Act
|
||||
var result = await TestAgainstPreviousSchemaAsync(
|
||||
@@ -160,7 +160,7 @@ public class EvidenceLockerSchemaEvolutionTests : PostgresSchemaEvolutionTestBas
|
||||
|
||||
await cmd.ExecuteScalarAsync();
|
||||
},
|
||||
CancellationToken.None);
|
||||
TestContext.Current.CancellationToken);
|
||||
|
||||
// Assert
|
||||
result.IsCompatible.Should().BeTrue();
|
||||
@@ -173,7 +173,7 @@ public class EvidenceLockerSchemaEvolutionTests : PostgresSchemaEvolutionTestBas
|
||||
public async Task SealedEvidenceOperations_CompatibleAcrossVersions()
|
||||
{
|
||||
// Arrange
|
||||
await InitializeAsync();
|
||||
await InitializeAsync(TestContext.Current.CancellationToken);
|
||||
|
||||
// Act
|
||||
var result = await TestAgainstPreviousSchemaAsync(
|
||||
@@ -188,7 +188,7 @@ public class EvidenceLockerSchemaEvolutionTests : PostgresSchemaEvolutionTestBas
|
||||
|
||||
await cmd.ExecuteScalarAsync();
|
||||
},
|
||||
CancellationToken.None);
|
||||
TestContext.Current.CancellationToken);
|
||||
|
||||
// Assert
|
||||
result.IsCompatible.Should().BeTrue();
|
||||
@@ -201,12 +201,12 @@ public class EvidenceLockerSchemaEvolutionTests : PostgresSchemaEvolutionTestBas
|
||||
public async Task MigrationRollbacks_ExecuteSuccessfully()
|
||||
{
|
||||
// Arrange
|
||||
await InitializeAsync();
|
||||
await InitializeAsync(TestContext.Current.CancellationToken);
|
||||
|
||||
// Act
|
||||
var results = await TestMigrationRollbacksAsync(
|
||||
migrationsToTest: 3,
|
||||
CancellationToken.None);
|
||||
TestContext.Current.CancellationToken);
|
||||
|
||||
// Assert - relaxed assertion since migrations may not have down scripts
|
||||
results.Should().NotBeNull();
|
||||
|
||||
Reference in New Issue
Block a user