Changes as requested

pull/5990/head
BaronGreenback 3 years ago
parent d0bfb56d2e
commit 53bfe0e77d

@ -36,8 +36,7 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="../../Jellyfin.Api/Jellyfin.Api.csproj" /> <ProjectReference Include="../../Jellyfin.Api/Jellyfin.Api.csproj" />
<ProjectReference Include="../../Jellyfin.Server.Implementations/Jellyfin.Server.Implementations.csproj" /> <ProjectReference Include="../../Jellyfin.Server.Implementations/Jellyfin.Server.Implementations.csproj" />
<ProjectReference Include="..\Jellyfin.Server.Integration.Tests\Jellyfin.Server.Integration.Tests.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>

@ -1,4 +1,4 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using Jellyfin.Api.Constants; using Jellyfin.Api.Constants;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
@ -8,9 +8,9 @@ using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api.Controllers namespace Jellyfin.Api.Controllers
{ {
/// <summary> /// <summary>
/// Controller for testing. /// Controller for testing the encoded url.
/// </summary> /// </summary>
public class TestsController : BaseJellyfinApiController public class EncoderController : BaseJellyfinApiController
{ {
/// <summary> /// <summary>
/// Tests the url decoding. /// Tests the url decoding.

@ -24,7 +24,7 @@ namespace Jellyfin.Server.Integration.Tests
{ {
var client = _factory.CreateClient(); 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); Assert.Equal(HttpStatusCode.OK, response.StatusCode);
string reply = await response.Content.ReadAsStringAsync().ConfigureAwait(false); string reply = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
Assert.Equal(unencodedUrl, reply); Assert.Equal(unencodedUrl, reply);

Loading…
Cancel
Save