Skip to content

Commit ef9b076

Browse files
authored
tests(mongo-db): move integration to direct sink generation (#138)
* feat(exception): add option to render in provider as string * feat(ui): implement new exception management * tests(ui): useException, review implementation * tests: new BE option * bump versions * tests(mongodb): use real sink to generate logs * feat(log-model): new Id property, map for mssql, mysql, mongo and raven * feat(elastic): map Id onto hits id * bump packages * bump nugets * Revert "feat(log-model): new Id property, map for mssql, mysql, mongo and raven" This reverts commit d2c2378. * Revert "feat(elastic): map Id onto hits id" This reverts commit 50e6fff.
1 parent e7ae2eb commit ef9b076

File tree

13 files changed

+107
-191
lines changed

13 files changed

+107
-191
lines changed

samples/WebApi/WebApi.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.7"/>
10+
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.8"/>
1111
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.1"/>
1212
<PackageReference Include="Serilog.Enrichers.Environment" Version="3.0.1"/>
1313
<PackageReference Include="Serilog.Extensions.Hosting" Version="8.0.0"/>

samples/WebApp/WebApp.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424
</ItemGroup>
2525

2626
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
27-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.32"/>
27+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.33"/>
2828
</ItemGroup>
2929

3030
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
3131
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.20"/>
3232
</ItemGroup>
3333

3434
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
35-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.7"/>
35+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.8"/>
3636
</ItemGroup>
3737

3838
<!-- Serilog UI packages -->

src/Serilog.Ui.MongoDbProvider/MongoDbLogModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Dynamic;
44
using System.Text.Json;
@@ -12,8 +12,8 @@ namespace Serilog.Ui.MongoDbProvider
1212
[BsonDiscriminator(RootClass = true)]
1313
public class MongoDbLogModel
1414
{
15-
[BsonIgnore]
16-
public int Id { get; set; }
15+
[BsonRepresentation(BsonType.ObjectId)]
16+
public string? Id { get; set; }
1717

1818
public string? Level { get; set; } = string.Empty;
1919

src/Serilog.Ui.MsSqlServerProvider/package-lock.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/Serilog.Ui.Web/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"react": "^18.3.1",
2727
"react-dom": "^18.3.1",
2828
"react-hook-form": "^7.52.2",
29-
"react-router-dom": "^6.26.0",
29+
"react-router-dom": "^6.26.1",
3030
"xml-formatter": "^3.6.3"
3131
},
3232
"devDependencies": {
@@ -35,7 +35,7 @@
3535
"@testing-library/jest-dom": "^6.4.8",
3636
"@testing-library/react": "^16.0.0",
3737
"@testing-library/user-event": "^14.5.2",
38-
"@types/node": "^22.3.0",
38+
"@types/node": "^22.4.0",
3939
"@types/react": "^18.3.3",
4040
"@types/react-dom": "^18.3.0",
4141
"@vitejs/plugin-react-swc": "^3.7.0",
@@ -61,13 +61,13 @@
6161
"postcss-simple-vars": "^7.0.1",
6262
"prettier": "^3.3.3",
6363
"prettier-plugin-organize-imports": "^4.0.0",
64-
"shiki": "^1.12.1",
64+
"shiki": "^1.13.0",
6565
"testing-library-selector": "^0.3.1",
6666
"typescript": "^5.5.4",
6767
"typescript-eslint": "^8.1.0",
68-
"vite": "^5.4.0",
68+
"vite": "^5.4.1",
6969
"vite-plugin-checker": "^0.7.2",
70-
"vite-plugin-mkcert": "^1.17.5",
70+
"vite-plugin-mkcert": "^1.17.6",
7171
"vite-tsconfig-paths": "^5.0.1",
7272
"vitest": "^2.0.5",
7373
"vitest-sonar-reporter": "^2.0.0"

src/Serilog.Ui.Web/yarn.lock

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@
795795
"@octokit/types" "^13.1.0"
796796
universal-user-agent "^6.0.0"
797797

798-
"@octokit/rest@^20.0.2":
798+
"@octokit/rest@^20.1.1":
799799
version "20.1.1"
800800
resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-20.1.1.tgz#ec775864f53fb42037a954b9a40d4f5275b3dc95"
801801
integrity sha512-MB4AYDsM5jhIHro/dq4ix1iWTLGToIGk6cWF5L6vanFaMble5jTX/UBQyiv05HsWnwUtY8JrfHy2LWfKwihqMw==
@@ -845,10 +845,10 @@
845845
resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.25.tgz#f077fdc0b5d0078d30893396ff4827a13f99e817"
846846
integrity sha512-j7P6Rgr3mmtdkeDGTe0E/aYyWEWVtc5yFXtHCRHs28/jptDEWfaVOc5T7cblqy1XKPPfCxJc/8DwQ5YgLOZOVQ==
847847

848-
"@remix-run/[email protected].0":
849-
version "1.19.0"
850-
resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.19.0.tgz#745dbffbce67f05386d57ca22c51dfd85c979593"
851-
integrity sha512-zDICCLKEwbVYTS6TjYaWtHXxkdoUvD/QXvyVZjGCsWz5vyH7aFeONlPffPdW+Y/t6KT0MgXb2Mfjun9YpWN1dA==
848+
"@remix-run/[email protected].1":
849+
version "1.19.1"
850+
resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.19.1.tgz#984771bfd1de2715f42394c87fb716c1349e014f"
851+
integrity sha512-S45oynt/WH19bHbIXjtli6QmwNYvaz+vtnubvNpNDvUOoA/OWh6j1OikIP3G+v5GHdxyC6EXoChG3HgYGEUfcg==
852852

853853
854854
version "4.18.0"
@@ -930,10 +930,10 @@
930930
resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.18.0.tgz#5d694d345ce36b6ecf657349e03eb87297e68da4"
931931
integrity sha512-UOo5FdvOL0+eIVTgS4tIdbW+TtnBLWg1YBCcU2KWM7nuNwRz9bksDX1bekJJCpu25N1DVWaCwnT39dVQxzqS8g==
932932

933-
"@shikijs/core@1.12.1":
934-
version "1.12.1"
935-
resolved "https://registry.yarnpkg.com/@shikijs/core/-/core-1.12.1.tgz#32626494bef573cce01f9e0a36d5776cbc1b2e58"
936-
integrity sha512-biCz/mnkMktImI6hMfMX3H9kOeqsInxWEyCHbSlL8C/2TR1FqfmGxTLRNwYCKsyCyxWLbB8rEqXRVZuyxuLFmA==
933+
"@shikijs/core@1.13.0":
934+
version "1.13.0"
935+
resolved "https://registry.yarnpkg.com/@shikijs/core/-/core-1.13.0.tgz#ffbdf8d27ce5783d97b979659194367e06b63af7"
936+
integrity sha512-Mj5NVfbAXcD1GnwOTSPl8hBn/T8UDpfFQTptp+p41n/CbUcJtOq98WaRD7Lz3hCglYotUTHUWtzu3JhK6XlkAA==
937937
dependencies:
938938
"@types/hast" "^3.0.4"
939939

@@ -1128,12 +1128,12 @@
11281128
dependencies:
11291129
undici-types "~5.26.4"
11301130

1131-
"@types/node@^22.3.0":
1132-
version "22.3.0"
1133-
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.3.0.tgz#7f8da0e2b72c27c4f9bd3cb5ef805209d04d4f9e"
1134-
integrity sha512-nrWpWVaDZuaVc5X84xJ0vNrLvomM205oQyLsRt7OHNZbSHslcWsvgFR7O7hire2ZonjLrWBbedmotmIlJDVd6g==
1131+
"@types/node@^22.4.0":
1132+
version "22.4.0"
1133+
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.4.0.tgz#c295fe1d6f5f58916cc61dbef8cf65b5b9b71de9"
1134+
integrity sha512-49AbMDwYUz7EXxKU/r7mXOsxwFr4BYbvB7tWYxVuLdb2ibd30ijjXINSMAHiEEZk5PCRBmW1gUeisn2VMKt3cQ==
11351135
dependencies:
1136-
undici-types "~6.18.2"
1136+
undici-types "~6.19.2"
11371137

11381138
"@types/prop-types@*":
11391139
version "15.7.12"
@@ -1670,7 +1670,7 @@ axe-core@^4.9.1:
16701670
resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.10.0.tgz#d9e56ab0147278272739a000880196cdfe113b59"
16711671
integrity sha512-Mr2ZakwQ7XUAjp7pAwQWRhhK8mQQ6JAaNWSjmjxil0R8BPioMtQsTLOolGYkji1rcL++3dCqZA3zWqpT+9Ew6g==
16721672

1673-
axios@^1.6.8:
1673+
axios@^1.7.4:
16741674
version "1.7.4"
16751675
resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.4.tgz#4c8ded1b43683c8dd362973c393f3ede24052aa2"
16761676
integrity sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==
@@ -1970,7 +1970,7 @@ debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4:
19701970
dependencies:
19711971
ms "2.1.2"
19721972

1973-
debug@^4.3.5:
1973+
debug@^4.3.5, debug@^4.3.6:
19741974
version "4.3.6"
19751975
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.6.tgz#2ab2c38fbaffebf8aa95fdfe6d88438c7a13c52b"
19761976
integrity sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==
@@ -3855,7 +3855,7 @@ postcss@^8.4.38:
38553855
picocolors "^1.0.0"
38563856
source-map-js "^1.2.0"
38573857

3858-
postcss@^8.4.40, postcss@^8.4.41:
3858+
postcss@^8.4.41:
38593859
version "8.4.41"
38603860
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.41.tgz#d6104d3ba272d882fe18fc07d15dc2da62fa2681"
38613861
integrity sha512-TesUflQ0WKZqAvg52PWL6kHgLKP6xB6heTOdoYM0Wt2UHyxNa4K25EZZMgKns3BH1RLVbZCREPpLY0rhnNoHVQ==
@@ -3978,20 +3978,20 @@ react-remove-scroll@^2.5.7:
39783978
use-callback-ref "^1.3.0"
39793979
use-sidecar "^1.1.2"
39803980

3981-
react-router-dom@^6.26.0:
3982-
version "6.26.0"
3983-
resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-6.26.0.tgz#8debe13295c58605c04f93018d659a763245e58c"
3984-
integrity sha512-RRGUIiDtLrkX3uYcFiCIxKFWMcWQGMojpYZfcstc63A1+sSnVgILGIm9gNUA6na3Fm1QuPGSBQH2EMbAZOnMsQ==
3981+
react-router-dom@^6.26.1:
3982+
version "6.26.1"
3983+
resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-6.26.1.tgz#a408892b41767a49dc94b3564b0e7d8e3959f623"
3984+
integrity sha512-veut7m41S1fLql4pLhxeSW3jlqs+4MtjRLj0xvuCEXsxusJCbs6I8yn9BxzzDX2XDgafrccY6hwjmd/bL54tFw==
39853985
dependencies:
3986-
"@remix-run/router" "1.19.0"
3987-
react-router "6.26.0"
3986+
"@remix-run/router" "1.19.1"
3987+
react-router "6.26.1"
39883988

3989-
3990-
version "6.26.0"
3991-
resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.26.0.tgz#d5af4c46835b202348ef2b7ddacd32a2db539fde"
3992-
integrity sha512-wVQq0/iFYd3iZ9H2l3N3k4PL8EEHcb0XlU2Na8nEwmiXgIUElEH6gaJDtUQxJ+JFzmIXaQjfdpcGWaM6IoQGxg==
3989+
3990+
version "6.26.1"
3991+
resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.26.1.tgz#88c64837e05ffab6899a49df2a1484a22471e4ce"
3992+
integrity sha512-kIwJveZNwp7teQRI5QmwWo39A5bXRyqpH0COKKmPnyD2vBvDwgFXSqDUYtt1h+FEyfnE8eXr7oe0MxRzVwCcvQ==
39933993
dependencies:
3994-
"@remix-run/router" "1.19.0"
3994+
"@remix-run/router" "1.19.1"
39953995

39963996
react-style-singleton@^2.2.1:
39973997
version "2.2.1"
@@ -4218,12 +4218,12 @@ shebang-regex@^3.0.0:
42184218
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172"
42194219
integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==
42204220

4221-
shiki@^1.12.1:
4222-
version "1.12.1"
4223-
resolved "https://registry.yarnpkg.com/shiki/-/shiki-1.12.1.tgz#72d9d230a8d68ddaf8cf7c94a1dc6a5f2625324e"
4224-
integrity sha512-nwmjbHKnOYYAe1aaQyEBHvQymJgfm86ZSS7fT8OaPRr4sbAcBNz7PbfAikMEFSDQ6se2j2zobkXvVKcBOm0ysg==
4221+
shiki@^1.13.0:
4222+
version "1.13.0"
4223+
resolved "https://registry.yarnpkg.com/shiki/-/shiki-1.13.0.tgz#129986ad475ad4a962b5c681eabb843e38dde65e"
4224+
integrity sha512-e0dWfnONbEv6xl7FJy3XIhsVHQ/65XHDZl92+6H9+4xWjfdo7pmkqG7Kg47KWtDiEtzM5Z+oEfb4vtRvoZ/X9w==
42254225
dependencies:
4226-
"@shikijs/core" "1.12.1"
4226+
"@shikijs/core" "1.13.0"
42274227
"@types/hast" "^3.0.4"
42284228

42294229
side-channel@^1.0.4, side-channel@^1.0.6:
@@ -4664,10 +4664,10 @@ undici-types@~5.26.4:
46644664
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
46654665
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
46664666

4667-
undici-types@~6.18.2:
4668-
version "6.18.2"
4669-
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.18.2.tgz#8b678cf939d4fc9ec56be3c68ed69c619dee28b0"
4670-
integrity sha512-5ruQbENj95yDYJNS3TvcaxPMshV7aizdv/hWYjGIKoANWKjhWNBsr2YEuYZKodQulB1b8l7ILOuDQep3afowQQ==
4667+
undici-types@~6.19.2:
4668+
version "6.19.6"
4669+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.6.tgz#e218c3df0987f4c0e0008ca00d6b6472d9b89b36"
4670+
integrity sha512-e/vggGopEfTKSvj4ihnOLTsqhrKRN3LeO6qSN/GxohhuRv8qH9bNQ4B8W7e/vFL+0XTnmHPB4/kegunZGA4Org==
46714671

46724672
universal-user-agent@^6.0.0:
46734673
version "6.0.1"
@@ -4775,15 +4775,15 @@ vite-plugin-checker@^0.7.2:
47754775
vscode-languageserver-textdocument "^1.0.1"
47764776
vscode-uri "^3.0.2"
47774777

4778-
vite-plugin-mkcert@^1.17.5:
4779-
version "1.17.5"
4780-
resolved "https://registry.yarnpkg.com/vite-plugin-mkcert/-/vite-plugin-mkcert-1.17.5.tgz#175f1a2a99c110fa87b2f2e6390b22656674a67b"
4781-
integrity sha512-KKGY3iHx/9zb7ow8JJ+nLN2HiNIBuPBwj34fJ+jAJT89/8qfk7msO7G7qipR8VDEm9xMCys0xT11QOJbZcg3/Q==
4778+
vite-plugin-mkcert@^1.17.6:
4779+
version "1.17.6"
4780+
resolved "https://registry.yarnpkg.com/vite-plugin-mkcert/-/vite-plugin-mkcert-1.17.6.tgz#c514d3d72ba201997e29cc537538bf8ff126c5c2"
4781+
integrity sha512-4JR1RN0HEg/w17eRQJ/Ve2pSa6KCVQcQO6yKtIaKQCFDyd63zGfXHWpygBkvvRSpqa0GcqNKf0fjUJ0HiJQXVQ==
47824782
dependencies:
4783-
"@octokit/rest" "^20.0.2"
4784-
axios "^1.6.8"
4785-
debug "^4.3.4"
4786-
picocolors "^1.0.0"
4783+
"@octokit/rest" "^20.1.1"
4784+
axios "^1.7.4"
4785+
debug "^4.3.6"
4786+
picocolors "^1.0.1"
47874787

47884788
vite-tsconfig-paths@^5.0.1:
47894789
version "5.0.1"
@@ -4805,13 +4805,13 @@ vite@^5.0.0:
48054805
optionalDependencies:
48064806
fsevents "~2.3.3"
48074807

4808-
vite@^5.4.0:
4809-
version "5.4.0"
4810-
resolved "https://registry.yarnpkg.com/vite/-/vite-5.4.0.tgz#11dca8a961369ba8b5cae42d068c7ad684d5370f"
4811-
integrity sha512-5xokfMX0PIiwCMCMb9ZJcMyh5wbBun0zUzKib+L65vAZ8GY9ePZMXxFrHbr/Kyll2+LSCY7xtERPpxkBDKngwg==
4808+
vite@^5.4.1:
4809+
version "5.4.1"
4810+
resolved "https://registry.yarnpkg.com/vite/-/vite-5.4.1.tgz#2aa72370de824d23f53658affd807e4c9905b058"
4811+
integrity sha512-1oE6yuNXssjrZdblI9AfBbHCC41nnyoVoEZxQnID6yvQZAFBzxxkqoFLtHUMkYunL8hwOLEjgTuxpkRxvba3kA==
48124812
dependencies:
48134813
esbuild "^0.21.3"
4814-
postcss "^8.4.40"
4814+
postcss "^8.4.41"
48154815
rollup "^4.13.0"
48164816
optionalDependencies:
48174817
fsevents "~2.3.3"

tests/Serilog.Ui.Common.Tests/DataSamples/MongoDbLogModelFaker.cs

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,11 @@
1-
using System.Collections.Generic;
2-
using System.Linq;
3-
using System.Threading.Tasks;
4-
using FluentAssertions;
5-
using Microsoft.Extensions.Primitives;
6-
using MongoDb.Tests.Util;
1+
using MongoDb.Tests.Util;
72
using Serilog.Ui.Common.Tests.TestSuites.Impl;
8-
using Serilog.Ui.Core.Models;
93
using Serilog.Ui.MongoDbProvider;
104
using Xunit;
115

126
namespace MongoDb.Tests.DataProvider
137
{
148
[Collection(nameof(MongoDbDataProvider))]
159
[Trait("Integration-Search", "MongoDb")]
16-
public class DataProviderSearchTest(BaseIntegrationTest instance) : IntegrationSearchTests<BaseIntegrationTest>(instance)
17-
{
18-
public override async Task It_finds_only_data_emitted_in_dates_range()
19-
{
20-
var firstTimeStamp = LogCollector.TimesSamples.First().AddSeconds(50);
21-
var lastTimeStamp = LogCollector.TimesSamples.Last().AddSeconds(50);
22-
var inTimeStampCount = LogCollector.DataSet
23-
.Count(p => p.Timestamp >= firstTimeStamp && p.Timestamp < lastTimeStamp);
24-
var query = new Dictionary<string, StringValues>
25-
{
26-
["page"] = "1",
27-
["count"] = "1000",
28-
["startDate"] = firstTimeStamp.ToString("O"),
29-
["endDate"] = lastTimeStamp.ToString("O")
30-
};
31-
32-
var (logs, count) = await Provider.FetchDataAsync(FetchLogsQuery.ParseQuery(query));
33-
34-
var enumerateLogs = logs.ToList();
35-
enumerateLogs.Should().NotBeEmpty();
36-
enumerateLogs.Should().HaveCount(inTimeStampCount);
37-
count.Should().Be(inTimeStampCount);
38-
enumerateLogs.Should().OnlyContain(p =>
39-
p.Timestamp.ToUniversalTime() >= firstTimeStamp &&
40-
p.Timestamp.ToUniversalTime() < lastTimeStamp);
41-
}
42-
}
10+
public class DataProviderSearchTest(BaseIntegrationTest instance) : IntegrationSearchTests<BaseIntegrationTest>(instance);
4311
}

tests/Serilog.Ui.MongoDbProvider.Tests/Serilog.Ui.MongoDbProvider.Tests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<PackageReference Include="EphemeralMongo6.runtime.linux-x64" Version="1.0.0" Condition="$([MSBuild]::IsOSPlatform('Linux'))" />
1111
<PackageReference Include="EphemeralMongo6.runtime.osx-x64" Version="1.0.0" Condition="$([MSBuild]::IsOSPlatform('OSX'))" />
1212
<PackageReference Include="EphemeralMongo6.runtime.win-x64" Version="1.1.3" Condition="$([MSBuild]::IsOSPlatform('Windows'))" />
13+
<PackageReference Include="Serilog.Sinks.MongoDB" Version="5.4.1" />
1314
</ItemGroup>
1415

1516
<ItemGroup>
@@ -24,4 +25,5 @@
2425
<ProjectReference Include="..\..\src\Serilog.Ui.Web\Serilog.Ui.Web.csproj" />
2526
<ProjectReference Include="..\Serilog.Ui.Common.Tests\Serilog.Ui.Common.Tests.csproj" />
2627
</ItemGroup>
28+
2729
</Project>

tests/Serilog.Ui.MongoDbProvider.Tests/Util/BaseIntegrationTest.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ public class BaseIntegrationTest : IIntegrationRunner
1919
{
2020
private bool _disposedValue;
2121

22-
internal BaseServiceBuilder? Builder;
22+
internal MongoDbDataProviderBuilder? Builder;
2323

2424
public Task DisposeAsync() => Task.CompletedTask;
2525

26-
public virtual async Task InitializeAsync()
26+
public virtual Task InitializeAsync()
2727
{
28-
Builder = await MongoDbDataProviderBuilder.Build();
28+
Builder = MongoDbDataProviderBuilder.Build();
29+
30+
return Task.CompletedTask;
2931
}
3032

3133
public IDataProvider GetDataProvider() => Guard.Against.Null(Builder?.Sut);

0 commit comments

Comments
 (0)