Skip to content

Commit

Permalink
RavenDB-21940 Ensure valid access to test endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
arekpalinski committed Jan 17, 2024
1 parent cadea0d commit 406b558
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Raven.Server/Web/System/EmptyMessageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ namespace Raven.Server.Web.System
{
public class EmptyMessageHandler : ServerRequestHandler
{
[RavenAction("/test/empty-message", "GET", AuthorizationStatus.ValidUser, EndpointType.Read)]
[RavenAction("/test/empty-message", "GET", AuthorizationStatus.Operator, EndpointType.Read)]
public Task Get()
{
return Task.CompletedTask;
}

[RavenAction("/test/delay", "GET", AuthorizationStatus.ValidUser, EndpointType.Read)]
[RavenAction("/test/delay", "GET", AuthorizationStatus.Operator, EndpointType.Read)]
public Task Delay()
{
var delay = GetIntValueQueryString("value") ?? 0;

return Task.Delay(delay);
}

[RavenAction("/test/sized-message", "GET", AuthorizationStatus.ValidUser, EndpointType.Read)]
[RavenAction("/test/sized-message", "GET", AuthorizationStatus.Operator, EndpointType.Read)]
public async Task GetBuffer()
{
var buffer = LazyBuffer.Value;
Expand Down

0 comments on commit 406b558

Please sign in to comment.