Skip to content

Commit

Permalink
Prepare release (#1687)
Browse files Browse the repository at this point in the history
* Update dependencies.

* Disable TLS usage for local database server connections in CI test runs. (#1651)

(cherry picked from commit 43896e5)

* Fix tests for compatibility with EF Core 6.0.7.

* Install MySQL chocolatey package from local source on Windows CI platforms.
  • Loading branch information
lauxjpn authored Jul 22, 2022
1 parent ea268b7 commit dbb3238
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dependencies.targets
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PackageReference Update="MySqlConnector" Version="2.1.2" />

<PackageReference Update="NetTopologySuite" Version="2.3.0" />
<PackageReference Update="System.Text.Json" Version="6.0.7" />
<PackageReference Update="System.Text.Json" Version="6.0.5" />
<PackageReference Update="Newtonsoft.Json" Version="13.0.1" />

<PackageReference Update="Castle.Core" Version="4.4.1" />
Expand Down
12 changes: 10 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,16 @@ jobs:
$mySqlIniPath = 'C:\tools\mysql\current\my.ini'
$mySqlDataPath = 'C:\ProgramData\MySQL\data'
echo "Chocolatey command: choco install '$(databaseServerType)' '--version=$(databaseServerVersion)' --params `"/serviceName:$mySqlServiceName`""
choco install '$(databaseServerType)' '--version=$(databaseServerVersion)' --params "/serviceName:$mySqlServiceName"
# Manually install chocolatey package, because the files size can lead to the package being exempted on the official repository.
git clone https://github.com/mkevenaar/chocolatey-packages.git
$localChocolateyRepositoryName = 'local-chocolatey-repository'
mkdir $localChocolateyRepositoryName
choco pack '.\chocolatey-packages\automatic\$(databaseServerType)\$(databaseServerType).nuspec' --out $localChocolateyRepositoryName
choco source add -n $localChocolateyRepositoryName -s "$((Get-Item $localChocolateyRepositoryName).FullName)"
echo "Chocolatey command: choco install $(databaseServerType) -s `"$localChocolateyRepositoryName;chocolatey`" '--version=$(databaseServerVersion)' --params `"/serviceName:$mySqlServiceName`""
choco install $(databaseServerType) -s "$localChocolateyRepositoryName;chocolatey" '--version=$(databaseServerVersion)' --params "/serviceName:$mySqlServiceName"
Get-Service *MySQL* -ErrorAction SilentlyContinue
Stop-Service $mySqlServiceName -Verbose
Expand Down
2 changes: 2 additions & 0 deletions test/EFCore.MySql.FunctionalTests/StoreGeneratedMySqlTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ protected override void OnModelCreating(ModelBuilder modelBuilder, DbContext con

modelBuilder.Entity<NonStoreGenDependent>().Property(e => e.HasTemp).HasDefaultValue(777);

modelBuilder.Entity<CompositePrincipal>().Property(e => e.Id).UseMySqlIdentityColumn();

base.OnModelCreating(modelBuilder, context);
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/EFCore.MySql.FunctionalTests/config.json.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Data": {
"ConnectionString": "server=127.0.0.1;user id=root;password=Password12!;port=3306;",
"ConnectionString": "server=127.0.0.1;user id=root;password=Password12!;port=3306;sslmode=none;",
"ServerVersion": "auto",
"CommandTimeout": "600"
}
Expand Down
2 changes: 1 addition & 1 deletion test/EFCore.MySql.IntegrationTests/config.json.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Data": {
"ConnectionString": "server=127.0.0.1;user id=root;password=Password12!;port=3306;database=pomelo_test;",
"ConnectionString": "server=127.0.0.1;user id=root;password=Password12!;port=3306;sslmode=none;database=pomelo_test;",
"ServerVersion": "auto",
"CommandTimeout": "600"
}
Expand Down
2 changes: 1 addition & 1 deletion test/EFCore.MySql.Tests/config.json.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Data": {
"ConnectionString": "server=127.0.0.1;user id=root;password=Password12!;port=3306;",
"ConnectionString": "server=127.0.0.1;user id=root;password=Password12!;port=3306;sslmode=none;",
"ServerVersion": "auto",
"CommandTimeout": "600"
}
Expand Down

0 comments on commit dbb3238

Please sign in to comment.