-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature-dotnet8' of https://github.com/Flexberry/NewPla…
…tform.Flexberry.ORM.ODataService into fix-303-repair-mssqlbuild
- Loading branch information
Showing
9 changed files
with
96 additions
and
39 deletions.
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
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
78 changes: 52 additions & 26 deletions
78
Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/README.md
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 |
---|---|---|
@@ -1,26 +1,52 @@ | ||
# Integration Tests | ||
|
||
## Tests run | ||
|
||
Before start test run please fill connection string `ConnectionStringPostgres` in `App.config` like this: | ||
|
||
```xml | ||
<add name="ConnectionStringPostgres" connectionString="SERVER=localhost;User ID=postgres;Password=p@ssw0rd;Port=5432;" /> | ||
``` | ||
Install [Docker](https://docker.com) if it not installed yet and start Docker. | ||
|
||
Then start Docker container with PostgreSQL by command from root folder this repository: | ||
|
||
```sh | ||
docker-compose up | ||
``` | ||
|
||
Tests ready to run. Do it now. | ||
|
||
When the database is no longer needed for tests, run the command: | ||
|
||
```sh | ||
docker-compose down | ||
``` | ||
|
||
Also perform undo in App.config before commit changes. | ||
# Integration Tests | ||
|
||
## Tests run Postgres | ||
|
||
Before start test run please fill connection string `ConnectionStringPostgres` in `App.config` like this: | ||
|
||
```xml | ||
<add name="ConnectionStringPostgres" connectionString="SERVER=localhost;User ID=postgres;Password=p@ssw0rd;Port=5432;" /> | ||
``` | ||
Install [Docker](https://docker.com) if it not installed yet and start Docker. | ||
|
||
Then start Docker container with PostgreSQL by command from root folder this repository: | ||
|
||
```sh | ||
docker-compose up -d | ||
``` | ||
|
||
Tests ready to run. Do it now. | ||
|
||
When the database is no longer needed for tests, run the command: | ||
|
||
```sh | ||
docker-compose down | ||
``` | ||
|
||
Also perform undo in App.config before commit changes. | ||
|
||
## Test run MSSQL | ||
|
||
Before start test run please fill connection string `ConnectionStringMssql` in `App.config` like this: | ||
|
||
```xml | ||
<add name="ConnectionStringMssql" connectionString="SERVER=localhost;User ID=sa;Password=p@ssw0rd;" /> | ||
``` | ||
|
||
Install [Docker](https://docker.com) if it not installed yet and start Docker. | ||
|
||
Then start Docker container with Microsoft SQL Server by command from root folder this repository: | ||
|
||
```sh | ||
docker-compose -f docker-compose-mssql.yml up -d | ||
``` | ||
|
||
Tests ready to run. Do it now. | ||
|
||
When the database is no longer needed for tests, run the command: | ||
|
||
```sh | ||
docker-compose down | ||
``` | ||
|
||
Also perform undo in App.config before commit changes. |
15 changes: 15 additions & 0 deletions
15
Tests/NewPlatform.Flexberry.ORM.ODataService.Tests/docker-compose-mssql.yml
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,15 @@ | ||
version: '3.2' | ||
|
||
services: | ||
mssql: | ||
image: mcr.microsoft.com/mssql/server:2022-latest | ||
environment: | ||
- ACCEPT_EULA=Y | ||
- MSSQL_SA_PASSWORD=p@ssw0rd | ||
ports: | ||
- 1433:1433 | ||
volumes: | ||
- mssqldb:/var/opt/mssql | ||
|
||
volumes: | ||
mssqldb: |