Frank Schroeder
e2c37b47ee
agent: Replace client/server with delegate interface
...
This patch adds a new internal interface clientServer
which defines the common methods of consul.Client and
consul.Server. This allows to replace the following
code
if a.server != nil {
a.server.do()
} else {
a.client.do()
}
with
a.delegate.do()
In case a specific type is required a type check can
be performed:
if srv, ok := a.delegate.(*consul.Server); ok {
srv.doSrv()
}
2017-05-15 18:35:38 +02:00
Frank Schroeder
9b1bd5197b
Update CHANGELOG.md
2017-05-15 17:53:30 +02:00
Frank Schroeder
41f01a0cfc
agent: allow "::" as IPv6 bind address
...
Fixes #2285
2017-05-15 17:51:33 +02:00
Frank Schroeder
437222fbe7
build: make linux/arm64 package
...
Fixes #3042
2017-05-15 17:27:42 +02:00
Frank Schroeder
4edd1dcba2
test: fix go vet issue
2017-05-12 22:12:47 +02:00
Frank Schroeder
96c677fdba
test: make test less flaky
2017-05-12 22:12:47 +02:00
Frank Schroeder
f44c4e769b
test: bump ReadyTimeout to 10s
2017-05-12 22:12:47 +02:00
Frank Schroeder
65b5c51ec7
test: add helper for ioutil.TempDir/TempFile
...
This creates a simplified helper for temporary directories and files.
All path names are prefixed with the name of the current test.
All files and directories are stored either in /tmp/consul-test
or /tmp if the former could not be created.
Using the system temp dir breaks some tests on macOS where the unix
socket path becomes too long.
2017-05-12 22:12:47 +02:00
Frank Schroeder
9993095448
test: simplify makefile
2017-05-12 22:12:47 +02:00
Frank Schroeder
3d54fe51ba
test: lower wait time for some tests
2017-05-12 22:12:47 +02:00
Frank Schroeder
98f6e3b7c5
test: suppress osx firewall warning
...
macOS displays a firewall warning dialog when an unsigned
application is trying to bind to a non-loopback address.
This patch updates some test configurations to ensure binding
to a loopback address where possible to suppress these warnings.
2017-05-12 22:12:47 +02:00
Frank Schroeder
3522a41bad
test: include test name in temp file/dir
...
This helps identifying hanging tests by looking
at the process list.
2017-05-12 22:12:47 +02:00
James Phillips
f26c4f62a5
Merge pull request #3038 from jkodroff/patch-2
...
Update install.sh for Consul 0.8.3
2017-05-12 09:53:50 -07:00
Josh Kodroff
47febb946d
Update install.sh for Consul 0.8.3
2017-05-12 12:52:59 -04:00
James Phillips
b59d40d026
Bumps website download link to 0.8.3.
2017-05-12 08:17:56 -07:00
James Phillips
dd85930b6d
Updates expired test certs and includes a script to generate new certs.
2017-05-12 09:28:21 +02:00
James Phillips
698686d838
Puts the tree in version 0.8.4 dev mode.
2017-05-11 18:52:37 -07:00
Frank Schroeder
db3599762f
test: drop unused code
2017-05-11 17:04:36 +02:00
James Phillips
49e4de24c4
Removes a stale comment about the RPC source address.
2017-05-10 20:45:19 -07:00
James Phillips
49e9dab883
Update CHANGELOG.md
2017-05-10 17:02:44 -07:00
James Phillips
80d7d0392b
Update CHANGELOG.md
2017-05-10 17:02:34 -07:00
Frank Schroeder
914a83cae0
agent: use bind address as src unless INADDR_ANY
...
Use the bind address as source address for outgoing
RPC connections unless it is INADDR_ANY.
The current code uses the advertise address which will
not work in certain environments where the advertise
address is not routable in the network of the agent,
e.g. NAT environment, container... After all, that is
the purpose of the advertise address.
See #2822
2017-05-11 00:34:14 +02:00
Frank Schroeder
e6c6f8cedd
agent: use helper for INADDR_ANY
2017-05-11 00:34:14 +02:00
Kyle Havlovitz
f8913b4c77
Update CHANGELOG.md
2017-05-10 14:28:12 -07:00
Kyle Havlovitz
0d484b3460
Update CHANGELOG.md
2017-05-10 14:27:27 -07:00
Kyle Havlovitz
5bab68b9bb
Add a path for transitioning to TLS on an existing cluster ( #3001 )
...
Fixes #1705
2017-05-10 14:25:48 -07:00
Frank Schroeder
6eba69fbfe
agent: drop atlas/scada code
2017-05-10 23:06:36 +02:00
Frank Schroeder
5328609d59
test: refactor TestAgent_Leave_ACLDeny to use only one server
2017-05-10 17:42:38 +02:00
Frank Schroeder
a60f508880
test: use isPermissionDenied
2017-05-10 17:42:38 +02:00
Frank Schroeder
66bc2cbabc
test: replace blocks and comments with sub-tests
2017-05-10 17:42:38 +02:00
Frank Schroeder
d711b9bba0
test: inline request body encoding
2017-05-10 17:42:38 +02:00
Frank Schroeder
82cb9c50ad
test: add helper for permission denied check
2017-05-10 17:42:38 +02:00
Frank Schroeder
1e89692cc1
test: drop error check on http.NewRequest
...
Most URLs are static so the error check is redundant.
The subsequent test wouldn't work if the url is wrong.
2017-05-10 17:42:38 +02:00
James Phillips
7fa2471ba7
Update CHANGELOG.md
2017-05-09 18:46:51 -07:00
James Phillips
c6de323fc3
Update CHANGELOG.md
2017-05-09 11:48:23 -07:00
Kyle Havlovitz
f0e99071cd
Update CHANGELOG.md
2017-05-09 11:35:24 -07:00
James Phillips
8ec6d3579c
Update CHANGELOG.md
2017-05-09 11:05:28 -07:00
James Phillips
3a8c6b8a65
Merge pull request #3024 from sean-/f-illumos-duex
...
Add the minimal fix to restore being able to compile on Illumos.
2017-05-09 11:04:35 -07:00
Frank Schroeder
6fa76fd90f
agent: Disallow :: or [::] as advertise or advertise-wan address
2017-05-09 17:56:16 +02:00
Frank Schroeder
8ad52ee9b5
agent: Disallow :: and [::] as service address
2017-05-09 17:56:15 +02:00
Frank Schroeder
e365ef12cf
agent: Disallow 0.0.0.0 as advertise or advertise-wan address
...
Fixes #2961
2017-05-09 17:56:15 +02:00
Frank Schroeder
73a31b9bfe
agent: Disallow 0.0.0.0 as service address
...
Fixes #2961
2017-05-09 17:56:15 +02:00
Cyril Gaudin
417ffb8893
test: Make testserver start timeout configurable.
2017-05-09 17:48:53 +02:00
Sean Chittenden
dce9da3bb3
Add the minimal fix to restore being able to compile on Illumos.
...
This brings in the necessary fix to satisfy #2989 without dragging along
additional vendor updates reverted in #3019 .
2017-05-09 08:41:44 -07:00
James Phillips
785ff2796f
Puts tree into 0.8.3 development mode.
2017-05-09 07:41:56 -07:00
James Phillips
d3f4c27a44
Bumps Consul version to 0.8.2.
2017-05-09 07:19:02 -07:00
James Phillips
601748498c
Release v0.8.2
2017-05-09 07:04:30 -07:00
James Phillips
bd686a2576
Puts tree into 0.8.2 release mode.
2017-05-09 06:58:29 -07:00
James Phillips
c439651b57
Merge pull request #3020 from hashicorp/test-tweaks
...
Cleans up vet errors and tweaks unit tests that were failing in Travis CI.
2017-05-09 06:49:12 -07:00
James Phillips
c1d196152f
Fixes vet errors.
2017-05-09 06:48:52 -07:00