Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ internal abstract class SignalRServiceWebApiDefinition : ControllerBase
/// <response code="200">The service is healthy</response>
[HttpGet("health"), HttpHead("health")]
[ProducesResponseType(200)]
[AllowAnonymous]
public abstract IActionResult GetHealthStatus();

// POST /api/v1/hubs/chat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ public SignalRServiceEmulatorWebApiTests()
_controller.ControllerContext = controllerContext;
}

[Fact]
public void HealthCheckReturnsOK()
{
var result = _controller.GetHealthStatus();

// assert
Assert.IsType<OkResult>(result);
}

// CheckConnectionExistence Tests
[Fact]
public void CheckConnectionExistenceValidConnectionReturnsOk()
Expand Down
Loading