Skip to content

Consul Client agent method checkTtl using GET instead of PUT #786

@annahosanna

Description

@annahosanna

Calling the .pass() method results in the Qbit Consul Client using Get rather than Put http method. See https://www.consul.io/api/agent/check.html section regarding TTL checks. File affected: AgentEndpoint.java

Test case:
for (ServiceHealth health : consul.health().getAllNodes(service).getResponse()) {
if (health.getService().getId().equals(serviceId)) {
found = true;
consul.agent().pass(serviceId);
}
}

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions