-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Use TestContainers for Azurite #19162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: skrypt/media-azure-gen2
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,3 +57,7 @@ jobs: | |
| src/OrchardCore.Mvc.Web/App_Data_Tests/logs | ||
| test/OrchardCore.Tests.Functional/traces | ||
| retention-days: 3 | ||
| - name: Integration Tests | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above. |
||
| if: matrix.os == 'ubuntu-24.04' | ||
| run: | | ||
| dotnet test --project ./test/OrchardCore.Tests.Integration/OrchardCore.Tests.Integration.csproj -c Release --no-build | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,6 +64,10 @@ jobs: | |
| src/OrchardCore.Mvc.Web/App_Data_Tests/logs | ||
| test/OrchardCore.Tests.Functional/traces | ||
| retention-days: 3 | ||
| - name: Integration Tests | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
| if: matrix.os == 'ubuntu-24.04' | ||
| run: | | ||
| dotnet test --project ./test/OrchardCore.Tests.Integration/OrchardCore.Tests.Integration.csproj -c Release --no-build | ||
| - name: Deploy preview NuGet packages | ||
| if: steps.check-publish.outputs.should-publish == 'true' | ||
| run: | | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ public sealed class BlobFileStoreGen2Tests : BlobFileStoreTestsBase | |
| { | ||
| protected override bool IsHnsEnabled => true; | ||
|
|
||
| [AzuriteFact] | ||
| [Fact] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These will all fail because Azurite does not support Gen 2 storage type yet. |
||
| public async Task CreateDirectory_Nested_CreatesIntermediateDirectories() | ||
| { | ||
| await TryCreateDirectoryAsync("a/b/c"); | ||
|
|
@@ -21,7 +21,7 @@ public async Task CreateDirectory_Nested_CreatesIntermediateDirectories() | |
| Assert.NotNull(await GetDirectoryInfoAsync("a")); | ||
| } | ||
|
|
||
| [AzuriteFact] | ||
| [Fact] | ||
| public async Task GetDirectoryContent_Flat_IncludesGen2Directories() | ||
| { | ||
| await TryCreateDirectoryAsync("flat-gen2"); | ||
|
|
@@ -41,7 +41,7 @@ public async Task GetDirectoryContent_Flat_IncludesGen2Directories() | |
| Assert.Contains(entries, e => !e.IsDirectory && e.Name == "nested.txt"); | ||
| } | ||
|
|
||
| [AzuriteFact] | ||
| [Fact] | ||
| public async Task MoveFile_IsAtomic() | ||
| { | ||
| // Gen2 move uses DataLake RenameAsync which is an atomic server-side operation. | ||
|
|
@@ -56,7 +56,7 @@ public async Task MoveFile_IsAtomic() | |
| Assert.Equal("atomic", await ReadFileContentAsync("atomic-dst.txt")); | ||
| } | ||
|
|
||
| [AzuriteFact] | ||
| [Fact] | ||
| public async Task GetDirectoryInfo_AfterDeletingDirectory_ReturnsNull() | ||
| { | ||
| await TryCreateDirectoryAsync("temp-dir"); | ||
|
|
@@ -67,7 +67,7 @@ public async Task GetDirectoryInfo_AfterDeletingDirectory_ReturnsNull() | |
| Assert.Null(await GetDirectoryInfoAsync("temp-dir")); | ||
| } | ||
|
|
||
| [AzuriteFact] | ||
| [Fact] | ||
| public async Task CreateDirectory_EmptyDirectory_ExistsWithNoContent() | ||
| { | ||
| await TryCreateDirectoryAsync("empty-gen2-dir"); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we should keep the original integration_tests.yml file.