From 84f707c51bf3f17ea1f16a8359f48a34cde14393 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Tue, 9 Jul 2019 21:46:10 +0100 Subject: [PATCH] Removed Nyaa Integration tests and increased logging detail during integration tests. --- .../Config/HostConfigResource.cs | 2 ++ .../IndexerIntegrationTests.cs | 34 ------------------- .../IntegrationTest.cs | 5 +++ 3 files changed, 7 insertions(+), 34 deletions(-) diff --git a/src/Lidarr.Api.V1/Config/HostConfigResource.cs b/src/Lidarr.Api.V1/Config/HostConfigResource.cs index 2f62d7064..bd91ff841 100644 --- a/src/Lidarr.Api.V1/Config/HostConfigResource.cs +++ b/src/Lidarr.Api.V1/Config/HostConfigResource.cs @@ -18,6 +18,7 @@ namespace Lidarr.Api.V1.Config public string Username { get; set; } public string Password { get; set; } public string LogLevel { get; set; } + public string ConsoleLogLevel { get; set; } public string Branch { get; set; } public string ApiKey { get; set; } public string SslCertHash { get; set; } @@ -55,6 +56,7 @@ namespace Lidarr.Api.V1.Config //Username //Password LogLevel = model.LogLevel, + ConsoleLogLevel = model.ConsoleLogLevel, Branch = model.Branch, ApiKey = model.ApiKey, SslCertHash = model.SslCertHash, diff --git a/src/NzbDrone.Core.Test/IndexerTests/IntegrationTests/IndexerIntegrationTests.cs b/src/NzbDrone.Core.Test/IndexerTests/IntegrationTests/IndexerIntegrationTests.cs index 85db388d1..9504a4d99 100644 --- a/src/NzbDrone.Core.Test/IndexerTests/IntegrationTests/IndexerIntegrationTests.cs +++ b/src/NzbDrone.Core.Test/IndexerTests/IntegrationTests/IndexerIntegrationTests.cs @@ -28,40 +28,6 @@ namespace NzbDrone.Core.Test.IndexerTests.IntegrationTests }; } - [Test] - public void nyaa_fetch_recent() - { - var indexer = Mocker.Resolve(); - - indexer.Definition = new IndexerDefinition - { - Name = "MyIndexer", - Settings = new NyaaSettings() - }; - - var result = indexer.FetchRecent(); - - ValidateTorrentResult(result, hasSize: true); - } - - [Test] - public void nyaa_search_single() - { - var indexer = Mocker.Resolve(); - - indexer.Definition = new IndexerDefinition - { - Name = "MyIndexer", - Settings = new NyaaSettings() - }; - - var result = indexer.Fetch(_albumSearchCriteria); - - ValidateTorrentResult(result, hasSize: true); - } - - - private void ValidateTorrentResult(IList reports, bool hasSize = false, bool hasInfoUrl = false, bool hasMagnet = false) { reports.Should().OnlyContain(c => c.GetType() == typeof(TorrentInfo)); diff --git a/src/NzbDrone.Integration.Test/IntegrationTest.cs b/src/NzbDrone.Integration.Test/IntegrationTest.cs index 3141978d8..d56c8b82c 100644 --- a/src/NzbDrone.Integration.Test/IntegrationTest.cs +++ b/src/NzbDrone.Integration.Test/IntegrationTest.cs @@ -36,6 +36,11 @@ namespace NzbDrone.Integration.Test Protocol = Core.Indexers.DownloadProtocol.Usenet, Fields = SchemaBuilder.ToSchema(new NewznabSettings()) }); + + // Change Console Log Level to Debug so we get more details. + var config = HostConfig.Get(1); + config.ConsoleLogLevel = "Debug"; + HostConfig.Put(config); } protected override void StopTestTarget()