Skip to content

Commit 3e4fc31

Browse files
feat: individual action tests ADO.NET (#209)
* feat: individual action tests ADO.NET * renaming actions / steps
1 parent f200f69 commit 3e4fc31

12 files changed

+47
-17
lines changed

.github/workflows/tests.yml

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
strategy:
1515
fail-fast: false
1616
matrix:
17-
os: [ubuntu-22.04, windows-2022, macos-12]
18-
dotnet-version: [6.0.x, 7.0.x]
17+
os: [ ubuntu-22.04, windows-2022, macos-12 ]
18+
dotnet-version: [ 6.0.x, 7.0.x ]
1919
include:
2020
- dotnet-version: 6.0.x
2121
dotnet-target-framework: net6.0
@@ -30,17 +30,58 @@ jobs:
3030
with:
3131
dotnet-version: ${{ matrix.dotnet-version }}
3232
- name: Test
33-
run: |
33+
run: |
3434
cd src
3535
dotnet test --filter "Category=Unit" -f ${{ matrix.dotnet-target-framework }}
36-
37-
integration-tests:
36+
37+
ado-net-tests:
3838
runs-on: ubuntu-22.04
3939
strategy:
4040
fail-fast: false
4141
matrix:
4242
ydb-version: [ 'trunk' ]
43-
dotnet-version: [6.0.x, 7.0.x]
43+
dotnet-version: [ 6.0.x, 7.0.x ]
44+
include:
45+
- dotnet-version: 6.0.x
46+
dotnet-target-framework: net6.0
47+
- dotnet-version: 7.0.x
48+
dotnet-target-framework: net7.0
49+
services:
50+
ydb:
51+
image: cr.yandex/yc/yandex-docker-local-ydb:${{ matrix.ydb-version }}
52+
ports:
53+
- 2135:2135
54+
- 2136:2136
55+
- 8765:8765
56+
env:
57+
YDB_LOCAL_SURVIVE_RESTART: true
58+
YDB_USE_IN_MEMORY_PDISKS: true
59+
options: '--name ydb-local -h localhost'
60+
env:
61+
OS: ubuntu-22.04
62+
YDB_VERSION: ${{ matrix.ydb-version }}
63+
YDB_CONNECTION_STRING: grpc://localhost:2136/local
64+
YDB_CONNECTION_STRING_SECURE: grpcs://localhost:2135/local
65+
steps:
66+
- name: Checkout code
67+
uses: actions/checkout@v4
68+
- name: Install Dotnet
69+
uses: actions/setup-dotnet@v4
70+
with:
71+
dotnet-version: ${{ matrix.dotnet-version }}
72+
- name: Run ADO.NET tests
73+
run: |
74+
docker cp ydb-local:/ydb_certs/ca.pem ~/
75+
cd src
76+
dotnet test --filter "(FullyQualifiedName~Ado) | (FullyQualifiedName~Dapper)" -l "console;verbosity=normal"
77+
78+
core-integration-tests:
79+
runs-on: ubuntu-22.04
80+
strategy:
81+
fail-fast: false
82+
matrix:
83+
ydb-version: [ 'trunk' ]
84+
dotnet-version: [ 6.0.x, 7.0.x ]
4485
include:
4586
- dotnet-version: 6.0.x
4687
dotnet-target-framework: net6.0

src/Ydb.Sdk/tests/Ado/Internal/SqlParserTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace Ydb.Sdk.Tests.Ado.Internal;
55

6-
[Trait("Category", "Unit")]
76
public class SqlParserTests
87
{
98
[Fact]

src/Ydb.Sdk/tests/Ado/YdbAdoUserPasswordTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace Ydb.Sdk.Tests.Ado;
55

6-
[Trait("Category", "Integration")]
76
public class YdbAdoUserPasswordTests
87
{
98
[Fact]

src/Ydb.Sdk/tests/Ado/YdbCommandTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
namespace Ydb.Sdk.Tests.Ado;
88

9-
[Trait("Category", "Integration")]
109
public class YdbCommandTests
1110
{
1211
[Theory]

src/Ydb.Sdk/tests/Ado/YdbConnectionStringBuilderTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
namespace Ydb.Sdk.Tests.Ado;
55

6-
[Trait("Category", "Unit")]
76
public class YdbConnectionStringBuilderTests
87
{
98
[Fact]

src/Ydb.Sdk/tests/Ado/YdbConnectionTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
namespace Ydb.Sdk.Tests.Ado;
77

8-
[Trait("Category", "Integration")]
98
[Collection("YdbConnectionTests")]
109
public class YdbConnectionTests
1110
{

src/Ydb.Sdk/tests/Ado/YdbDataReaderTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
namespace Ydb.Sdk.Tests.Ado;
77

8-
[Trait("Category", "Unit")]
98
public class YdbDataReaderTests
109
{
1110
[Fact]

src/Ydb.Sdk/tests/Ado/YdbDataSourceTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Ydb.Sdk.Tests.Ado;
66

7-
[Trait("Category", "Integration")]
87
public class YdbDataSourceTests
98
{
109
private const int SelectedCount = 100;

src/Ydb.Sdk/tests/Ado/YdbExceptionTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Ydb.Sdk.Tests.Ado;
66

7-
[Trait("Category", "Integration")]
87
public class YdbExceptionTests
98
{
109
[Fact]

src/Ydb.Sdk/tests/Ado/YdbParameterCollectionTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Ydb.Sdk.Tests.Ado;
66

7-
[Trait("Category", "Unit")]
87
public class YdbParameterCollectionTests
98
{
109
private readonly YdbParameterCollection _ydbParameterCollection;

0 commit comments

Comments
 (0)