Update package versions and improve null safety in tests
CI / Backend (build + test) (push) Successful in 1m24s
CI / Frontend (lint + typecheck + build) (push) Successful in 32s

- Updated various package versions in `Directory.Packages.props` to the latest compatible releases, enhancing overall stability and security.
- Modified test assertions in `GrantBillingGiftCommandHandlerTests`, `RejectPaymentRequestCommandHandlerTests`, `BlockUserCommandHandlerTests`, and `DeleteUserCommandHandlerTests` to use null-safe checks, ensuring robustness against potential null reference exceptions.
- Updated PostgreSqlContainer initialization in `PnvPanelWebApplicationFactory` for improved clarity and maintainability.
This commit is contained in:
Leonid Pershin
2026-07-23 00:48:57 +03:00
parent fb320fbb31
commit 6b449dbfb5
6 changed files with 48 additions and 52 deletions
@@ -20,8 +20,7 @@ public sealed class PnvPanelWebApplicationFactory : WebApplicationFactory<Progra
public const string AdminUserName = "test-admin";
public const string AdminPassword = "TestAdmin123!";
private readonly PostgreSqlContainer _postgres = new PostgreSqlBuilder()
.WithImage("postgres:17-alpine")
private readonly PostgreSqlContainer _postgres = new PostgreSqlBuilder("postgres:17-alpine")
.WithDatabase("pnvpanel")
.WithUsername("pnvpanel")
.WithPassword("pnvpanel")