[DEBUG] correct health check
This commit is contained in:
parent
792df536b2
commit
2ecc01d8d6
@ -20,7 +20,7 @@ public class HealthCheck {
|
|||||||
@GET
|
@GET
|
||||||
@PermitAll
|
@PermitAll
|
||||||
public Response getHealth() {
|
public Response getHealth() {
|
||||||
if (JWTWrapper.getPublicKey() == null) {
|
if (JWTWrapper.getPublicKeyJson() == null) {
|
||||||
return Response.status(500).entity(new HealthResult("Missing Jwt public token")).build();
|
return Response.status(500).entity(new HealthResult("Missing Jwt public token")).build();
|
||||||
}
|
}
|
||||||
return Response.status(200).entity(new HealthResult("alive and kicking")).build();
|
return Response.status(200).entity(new HealthResult("alive and kicking")).build();
|
||||||
|
@ -32,7 +32,7 @@ class KaranageState:
|
|||||||
return self.connection.get_url(service)
|
return self.connection.get_url(service)
|
||||||
return f"{self.connection.get_url(service)}/{topic}"
|
return f"{self.connection.get_url(service)}/{topic}"
|
||||||
|
|
||||||
def send(self, topic: str, data: Optional[Dict], state: StateSystem = StateSystem.OK) -> None:
|
def send(self, topic: str, data: Optional[Dict] = None, state: StateSystem = StateSystem.OK) -> None:
|
||||||
"""Send a message to the server.
|
"""Send a message to the server.
|
||||||
:param topic: Topic where to publish the data.
|
:param topic: Topic where to publish the data.
|
||||||
:param data: Data to send to the server
|
:param data: Data to send to the server
|
||||||
|
Loading…
Reference in New Issue
Block a user