Rely on docker for tests, move everything to the root

This commit is contained in:
NicolasDorier
2017-10-03 00:41:03 +09:00
parent 42b3b9eec0
commit 61b37f87dc
15 changed files with 79 additions and 356 deletions

View File

@@ -13,7 +13,6 @@ using Microsoft.AspNetCore.Mvc.Routing;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using NBitcoin;
using NBitcoin.Tests;
using NBXplorer;
using NBXplorer.DerivationStrategy;
using System;
@@ -59,6 +58,11 @@ namespace BTCPayServer.Tests
get; set;
}
public string Postgres
{
get; set;
}
IWebHost _Host;
public void Start()
{
@@ -73,6 +77,8 @@ namespace BTCPayServer.Tests
config.AppendLine($"explorer.url={NBXplorerUri.AbsoluteUri}");
config.AppendLine($"explorer.cookiefile={CookieFile}");
config.AppendLine($"hdpubkey={HDPrivateKey.Neuter().ToString(Network.RegTest)}");
if(Postgres != null)
config.AppendLine($"postgres=" + Postgres);
File.WriteAllText(Path.Combine(_Directory, "settings.config"), config.ToString());
ServerUri = new Uri("http://127.0.0.1:" + port + "/");