2
0
Эх сурвалжийг харах

Ignore all test controllers

crobibero 4 жил өмнө
parent
commit
d32bbf181a

+ 14 - 0
tests/Jellyfin.Server.Integration.Tests/Controllers/BaseJellyfinTestController.cs

@@ -0,0 +1,14 @@
+using Jellyfin.Api;
+using Microsoft.AspNetCore.Mvc;
+
+namespace Jellyfin.Server.Integration.Tests.Controllers
+{
+    /// <summary>
+    /// Base controller for testing infrastructure.
+    /// Automatically ignored in generated openapi spec.
+    /// </summary>
+    [ApiExplorerSettings(IgnoreApi = true)]
+    public class BaseJellyfinTestController : BaseJellyfinApiController
+    {
+    }
+}

+ 2 - 2
tests/Jellyfin.Server.Integration.Tests/Controllers/EncoderController.cs

@@ -3,12 +3,12 @@ using System.Linq;
 using Microsoft.AspNetCore.Http;
 using Microsoft.AspNetCore.Mvc;
 
-namespace Jellyfin.Api.Controllers
+namespace Jellyfin.Server.Integration.Tests.Controllers
 {
     /// <summary>
     /// Controller for testing the encoded url.
     /// </summary>
-    public class EncoderController : BaseJellyfinApiController
+    public class EncoderController : BaseJellyfinTestController
     {
         /// <summary>
         /// Tests the url decoding.