mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 20:24:27 -04:00
Merge branch 'sqlite' of github.com:AnonymusRaccoon/Kyoo into sqlite
This commit is contained in:
commit
8a9dfd5951
3
Kyoo.Tests/Dockerfile
Normal file
3
Kyoo.Tests/Dockerfile
Normal file
@ -0,0 +1,3 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:5.0
|
||||
COPY ../ .
|
||||
RUN dotnet tests '-p:SkipWebApp=true;SkipTranscoder=true'
|
@ -126,7 +126,11 @@ namespace Kyoo.Tests
|
||||
|
||||
public static string GetConnectionString(string database)
|
||||
{
|
||||
return $"Server=127.0.0.1;Port=5432;Database={database};User ID=kyoo;Password=kyooPassword;Include Error Detail=true";
|
||||
string server = Environment.GetEnvironmentVariable("SERVER") ?? "127.0.0.1";
|
||||
string port = Environment.GetEnvironmentVariable("PORT") ?? "5432";
|
||||
string username = Environment.GetEnvironmentVariable("USERNAME") ?? "kyoo";
|
||||
string password = Environment.GetEnvironmentVariable("PASSWORD") ?? "kyooPassword";
|
||||
return $"Server={server};Port={port};Database={database};User ID={username};Password={password};Include Error Detail=true";
|
||||
}
|
||||
|
||||
public override void Dispose()
|
||||
|
Loading…
x
Reference in New Issue
Block a user