Add v1.solo migration fixture.

This commit is contained in:
Ben Johnson 2013-11-04 13:56:02 -07:00
parent 6b5d6ecd8b
commit 35d9719707
20 changed files with 44 additions and 5 deletions

View File

@ -3,13 +3,13 @@ README
The scripts in this directory should be run from the project root:
$ cd $GOPATH/src/github.com/coreos/etcd
$ tests/fixtures/v1/complete.1.sh
$ tests/fixtures/v1/run.1.sh
Scripts with numbers should be run in separate terminal windows (in order):
$ tests/fixtures/v1/complete.1.sh
$ tests/fixtures/v1/complete.2.sh
$ tests/fixtures/v1/complete.3.sh
$ tests/fixtures/v1/complete.4.sh
$ tests/fixtures/v1/run.1.sh
$ tests/fixtures/v1/run.2.sh
$ tests/fixtures/v1/run.3.sh
$ tests/fixtures/v1/run.4.sh
The resulting server state data can be found in tmp/node*.

0
tests/fixtures/v1/run.1.sh → tests/fixtures/v1.cluster/run.1.sh vendored Normal file → Executable file
View File

0
tests/fixtures/v1/run.2.sh → tests/fixtures/v1.cluster/run.2.sh vendored Normal file → Executable file
View File

0
tests/fixtures/v1/run.3.sh → tests/fixtures/v1.cluster/run.3.sh vendored Normal file → Executable file
View File

0
tests/fixtures/v1/run.4.sh → tests/fixtures/v1.cluster/run.4.sh vendored Normal file → Executable file
View File

13
tests/fixtures/v1.solo/README vendored Normal file
View File

@ -0,0 +1,13 @@
README
The scripts in this directory should be run from the project root:
$ cd $GOPATH/src/github.com/coreos/etcd
$ tests/fixtures/v1.solo/run.1.sh
Scripts with numbers should be run in separate terminal windows (in order):
$ tests/fixtures/v1/run.1.sh
$ tests/fixtures/v1/run.2.sh
The resulting server state data can be found in tmp/node0.

1
tests/fixtures/v1.solo/node0/conf vendored Normal file
View File

@ -0,0 +1 @@
{"commitIndex":1,"peers":[]}

18
tests/fixtures/v1.solo/node0/info vendored Normal file
View File

@ -0,0 +1,18 @@
{
"name": "node0",
"raftURL": "http://127.0.0.1:7001",
"etcdURL": "http://127.0.0.1:4001",
"webURL": "",
"raftListenHost": "127.0.0.1:7001",
"etcdListenHost": "127.0.0.1:4001",
"raftTLS": {
"CertFile": "",
"KeyFile": "",
"CAFile": ""
},
"etcdTLS": {
"CertFile": "",
"KeyFile": "",
"CAFile": ""
}
}

BIN
tests/fixtures/v1.solo/node0/log vendored Normal file

Binary file not shown.

4
tests/fixtures/v1.solo/run.1.sh vendored Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
./build
./etcd -d tmp/node0 -n node0

3
tests/fixtures/v1.solo/run.2.sh vendored Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
curl -L http://127.0.0.1:4001/v1/keys/message -d value="Hello world"