etcdserver: change machines endpoint to members

This commit is contained in:
Xiang Li
2014-10-12 09:33:52 +08:00
parent f16a272898
commit 1177b07535
5 changed files with 15 additions and 13 deletions

View File

@ -18,7 +18,7 @@ func TestClusterStoreAdd(t *testing.T) {
{
name: "Create",
params: []interface{}{
machineKVPrefix + "1/raftAttributes",
membersKVPrefix + "1/raftAttributes",
false,
`{"PeerURLs":null}`,
false,
@ -28,7 +28,7 @@ func TestClusterStoreAdd(t *testing.T) {
{
name: "Create",
params: []interface{}{
machineKVPrefix + "1/attributes",
membersKVPrefix + "1/attributes",
false,
`{"Name":"node1","ClientURLs":null}`,
false,
@ -97,7 +97,7 @@ func TestClusterStoreDelete(t *testing.T) {
cs := NewClusterStore(st, c)
cs.Remove(1)
wdeletes := []string{machineKVPrefix + "1"}
wdeletes := []string{membersKVPrefix + "1"}
if !reflect.DeepEqual(st.deletes, wdeletes) {
t.Error("deletes = %v, want %v", st.deletes, wdeletes)
}