Commit Graph

1192 Commits (1ab3db18bb4ddaa267952027fcaef355ea40fbdd)

Author SHA1 Message Date
brianbianco 1ab3db18bb fix(README): remove prevValue references in the README
We plan on adding a PrevNode field in the Response object but it hasn't
been needed thus far. Discussion was here:

http://thread.gmane.org/gmane.comp.distributed.etcd/56

Fixes #428
2013-12-30 10:44:35 -08:00
Brandon Philips 8edc1f30d9 Merge pull request #424 from xiangli-cmu/fix_lock_doc
docs(README.md) fix wrong index value in lock section
2013-12-29 17:26:26 -08:00
Xiang Li 5266968b61 docs(README.md) fix wrong index value in lock section 2013-12-30 09:24:18 +08:00
Brandon Philips 9bd36f173e Merge pull request #422 from dsoprea/master
Add documentation for enumerating sorted, in-order keys.
2013-12-29 10:09:01 -08:00
Dustin Oprea e66f6d76e6 Modified doc. 2013-12-28 11:38:59 -05:00
Dustin Oprea c62603ba73 Added documentation for sorted listings. 2013-12-28 11:37:32 -05:00
Xiang Li 4692d6e966 Merge pull request #421 from philips/README-api-versioning
feat(README): add an API versioning section
2013-12-28 07:33:13 -08:00
Brandon Philips 9049a2afd5 feat(README): add an API versioning section
Based on a question on the mailing list. Add a section about API
versioning.
2013-12-28 07:13:41 -08:00
Brandon Philips 3b485e20bb Merge pull request #419 from kula/fix-leader-documentation
fix(README): fixup leader docs
2013-12-27 22:48:31 -08:00
Thomas L. Kula d447ba52ad fix(README): fixup leader docs
The leader module uses PUT to set a leader value and DELETE to delete one. Fix
the documents to reflect that.
2013-12-27 15:15:19 -05:00
Xiang Li e96234382a Merge pull request #417 from philips/fixup-readme
fix(README): Remove excress backticks
2013-12-25 23:06:25 -08:00
Brandon Philips 78e2a27ee0 fix(README): Remove excress backticks 2013-12-25 19:28:43 -08:00
Xiang Li 715b4d7bfc Merge pull request #408 from xiangli-cmu/compareAndDelete
Compare and delete
2013-12-25 13:16:27 -08:00
Xiang Li c36f306a1d test(delete_handler_test.go) fix inconsistent between test case and comments 2013-12-25 19:05:40 +08:00
Xiang Li bfa7d54b02 refactor(store.go) handle short condition first 2013-12-25 19:01:04 +08:00
Brandon Philips 5271378fc2 Merge pull request #416 from drnic/patch-1
[readme] references to BOSH releases using etcd
2013-12-23 11:14:28 -08:00
Dr Nic Williams 5ab2f5454c [readme] references to BOSH releases using etcd 2013-12-23 09:49:24 -08:00
Ben Johnson 4748da1e09 Merge pull request #415 from philips/fix-lock-docs
fix(README): fixup lock docs
2013-12-23 05:53:23 -08:00
Brandon Philips c3b4d10b74 fix(README): fixup lock docs
I thought that @benbjohnson had changed the lock "value" to "name" but
that doesn't look to be the case. It is OK, just fix the docs.
2013-12-22 22:03:07 -08:00
Xiang Li f026d1c14e Merge pull request #414 from philips/getting-started
fix(README): we are building containers too
2013-12-22 20:43:19 -08:00
Brandon Philips e30bf19684 fix(README): we are building containers too
We are building a docker container now too so don't get specific about
just the binary.

I thought about adding instructions to the README but lets just keep
following the pattern of putting version getting started guides on the
release page.
2013-12-22 20:13:02 -08:00
Xiang Li d4553714d9 Merge pull request #413 from philips/event_history
fix(event_history): fix a bug in event queue
2013-12-22 15:48:31 -08:00
Brandon Philips e1d909eb0e test(store/event_test): add a test for a full queue 2013-12-22 15:42:51 -08:00
Brandon Philips 317b34f4a0 refactor(store/event_history): cleanup some comments 2013-12-22 15:42:10 -08:00
Xiang Li 0937b4d266 refactor(event_history.go) remove the extra logic 2013-12-22 15:42:10 -08:00
Xiang Li ef988020b7 fix(event_history) fix a bug in event queue 2013-12-22 15:42:10 -08:00
Xiang Li 70c8c09360 Merge pull request #412 from mojotech/cas/403-proper-http-statuses
Use more appropriate HTTP status codes for error cases.
2013-12-21 20:29:40 -08:00
Chris Shoemaker d89fa131ab feat(v2/errors): Use more appropriate HTTP status codes for error cases.
This commits adds test coverage for all the error and non-error cases
described below, but only the behavior of the 403, 404 and 412 cases
are changing in this commit.

