aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaronGreenback <jimcartlidge@yahoo.co.uk>2021-05-15 20:24:41 +0100
committerBaronGreenback <jimcartlidge@yahoo.co.uk>2021-05-15 20:24:41 +0100
commit53bfe0e77de6b3d9e8bb4b9740c8fbe009b145c5 (patch)
treec961c2c0f64076273938ad53ee2fc9aea7774e9f
parentd0bfb56d2ef0607b10d83706f7ec76fc16bb4cf9 (diff)
Changes as requested
-rw-r--r--tests/Jellyfin.Api.Tests/Jellyfin.Api.Tests.csproj3
-rw-r--r--tests/Jellyfin.Server.Integration.Tests/Controllers/EncoderController.cs (renamed from Jellyfin.Api/Controllers/TestsController.cs)6
-rw-r--r--tests/Jellyfin.Server.Integration.Tests/EncodedQueryStringTest.cs2
3 files changed, 5 insertions, 6 deletions
diff --git a/tests/Jellyfin.Api.Tests/Jellyfin.Api.Tests.csproj b/tests/Jellyfin.Api.Tests/Jellyfin.Api.Tests.csproj
index e3577caee..806e4ea1d 100644
--- a/tests/Jellyfin.Api.Tests/Jellyfin.Api.Tests.csproj
+++ b/tests/Jellyfin.Api.Tests/Jellyfin.Api.Tests.csproj
@@ -36,8 +36,7 @@
<ItemGroup>
<ProjectReference Include="../../Jellyfin.Api/Jellyfin.Api.csproj" />
- <ProjectReference Include="../../Jellyfin.Server.Implementations/Jellyfin.Server.Implementations.csproj" />
- <ProjectReference Include="..\Jellyfin.Server.Integration.Tests\Jellyfin.Server.Integration.Tests.csproj" />
+ <ProjectReference Include="../../Jellyfin.Server.Implementations/Jellyfin.Server.Implementations.csproj" />
</ItemGroup>
</Project>
diff --git a/Jellyfin.Api/Controllers/TestsController.cs b/tests/Jellyfin.Server.Integration.Tests/Controllers/EncoderController.cs
index 1d1e1899f..98ea00de6 100644
--- a/Jellyfin.Api/Controllers/TestsController.cs
+++ b/tests/Jellyfin.Server.Integration.Tests/Controllers/EncoderController.cs
@@ -1,4 +1,4 @@
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
using Jellyfin.Api.Constants;
using Microsoft.AspNetCore.Authorization;
@@ -8,9 +8,9 @@ using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers
{
/// <summary>
- /// Controller for testing.
+ /// Controller for testing the encoded url.
/// </summary>
- public class TestsController : BaseJellyfinApiController
+ public class EncoderController : BaseJellyfinApiController
{
/// <summary>
/// Tests the url decoding.
diff --git a/tests/Jellyfin.Server.Integration.Tests/EncodedQueryStringTest.cs b/tests/Jellyfin.Server.Integration.Tests/EncodedQueryStringTest.cs
index 0d1e408c8..29d3fe33d 100644
--- a/tests/Jellyfin.Server.Integration.Tests/EncodedQueryStringTest.cs
+++ b/tests/Jellyfin.Server.Integration.Tests/EncodedQueryStringTest.cs
@@ -24,7 +24,7 @@ namespace Jellyfin.Server.Integration.Tests
{
var client = _factory.CreateClient();
- var response = await client.GetAsync("Tests/UrlDecode?" + sourceUrl).ConfigureAwait(false);
+ var response = await client.GetAsync("Encoder/UrlDecode?" + sourceUrl).ConfigureAwait(false);
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
string reply = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
Assert.Equal(unencodedUrl, reply);