Commit graph

5777 commits

Author SHA1 Message Date
Frank Schroeder b6eccb51c7 test: inline request body encoding 2017-05-10 17:42:38 +02:00
Frank Schroeder 4174cc283b test: add helper for permission denied check 2017-05-10 17:42:38 +02:00
Frank Schroeder 6073c53089 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 ff561b279e Update CHANGELOG.md 2017-05-09 18:46:51 -07:00
James Phillips f31f724361 Update CHANGELOG.md 2017-05-09 11:48:23 -07:00
Kyle Havlovitz 1618f2f878 Update CHANGELOG.md 2017-05-09 11:35:24 -07:00
James Phillips 2f5cc75a4e Update CHANGELOG.md 2017-05-09 11:05:28 -07:00
James Phillips 673a038691 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 c1cbecfe18
agent: Disallow :: or [::] as advertise or advertise-wan address 2017-05-09 17:56:16 +02:00
Frank Schroeder 8821793358
agent: Disallow :: and [::] as service address 2017-05-09 17:56:15 +02:00
Frank Schroeder 66e7b414b0
agent: Disallow 0.0.0.0 as advertise or advertise-wan address
Fixes #2961
2017-05-09 17:56:15 +02:00
Frank Schroeder 5b48fec0dd
agent: Disallow 0.0.0.0 as service address
Fixes #2961
2017-05-09 17:56:15 +02:00
Cyril Gaudin cef53ee906 test: Make testserver start timeout configurable. 2017-05-09 17:48:53 +02:00
Sean Chittenden ec200c7133
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 b80633765b
Puts tree into 0.8.3 development mode. 2017-05-09 07:41:56 -07:00
James Phillips 4a0a8a94dd
Bumps Consul version to 0.8.2. 2017-05-09 07:19:02 -07:00
James Phillips 8a0bece0a8
Release v0.8.2 2017-05-09 07:04:30 -07:00
James Phillips 9c4d65c3da
Puts tree into 0.8.2 release mode. 2017-05-09 06:58:29 -07:00
James Phillips 946281b127 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 bccf493262
Fixes vet errors. 2017-05-09 06:48:52 -07:00
James Phillips 6103198732
Tweaks some tests that were having a hard time in Travis CI and
bumps up the default retry time.
2017-05-09 06:48:26 -07:00
James Phillips 21d9d984fa
Adds prepared query API to ACLs table. 2017-05-08 21:37:52 -07:00
James Phillips 62cee1b013 Merge pull request #3008 from hashicorp/d-index-enterprise-features
Add Consul Enterprise section to Docs
2017-05-08 21:15:21 -07:00
James Phillips dd81668875 Update CHANGELOG.md 2017-05-08 20:44:20 -07:00
James Phillips 124af44679 Merge pull request #3019 from hashicorp/revert-2989-f-fix-illumos-build
Revert "Fix the build on Illumos."
2017-05-08 20:42:29 -07:00
James Phillips 63f61063bf Revert "Fix the build on Illumos." 2017-05-08 20:42:12 -07:00
James Phillips 518fae04e4
Updates built-in static assets for web UI. 2017-05-08 19:50:54 -07:00
James Phillips 4be6eda8e6 Merge pull request #3013 from justinwalz/justinwalz/doc_fix
Fixup ACL docs
2017-05-06 18:44:14 -07:00
Justin Walz bf31ca68bf Fixup ACL docs 2017-05-06 17:21:13 -07:00
Rob Genova ed8e2a05bc use relative links; remove extra spaces between words 2017-05-06 20:26:30 +00:00
James Phillips d087748e2d Merge pull request #3012 from hashicorp/jbs-2944
DOCS: Minor clarification to address #2944
2017-05-05 09:01:32 -07:00
Brian Shumate a4f1f9ef40
DOCS: Minor clarification to address #2944 2017-05-05 11:56:12 -04:00
James Phillips bad45a597c Merge pull request #3011 from hashicorp/jbs-2950
DOCS: minor clarification to address #2950
2017-05-05 08:54:20 -07:00
James Phillips 47de638fb8 Update CHANGELOG.md 2017-05-05 08:53:49 -07:00
Brian Shumate a1850b789d
DOCS: minor clarification to address #2950 2017-05-05 11:51:46 -04:00
James Phillips 06522d92af Merge pull request #3010 from hashicorp/jbs-ui-acl-docs
UI: open docs links in new tab
2017-05-05 08:51:43 -07:00
Brian Shumate 5b4cf71b38
Use updated ACL guide URL instead 2017-05-05 11:43:06 -04:00
Brian Shumate 601ca89516
UI: open docs links in new tab
- set `target="_blank"` on all docs URLs
2017-05-05 11:19:53 -04:00
Frank Schroeder f439fc111d
test: simplify joining clusters 2017-05-05 17:07:04 +02:00
Frank Schroeder 0a7898f039
test: simplify tests that check for peers 2017-05-05 17:07:04 +02:00
Frank Schroeder 5c6be1cc7a
test: Fix badly formatted retry.Run tests 2017-05-05 17:07:03 +02:00
Frank Schroeder 16a7b52026
test: Drop WaitForResult from testutil and testrpc 2017-05-05 17:07:03 +02:00
Frank Schroeder 17f6ecdd12
test: convert remaining WaitForResult tests 2017-05-05 17:07:03 +02:00
James Phillips 7007c89870
retry: Removes the description parameter. 2017-05-05 17:07:03 +02:00
James Phillips ffdfe2c201
test: Tweaks ACL replication tests to converge faster w/less spam. 2017-05-05 17:07:03 +02:00
James Phillips b9fb20d0cf
test: Turns off ACLs for catalog and health WAN translation tests.
Since this was doing registration to a foreign DC, it needs extra time
for the route to the ACL datacenter to be set up. ACLs aren't part of
this test, so by disabling them we make this more reliable and converge
faster than if we had added a retry.
2017-05-05 17:07:03 +02:00
James Phillips c77663fe65
test: Moves a variable closer to where it's used. 2017-05-05 17:07:03 +02:00
James Phillips 2e512d6e6d
test: Turns down server health interval for faster convergence.
This fixes the autopilot tests.
2017-05-05 17:07:02 +02:00
Frank Schroeder 9435cadeee
test: Refactor WaitForResult tests with retry
Refactor tests that use testutil.WaitForResult to use retry.

Since this requires refactoring the test functions in general this patch
also shows the use of the github.com/pascaldekloe/goe/verify library
which provides a good mechanism for comparing nested data structures.
Instead of just converting the tests from testutil.WaitForResult to
retry the tests that performing a nested comparison of data structures
are converted to the verify library at the same time.
2017-05-05 17:07:02 +02:00
Frank Schroeder 9f369c93c7
retry: add retry package for retriable tests
The current retry framework in testutil/testprc.WaitForResult uses
a func() (bool, error) callback until it succeeds or times out.
It captures the last error and returns it.

    if err := testutil.WaitForResult(t, func() (bool, error) {
	if err := foo(); err != nil {
	    return false, err
	}
	...
	return true, nil
    }); err != nil {
	t.Fatal(err)
    }

This makes the test functions more complex than they need to be since
both the boolean and the error indicate a success or a failure.

The retry.Run framework uses a an approach similar to t.Run()
from the testing framework.

    retry.Run(t, func(r *retry.R) {
	if err := foo(); err != nil {
	    r.Fatal(err)
	}
    })

The behavior of the Run function is configurable so that different
timeouts can be used for different tests.
2017-05-05 17:07:02 +02:00