Skip to content

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

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

Activity

  1. changed the title [-]Consul Client issue setting health[/-] [+]Consul Client function Check TTL using GET instead of PUT[/+] on Mar 29, 2018
  2. changed the title [-]Consul Client function Check TTL using GET instead of PUT[/-] [+]Consul Client function checkTtl using GET instead of PUT[/+] on Mar 29, 2018
  3. changed the title [-]Consul Client function checkTtl using GET instead of PUT[/-] [+]Consul Client agent method checkTtl using GET instead of PUT[/+] on Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions