Go to file
Daniel Nephin 85655098be testing: Improve session_endpoint_test
While working on another change I caused a bunch of these tests to fail.
Unfortunately the failure messages were not super helpful at first.

One problem was that the request and response were created outside of
the retry. This meant that when the second attempt happened, the request
body was empty (because the buffer had been consumed), and so the
request was not actually being retried. This was fixed by moving more of
the request creation into the retry block.

Another problem was that these functions can return errors in two ways, and
are not consistent about which way they use. Some errors are returned to
the response writer, but the tests were not checking those errors, which
was causing a panic later on. This was fixed by adding a check for the
response code.

Also adds some missing t.Helper(), and has assertIndex use checkIndex so
that it is clear these are the same implementation.
2020-08-14 18:55:52 -04:00
.changelog Link issue in note template (#8502) 2020-08-13 10:22:56 +02:00
.circleci ci: bump Go to v1.14.7 (#8449) 2020-08-12 10:43:19 -04:00
.github
acl
agent testing: Improve session_endpoint_test 2020-08-14 18:55:52 -04:00
api api: bump consul/api to v1.6.0 and consul/sdk to v0.6.0 (#8460) 2020-08-07 17:26:05 -04:00
bench
build-support ci: bump Go to v1.14.7 (#8449) 2020-08-12 10:43:19 -04:00
command xds: revert setting set_node_on_first_message_only to true when generating envoy bootstrap config (#8440) 2020-08-05 15:00:24 -05:00
connect
contributing
demo
internal/go-sso
ipaddr
lib
logging Remove LogOutput from Agent 2020-08-05 14:00:44 -04:00
proto
sdk Use t.Helper in testutil/retry 2020-08-14 18:55:52 -04:00
sentinel
service_os
snapshot
terraform
test
testrpc
tlsutil
types
ui-v2 ui: Reduce reconnection attempts on disconnection (#8481) 2020-08-11 18:47:15 +01:00
vendor Update Go-Metrics 0.3.4 (#8478) 2020-08-11 11:17:43 -05:00
version
website Added link to Secure Consul on K8S Tutorial (#8402) 2020-08-14 14:27:34 -04:00
.dockerignore
.gitattributes
.gitignore
.golangci.yml
.hashibot.hcl
CHANGELOG.md changelog: update for 1.8.3, 1.7.7 and 1.6.8 (#8508) 2020-08-13 20:03:58 -04:00
GNUmakefile
INTERNALS.md
LICENSE
NOTICE.md
README.md
Vagrantfile
codecov.yml
go.mod Update Go-Metrics 0.3.4 (#8478) 2020-08-11 11:17:43 -05:00
go.sum Update Go-Metrics 0.3.4 (#8478) 2020-08-11 11:17:43 -05:00
main.go
main_test.go
package-lock.json

README.md

Consul CircleCI Discuss

Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.

Consul provides several key features:

  • Multi-Datacenter - Consul is built to be datacenter aware, and can support any number of regions without complex configuration.

  • Service Mesh/Service Segmentation - Consul Connect enables secure service-to-service communication with automatic TLS encryption and identity-based authorization. Applications can use sidecar proxies in a service mesh configuration to establish TLS connections for inbound and outbound connections without being aware of Connect at all.

  • Service Discovery - Consul makes it simple for services to register themselves and to discover other services via a DNS or HTTP interface. External services such as SaaS providers can be registered as well.

  • Health Checking - Health Checking enables Consul to quickly alert operators about any issues in a cluster. The integration with service discovery prevents routing traffic to unhealthy hosts and enables service level circuit breakers.

  • Key/Value Storage - A flexible key/value store enables storing dynamic configuration, feature flagging, coordination, leader election and more. The simple HTTP API makes it easy to use anywhere.

Consul runs on Linux, Mac OS X, FreeBSD, Solaris, and Windows. A commercial version called Consul Enterprise is also available.

Please note: We take Consul's security and our users' trust very seriously. If you believe you have found a security issue in Consul, please responsibly disclose by contacting us at security@hashicorp.com.

Quick Start

A few quick start guides are available on the Consul website:

Documentation

Full, comprehensive documentation is available on the Consul website:

https://www.consul.io/docs

Contributing

Thank you for your interest in contributing! Please refer to CONTRIBUTING.md for guidance.