Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/54d95e2e204a8df8d6863330adda628645fd9c57
You should set ROOT_URL correctly, otherwise the web may not work correctly.
5 changed files with
27 additions and
1 deletions
@ -46,6 +46,13 @@ namespace NzbDrone.Integration.Test.Client
return Post < TResource > ( request ) ;
}
public TResource Get ( int id , HttpStatusCode statusCode = HttpStatusCode . OK )
{
var request = BuildRequest ( id . ToString ( ) ) ;
return Get < TResource > ( request , statusCode ) ;
}
public void Delete ( int id )
{
var request = BuildRequest ( id . ToString ( ) ) ;
@ -1,4 +1,5 @@
using System.Collections.Generic ;
using System.Net ;
using NzbDrone.Api.Series ;
using RestSharp ;
@ -18,5 +19,12 @@ namespace NzbDrone.Integration.Test.Client
return Get < List < SeriesResource > > ( request ) ;
}
public SeriesResource Get ( string slug , HttpStatusCode statusCode = HttpStatusCode . OK )
{
var request = BuildRequest ( slug ) ;
return Get < SeriesResource > ( request , statusCode ) ;
}
}
}
@ -69,7 +69,7 @@
<ItemGroup >
<Compile Include= "Client\ClientBase.cs" />
<Compile Include= "Client\IndexerClient.cs" />
<Compile Include= "Client\ SeriesClient - Copy .cs" />
<Compile Include= "Client\ ReleaseClient .cs" />
<Compile Include= "Client\SeriesClient.cs" />
<Compile Include= "CommandIntegerationTests.cs" />
<Compile Include= "IndexerIntegrationFixture.cs" />
@ -47,9 +47,20 @@ namespace NzbDrone.Integration.Test
Series . All ( ) . Should ( ) . HaveCount ( 1 ) ;
Series . Get ( series . Id ) . Should ( ) . NotBeNull ( ) ;
Series . Get ( series . TitleSlug ) . Should ( ) . NotBeNull ( ) ;
Series . Delete ( series . Id ) ;
Series . All ( ) . Should ( ) . BeEmpty ( ) ;
}
[Test]
public void wrong_slug_should_return_404 ( )
{
Series . Get ( "non-existing-slug" , HttpStatusCode . NotFound ) ;
}
}
}