When setting a key results in a new resource, we asset an HTTP status
code of 201 (aka "Created").

When attempting to get a resource that doesn't exist, we assert an
HTTP status code of 404 (aka "Not Found").

When attempting to delete a directory without dir=true, or a non-empty
directory without recursive=true, but the request is otherwise valid,
we assert an HTTP status code of 403 (aka "Forbidden").

When a precondition (e.g. specified by prevIndex, or prevValue) is not
met, but the request is otherwise syntactically valid, we assert an
HTTP status code of 412 (aka "Precondition Failed").  However,
prevExist is handled slightly differently.  If prevExist=false fails,
then this is treated like a failed precondition, so it should use
PreconditionFailed.  But, if prevExist=true fails, then this is
treated like other requests that require the existence of the
resource, and uses NotFound if the resource doesn't exist.

We continue to assert an HTTP status code of 400 when the request is
syntactically invalid (e.g. when prevIndex=bad_index).
2013-12-21 21:39:19 -05:00
Chris Shoemaker 3f85829e87 fix(v2/tests): make comments and tests agree about what's being tested
In cases where the comments were incorrect, this changes them to agree
with the tests.  In cases where the comments were correct, this extends
the tests to cover the behavior described in the comment.
2013-12-21 21:39:19 -05:00
Chris Shoemaker 3cde996d21 refactor(v2/tests): don't repeat construction of full test URL 2013-12-21 21:39:19 -05:00
Chris Shoemaker 39fb266776 fix(error.go): fix typo in comment 2013-12-21 21:39:19 -05:00
Xiang Li 557ffbb861 Merge pull request #411 from xiangli-cmu/bench
Bench
2013-12-21 14:16:08 -08:00
Xiang Li ddcf3975ed fix bench 2013-12-21 16:44:28 +08:00
Brandon Philips cc88215b46 fix(bench): initial commit 2013-12-20 15:19:02 -08:00
Xiang Li c4179829d6 tests(get_handler) loosen the time assumption for the un 2013-12-20 08:23:50 +08:00
Xiang Li 9cf1fcc987 refactor(compareAndDelete) 2013-12-20 05:10:22 +08:00
Xiang Li e2fa89d554 merge compareAndDelete 2013-12-19 22:19:49 +08:00
Ben Johnson 75c02ed0da Merge pull request #405 from benbjohnson/tuning
Add Tuning section to README.
2013-12-18 15:42:16 -08:00
Ben Johnson c7536ff5e1 Add Tuning section to README. 2013-12-18 16:40:29 -07:00
Ben Johnson fd8ce5d11a Merge pull request #398 from benbjohnson/mod-leader
mod/leader
2013-12-16 14:55:11 -08:00
Brandon Philips 838645f1b7 Merge pull request #402 from philips/add-header-docs
feat(README): document the etcd request headers
2013-12-16 12:44:49 -08:00
Brandon Philips 4fb8e79237 Merge pull request #404 from philips/add-cetcd
feat(README): add cetcd
2013-12-16 10:38:01 -08:00
Brandon Philips c352db9acd feat(README): add cetcd 2013-12-16 10:37:26 -08:00
Brandon Philips 60813103e3 Merge pull request #401 from philips/add-dir-docs
feat(README): add notes about in-order key creation
2013-12-16 10:30:32 -08:00
Brandon Philips d816db07e3 feat(README): add directory tutorial 2013-12-16 10:30:13 -08:00
Ben Johnson 296eaf7b34 Add leader module to README. 2013-12-16 08:00:16 -07:00
Ben Johnson 2ce587ebc7 Merge branch 'master' of https://github.com/coreos/etcd into mod-leader 2013-12-16 07:47:31 -07:00
Brandon Philips 18bf886368 feat(README): document the etcd request headers 2013-12-15 21:45:10 -08:00
Brandon Philips 1de78fef4d feat(README): add notes about in-order key creation 2013-12-14 13:08:02 -08:00
Brandon Philips 54794d57fe Merge pull request #400 from philips/add-lock-docs2
fix(README): cleanup lock documentation
2013-12-13 15:07:56 -08:00