-
Notifications
You must be signed in to change notification settings - Fork 521
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
Extract Aspire.Hosting.SqlServer.Tests project #5056
Merged
Merged
Changes from 16 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
b36fb87
Extract Aspire.Hosting.SqlServer.Tests project
Alirexaa 40eb24f
Merge branch 'main' into sqlserver-tests
Alirexaa ce7a44d
apply suggsted changes
Alirexaa b0fbb8b
Merge branch 'main' into sqlserver-tests
Alirexaa f9b0dc8
Merge remote-tracking branch 'origin/main' into sqlserver-tests
sebastienros 5c1e695
Wait for database server to stop between mounts
sebastienros a5335de
Try /data for data bind mount
sebastienros 87cfbe5
Mount specific folders
sebastienros dbc21e1
Merge remote-tracking branch 'origin/main' into sqlserver-tests
sebastienros 5c4251b
Update permission on Linux
sebastienros 23d613b
Simplify and add VerifyEfResource
sebastienros 4cbb62f
Last attempt at setting correct persmissions
sebastienros ecce22e
Skip WithDataBindMount on CI
sebastienros 57e32d7
Remove previous functional tests
sebastienros 25c24e6
Only skip file mount on CI
sebastienros 1e655ac
Comment for container registry
sebastienros d4fd56d
Update tests/testproject/TestProject.IntegrationServiceA/TestProject.…
sebastienros 709d2b3
Update tests/Aspire.Hosting.SqlServer.Tests/Aspire.Hosting.SqlServer.…
sebastienros 44e2814
Update tests/Aspire.Hosting.SqlServer.Tests/SqlServerFunctionalTests.cs
sebastienros c7f117b
Update tests/Aspire.Hosting.SqlServer.Tests/TestDbContext.cs
sebastienros 953eb94
Test permissions on CI
sebastienros 4f82649
Adapt permissions on non-Windows only
sebastienros 3b987b2
Merge VerifySqlServerResource
sebastienros 7938a1b
Use SetUnixFileMode instead of chmod
sebastienros 9b72989
Update tests/Aspire.Hosting.SqlServer.Tests/SqlServerFunctionalTests.cs
sebastienros 450fc9d
Merge branch 'main' into sqlserver-tests
sebastienros ddbc5ce
Use EnsureCreatedAsync
sebastienros 88e6982
Adapt retry delays
sebastienros 97df947
Adapt required permisions for folder mounts
sebastienros dd1871d
Merge remote-tracking branch 'origin/main' into sqlserver-tests
sebastienros 327ff0b
React to testing changes in main
sebastienros 5c150ce
Don't use test registry
sebastienros c8e3e20
Fix retry pattern
sebastienros 170a349
Merge remote-tracking branch 'origin/main' into sqlserver-tests
sebastienros 4736118
Merge remote-tracking branch 'origin/main' into sqlserver-tests
sebastienros File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
tests/Aspire.Hosting.SqlServer.Tests/Aspire.Hosting.SqlServer.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>$(NetCurrent)</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\src\Aspire.Hosting.AppHost\Aspire.Hosting.AppHost.csproj" /> | ||
sebastienros marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<ProjectReference Include="..\..\src\Aspire.Hosting.SqlServer\Aspire.Hosting.SqlServer.csproj" /> | ||
<ProjectReference Include="..\..\src\Components\Aspire.Microsoft.Data.SqlClient\Aspire.Microsoft.Data.SqlClient.csproj" /> | ||
<ProjectReference Include="..\..\src\Components\Aspire.Microsoft.EntityFrameworkCore.SqlServer\Aspire.Microsoft.EntityFrameworkCore.SqlServer.csproj" /> | ||
<ProjectReference Include="..\Aspire.Hosting.Tests\Aspire.Hosting.Tests.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Include="$(RepoRoot)src\Aspire.Hosting.SqlServer\SqlServerContainerImageTags.cs" /> | ||
<Compile Include="$(SharedDir)VolumeNameGenerator.cs" Link="Utils\VolumeNameGenerator.cs" /> | ||
<Compile Include="$(RepoRoot)src\Aspire.Hosting.Testing\ResourceLoggerForwarderService.cs" Link="Utils\ResourceLoggerForwarderService.cs" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why is this done only for
WithDataBindMount
and not forWithDataVolume
?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.
Binding specific folders only applies to folder mounts, not volumes. Volumes just work fine locally without changes, and the documentation only uses it for folders mounts too.
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.
@rwestMSFT - I see you wrote the documentation being referenced here in MicrosoftDocs/sql-docs@51dddc6. Is there a reason we need to split all 3 directories when binding to a host directory, but when using a docker volume you just need a single volume? Why doesn't it work to map the single top-level
/var/opt/mssql
directory to the host machine?cc @JerryNixon
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.
@eerhardt My name appears on thousands of articles. Please refer to the
author
in metadata when reviewing SQL Docs content.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.
@amitkh-msft - Looks like you are the "author" of the article referenced above. Any chance you can answer the above question?
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.
Ack. Sure, please give me some time. I will look at this and try to answer the question.
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.
Any thoughts @amitkh-msft? Why can't we just bind mount to the root directory instead of the 3 separate ones?