Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/commit/69ddeeb0e3858980546f7005237803b4eff2d335
You should set ROOT_URL correctly, otherwise the web may not work correctly.
20 changed files with
46 additions and
43 deletions
@ -59,7 +59,7 @@ namespace NzbDrone.Common.Test
diskProvider . MoveFile ( targetPath , targetPath ) ;
File . Exists ( targetPath ) . Should ( ) . BeTrue ( ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
[Test]
@ -35,7 +35,7 @@ namespace NzbDrone.Common.Test
public void Kill_should_not_fail_on_invalid_process_is ( int processId )
{
_processProvider . Kill ( processId ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
[Test]
@ -43,7 +43,7 @@ namespace NzbDrone.Common.Test
{
_processProvider . GetProcessById ( 1234567 ) . Should ( ) . BeNull ( ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
[TestCase(0)]
@ -53,7 +53,7 @@ namespace NzbDrone.Common.Test
{
_processProvider . GetProcessById ( processId ) . Should ( ) . BeNull ( ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
[Test]
@ -105,7 +105,7 @@ namespace NzbDrone.Common.Test
serviceProvider . GetService ( ALWAYS_INSTALLED_SERVICE ) . Status
. Should ( ) . Be ( ServiceControllerStatus . Stopped ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
}
}
@ -57,7 +57,7 @@ namespace NzbDrone.Core.Test
parseResults . Should ( ) . OnlyContain ( s = > s . Indexer = = mockIndexer . Name ) ;
parseResults . Should ( ) . OnlyContain ( s = > ! String . IsNullOrEmpty ( s . NzbTitle ) ) ;
ExceptionVerification . Ex c pectedWarns( warns ) ;
ExceptionVerification . Ex pectedWarns( warns ) ;
}
[Test]
@ -170,7 +170,7 @@ namespace NzbDrone.Core.Test
Assert . IsNotNull ( result ) ;
Assert . AreEqual ( LanguageType . Finnish , result . Language ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
[Test]
@ -101,7 +101,7 @@ namespace NzbDrone.Core.Test.JobTests
Mocker . VerifyAllMocks ( ) ;
ExceptionVerification . Ex c pectedErrors( 2 ) ;
ExceptionVerification . Ex pectedErrors( 2 ) ;
}
[Test]
@ -134,7 +134,7 @@ namespace NzbDrone.Core.Test.JobTests
Mocker . GetMock < DiskScanJob > ( ) . Verify ( j = > j . Start ( notification , series [ 0 ] . SeriesId , 0 ) , Times . Once ( ) ) ;
ExceptionVerification . Ex c pectedErrors( 1 ) ;
ExceptionVerification . Ex pectedErrors( 1 ) ;
}
@ -193,7 +193,7 @@ namespace NzbDrone.Core.Test
Parser . ParseTitle ( title ) . Should ( ) . BeNull ( ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
@ -368,7 +368,7 @@ namespace NzbDrone.Core.Test
var result = Parser . ParseTitle ( postTitle ) ;
result . Should ( ) . BeNull ( ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
[TestCase("Lie.to.Me.S03.SUBPACK.DVDRip.XviD-REWARD")]
@ -380,7 +380,7 @@ namespace NzbDrone.Core.Test
result . Should ( ) . BeNull ( ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
[TestCase("Fussball Bundesliga 2010 2011 30 Spieltag FC Bayern Muenchen vs Bayer 04 Leverkusen German WS dTV XviD WoGS")]
@ -388,7 +388,7 @@ namespace NzbDrone.Core.Test
{
Parser . ParseTitle ( title ) ;
ExceptionVerification . IgnoreWarns ( ) ;
ExceptionVerification . Ex c pectedErrors( 1 ) ;
ExceptionVerification . Ex pectedErrors( 1 ) ;
}
}
}
@ -164,7 +164,7 @@ namespace NzbDrone.Core.Test.ProviderTests
//Assert
Mocker . VerifyAllMocks ( ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
[Test]
@ -137,7 +137,7 @@ namespace NzbDrone.Core.Test.ProviderTests
//Assert
VerifySkipImport ( result , Mocker ) ;
ExceptionVerification . Ex c pectedWarns( 2 ) ;
ExceptionVerification . Ex pectedWarns( 2 ) ;
}
[Test]
@ -251,6 +251,7 @@ namespace NzbDrone.Core.Test.ProviderTests
var fakeSeries = Builder < Series > . CreateNew ( )
. With ( s = > s . SeriesId = 1 )
. With ( s = > s . IsDaily = true )
. Build ( ) ;
Mocker . GetMock < IDatabase > ( ) . Setup (
@ -279,6 +280,7 @@ namespace NzbDrone.Core.Test.ProviderTests
var fakeSeries = Builder < Series > . CreateNew ( )
. With ( s = > s . SeriesId = 1 )
. With ( s = > s . IsDaily = true )
. Build ( ) ;
//Act
@ -303,6 +305,7 @@ namespace NzbDrone.Core.Test.ProviderTests
var fakeSeries = Builder < Series > . CreateNew ( )
. With ( s = > s . SeriesId = 1 )
. With ( s = > s . IsDaily = true )
. Build ( ) ;
//Act
@ -406,7 +409,7 @@ namespace NzbDrone.Core.Test.ProviderTests
var ep = Mocker . Resolve < EpisodeProvider > ( ) . GetEpisodesByParseResult ( parseResult ) ;
ep . Should ( ) . BeEmpty ( ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
}
}
@ -99,7 +99,7 @@ namespace NzbDrone.Core.Test.ProviderTests.JobProviderTests
settings . First ( ) . LastExecution . Should ( ) . BeWithin ( TimeSpan . FromSeconds ( 10 ) ) ;
settings . First ( ) . Success . Should ( ) . BeFalse ( ) ;
brokenJob . ExecutionCount . Should ( ) . Be ( 1 ) ;
ExceptionVerification . Ex c pectedErrors( 1 ) ;
ExceptionVerification . Ex pectedErrors( 1 ) ;
}
[Test]
@ -182,7 +182,7 @@ namespace NzbDrone.Core.Test.ProviderTests.JobProviderTests
//Assert
brokenJob . ExecutionCount . Should ( ) . Be ( 2 ) ;
ExceptionVerification . Ex c pectedErrors( 2 ) ;
ExceptionVerification . Ex pectedErrors( 2 ) ;
}
[Test]
@ -487,7 +487,7 @@ namespace NzbDrone.Core.Test.ProviderTests.JobProviderTests
jobProvider . QueueJob ( typeof ( string ) ) ;
WaitForQueue ( ) ;
ExceptionVerification . Ex c pectedErrors( 1 ) ;
ExceptionVerification . Ex pectedErrors( 1 ) ;
}
}
@ -105,7 +105,7 @@ namespace NzbDrone.Core.Test.ProviderTests.LogProviderTests
logItem . ExceptionType . Should ( ) . Be ( ex . GetType ( ) . ToString ( ) ) ;
logItem . Exception . Should ( ) . Be ( ex . ToString ( ) ) ;
ExceptionVerification . Ex c pectedErrors( 1 ) ;
ExceptionVerification . Ex pectedErrors( 1 ) ;
}
[Test]
@ -125,7 +125,7 @@ namespace NzbDrone.Core.Test.ProviderTests.LogProviderTests
VerifyLog ( logItem , LogLevel . Error ) ;
ExceptionVerification . Ex c pectedErrors( 1 ) ;
ExceptionVerification . Ex pectedErrors( 1 ) ;
}
[Test]
@ -45,7 +45,7 @@ namespace NzbDrone.Core.Test.ProviderTests.PostDownloadProviderTests
//Assert
Mocker . VerifyAllMocks ( ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
@ -61,7 +61,7 @@ namespace NzbDrone.Core.Test.ProviderTests.PostDownloadProviderTests
//Assert
Mocker . VerifyAllMocks ( ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
[Test]
@ -81,7 +81,7 @@ namespace NzbDrone.Core.Test.ProviderTests.PostDownloadProviderTests
//Assert
Mocker . VerifyAllMocks ( ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
[Test]
@ -108,7 +108,7 @@ namespace NzbDrone.Core.Test.ProviderTests.PostDownloadProviderTests
//Assert
Mocker . VerifyAllMocks ( ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
@ -141,7 +141,7 @@ namespace NzbDrone.Core.Test.ProviderTests.PostDownloadProviderTests
//Assert
Mocker . VerifyAllMocks ( ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
[TestCase(@"\_UnknownSeries_The Office - S01E01 - Episode Title")]
@ -184,7 +184,7 @@ namespace NzbDrone.Core.Test.ProviderTests.PostDownloadProviderTests
//Assert
Mocker . VerifyAllMocks ( ) ;
Mocker . GetMock < DiskProvider > ( ) . Verify ( c = > c . MoveDirectory ( droppedFolder . FullName , taggedFolder ) , Times . Once ( ) ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
[Test]
@ -49,7 +49,7 @@ namespace NzbDrone.Core.Test.ProviderTests
var result = Mocker . Resolve < ProwlProvider > ( ) . Verify ( _badApiKey ) ;
//Assert
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
result . Should ( ) . BeFalse ( ) ;
}
@ -76,7 +76,7 @@ namespace NzbDrone.Core.Test.ProviderTests
var result = Mocker . Resolve < ProwlProvider > ( ) . SendNotification ( "NzbDrone Test" , "This is a test message from NzbDrone" , _badApiKey ) ;
//Assert
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
result . Should ( ) . BeFalse ( ) ;
}
@ -63,7 +63,7 @@ namespace NzbDrone.Core.Test.ProviderTests
//Assert
result . Should ( ) . HaveCount ( 0 ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
[Test]
@ -155,7 +155,7 @@ namespace NzbDrone.Core.Test.ProviderTests
//Assert
Assert . IsFalse ( result ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
[Test]
@ -208,7 +208,7 @@ namespace NzbDrone.Core.Test.ProviderTests.SearchProviderTests
Mocker . GetMock < SceneMappingProvider > ( ) . Verify ( c = > c . GetSceneName ( _series . SeriesId ) ,
Times . Once ( ) ) ;
ExceptionVerification . Ex c pectedErrors( 1 ) ;
ExceptionVerification . Ex pectedErrors( 1 ) ;
}
[Test]
@ -275,7 +275,7 @@ namespace NzbDrone.Core.Test.ProviderTests.SearchProviderTests
//Assert
result . Should ( ) . HaveCount ( 0 ) ;
ExceptionVerification . Ex c pectedErrors( 2 ) ;
ExceptionVerification . Ex pectedErrors( 2 ) ;
}
[Test]
@ -200,7 +200,7 @@ namespace NzbDrone.Core.Test.ProviderTests.SearchProviderTests
//Assert
result . Should ( ) . BeFalse ( ) ;
ExceptionVerification . Ex c pectedWarns( 1 ) ;
ExceptionVerification . Ex pectedWarns( 1 ) ;
}
}
}
@ -28,9 +28,9 @@ namespace NzbDrone.Test.Common
public static void AssertNoUnexcpectedLogs ( )
{
Ex c pectedFatals( 0 ) ;
Ex c pectedErrors( 0 ) ;
Ex c pectedWarns( 0 ) ;
Ex pectedFatals( 0 ) ;
Ex pectedErrors( 0 ) ;
Ex pectedWarns( 0 ) ;
}
private static string GetLogsString ( IEnumerable < LogEventInfo > logs )
@ -49,17 +49,17 @@ namespace NzbDrone.Test.Common
return errors ;
}
public static void Ex c pectedErrors( int count )
public static void Ex pectedErrors( int count )
{
Excpected ( LogLevel . Error , count ) ;
}
public static void Ex c pectedFatals( int count )
public static void Ex pectedFatals( int count )
{
Excpected ( LogLevel . Fatal , count ) ;
}
public static void Ex c pectedWarns( int count )
public static void Ex pectedWarns( int count )
{
Excpected ( LogLevel . Warn , count ) ;
}
@ -162,7 +162,7 @@ namespace NzbDrone.Update.Test
//Assert
Mocker . GetMock < DiskProvider > ( )
. Verify ( c = > c . CopyDirectory ( BACKUP_FOLDER , TARGET_FOLDER ) , Times . Once ( ) ) ;
ExceptionVerification . Ex c pectedFatals( 1 ) ;
ExceptionVerification . Ex pectedFatals( 1 ) ;
}
[Test]
@ -206,7 +206,7 @@ namespace NzbDrone.Update.Test
//Assert
VerifyServiceRestart ( ) ;
ExceptionVerification . Ex c pectedFatals( 1 ) ;
ExceptionVerification . Ex pectedFatals( 1 ) ;
}
[Test]
@ -224,7 +224,7 @@ namespace NzbDrone.Update.Test
//Assert
VerifyProcessRestart ( ) ;
ExceptionVerification . Ex c pectedFatals( 1 ) ;
ExceptionVerification . Ex pectedFatals( 1 ) ;
}
private void VerifyServiceRestart ( )