Publish curated Knowledge Hub source from 2ed833f290b439a7bc91e5fd19b042c269e3bee9

This commit is contained in:
Public Source Publisher committed 2026-10-03 17:07:21 +00:00
1 parent 10f2edcd29
commit 59f15b2d08
218 files changed
+23995 -1849

No files matched your search

@@ -0,0 +1,26 @@
using System.Net;
namespace ItWorx.KnowledgeHub.Api.Tests;
public sealed class PlatformEndpointAuthorizationTests : IClassFixture<KnowledgeHubApiFactory>
{
private readonly HttpClient _client;
public PlatformEndpointAuthorizationTests(KnowledgeHubApiFactory factory) => _client = factory.CreateClient();
[Fact]
public async Task Anonymous_callers_cannot_read_personal_preferences()
{
using var response = await _client.GetAsync("/api/v1/me/preferences");
Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
}
[Fact]
public async Task Anonymous_callers_cannot_read_operator_platform_settings()
{
using var response = await _client.GetAsync("/api/v1/admin/platform-settings");
Assert.Equal(HttpStatusCode.Unauthorized, response.StatusCode);
}
}