Add new required env vars to E2E test factories (#130)

This commit is contained in:
Leendert de Borst
2024-08-21 23:41:29 +02:00
parent 8824db222b
commit 01f026a3d3
2 changed files with 3 additions and 1 deletions

View File

@@ -89,6 +89,7 @@ public class WebApplicationAdminFactoryFixture<TEntryPoint> : WebApplicationFact
// An admin user will automatically be created with these values if the database is empty.
Environment.SetEnvironmentVariable("ADMIN_PASSWORD_HASH", "AQAAAAIAAYagAAAAEKWfKfa2gh9Z72vjAlnNP1xlME7FsunRznzyrfqFte40FToufRwa3kX8wwDwnEXZag==");
Environment.SetEnvironmentVariable("ADMIN_PASSWORD_GENERATED", "2024-01-01T00:00:00Z");
Environment.SetEnvironmentVariable("DATA_PROTECTION_CERT_PASS", "Development");
builder.ConfigureServices((context, services) =>
{

View File

@@ -89,8 +89,9 @@ public class WebApplicationApiFactoryFixture<TEntryPoint> : WebApplicationFactor
{
builder.UseUrls(HostUrl);
// Set the JWT key environment variable to debug value.
// Set required environment variables to debug values.
Environment.SetEnvironmentVariable("JWT_KEY", "12345678901234567890123456789012");
Environment.SetEnvironmentVariable("DATA_PROTECTION_CERT_PASS", "Development");
builder.ConfigureServices((context, services) =>
{