Skip to content

Commit

Permalink
Version 5.2.2 - fixes issue #48
Browse files Browse the repository at this point in the history
  • Loading branch information
JonPSmith committed Jan 4, 2022
1 parent 994cc0a commit 32ac979
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# EfCore.TestSupport

This NuGet package containing methods to help test applications that use [Entity Framework Core](https://docs.microsoft.com/en-us/ef/core/index) for database access using SQL Server, PostgreSQL, Cosmos DB, and for generic tests of any database type an in-memory SQLite approach. This readme provides links to the documentation in the [EfCore.TestSupport wiki](https://github.com/JonPSmith/EfCore.TestSupport/wiki). Also see [Release Notes](https://github.com/JonPSmith/EfCore.TestSupport/blob/master/ReleaseNotes.md) for information on changes.
This NuGet package containing methods to help test applications that use [Entity Framework Core](https://docs.microsoft.com/en-us/ef/core/index) for database access using SQL Server, PostgreSQL, Cosmos DB, and a generic in-memory SQLite approach which works with every EF Core database provider (with limitations). This readme provides links to the documentation in the [EfCore.TestSupport wiki](https://github.com/JonPSmith/EfCore.TestSupport/wiki). Also see [Release Notes](https://github.com/JonPSmith/EfCore.TestSupport/blob/master/ReleaseNotes.md) for information on changes.

The EfCore.TestSupport library is available on [NuGet as EfCore.TestSupport](https://www.nuget.org/packages/EfCore.TestSupport/) and is an open-source library under the MIT license. See [ReleaseNotes](https://github.com/JonPSmith/EfCore.TestSupport/blob/master/ReleaseNotes.md) for details of the changes in each vesion.

Expand Down
5 changes: 4 additions & 1 deletion ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Release notes

## 5.2.2

- Bug Fix: Use 'current_user' instead of 'postgres' in PostgreSQL version of EnsureClean - see issue #48

## 5.2.1

- Bug Fix: PostgreSQL EnsureClean had a memory leak - now fixed


## 5.2.0

- BREAKING CHANGE from 5.1.0: changed `CreatePostgreSqlUniqueDatabaseOptions` to `CreatePostgreSqlUniqueClassOptions` to match other usages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ FOR r IN (SELECT nspname FROM pg_namespace WHERE nspname NOT IN ('pg_toast', 'pg
LOOP
EXECUTE 'DROP SCHEMA ' || quote_ident(r.nspname) || ' CASCADE';
END LOOP;
EXECUTE 'CREATE SCHEMA public; GRANT ALL ON SCHEMA public TO postgres; GRANT ALL ON SCHEMA public TO public';
EXECUTE 'CREATE SCHEMA public; GRANT ALL ON SCHEMA public TO current_user; GRANT ALL ON SCHEMA public TO public';
END $$"
};
dropPublicSchemaCommand.ExecuteNonQuery();
Expand Down
10 changes: 5 additions & 5 deletions TestSupport/TestSupport.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@

<PropertyGroup>
<PackageId>EfCore.TestSupport</PackageId>
<PackageVersion>5.2.1</PackageVersion>
<Version>5.2.1</Version>
<AssemblyVersion>5.2.1.0</AssemblyVersion>
<FileVersion>5.2.1.0</FileVersion>
<PackageVersion>5.2.2</PackageVersion>
<Version>5.2.2</Version>
<AssemblyVersion>5.2.2.0</AssemblyVersion>
<FileVersion>5.2.2.0</FileVersion>
<Authors>Jon P Smith</Authors>
<Description>Useful tools when unit testing applications that use Entity Framework Core. See readme file on github.</Description>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageReleaseNotes>
- Bug Fix: PostgreSQL EnsureClean had a memory leak - now fixed
- Bug Fix: Use 'current_user' instead of 'postgres' in PostgreSQL version of EnsureClean - see issue #48
</PackageReleaseNotes>
<Copyright>Copyright (c) 2020 Jon P Smith. Licenced under MIT licence</Copyright>
<PackageTags>Entity Framework Core, xUnit</PackageTags>
Expand Down

0 comments on commit 32ac979

Please sign in to comment.