|
|
@@ -118,9 +118,6 @@ func TestV2UpdateKeySuccess(t *testing.T) {
|
|
|
resp, _ = tests.PutForm(fmt.Sprintf("%s%s", s.URL(), "/v2/keys/foo/bar"), v)
|
|
|
body := tests.ReadBodyJSON(resp)
|
|
|
assert.Equal(t, body["action"], "update", "")
|
|
|
-
|
|
|
- node := body["node"].(map[string]interface{})
|
|
|
- assert.Equal(t, node["prevValue"], "XXX", "")
|
|
|
})
|
|
|
}
|
|
|
|
|
|
@@ -178,7 +175,6 @@ func TestV2SetKeyCASOnIndexSuccess(t *testing.T) {
|
|
|
body := tests.ReadBodyJSON(resp)
|
|
|
assert.Equal(t, body["action"], "compareAndSwap", "")
|
|
|
node := body["node"].(map[string]interface{})
|
|
|
- assert.Equal(t, node["prevValue"], "XXX", "")
|
|
|
assert.Equal(t, node["value"], "YYY", "")
|
|
|
assert.Equal(t, node["modifiedIndex"], 3, "")
|
|
|
})
|
|
|
@@ -240,7 +236,6 @@ func TestV2SetKeyCASOnValueSuccess(t *testing.T) {
|
|
|
body := tests.ReadBodyJSON(resp)
|
|
|
assert.Equal(t, body["action"], "compareAndSwap", "")
|
|
|
node := body["node"].(map[string]interface{})
|
|
|
- assert.Equal(t, node["prevValue"], "XXX", "")
|
|
|
assert.Equal(t, node["value"], "YYY", "")
|
|
|
assert.Equal(t, node["modifiedIndex"], 3, "")
|
|
|
})
|