Cosmetic fixes to integration test JSON

pull/1664/head
Philip O'Toole 2015-02-20 15:14:20 -08:00
parent 2a6689341a
commit e404f0bf66
1 changed files with 12 additions and 21 deletions

View File

@ -286,19 +286,16 @@ func Test_ServerSingleIntegration(t *testing.T) {
createRetentionPolicy(t, testName, nodes, "foo", "bar") createRetentionPolicy(t, testName, nodes, "foo", "bar")
write(t, testName, nodes, fmt.Sprintf(` write(t, testName, nodes, fmt.Sprintf(`
{ {
"database": "database": "foo",
"foo", "retentionPolicy": "bar",
"retentionPolicy":
"bar",
"points": "points":
[{ [{
"name": "name": "cpu",
"cpu",
"tags": { "tags": {
"host": "server01" "host": "server01"
}, },
"timestamp": %d, "timestamp": %d,
"precision":"n", "precision": "n",
"values":{ "values":{
"value": 100 "value": 100
} }
@ -335,19 +332,16 @@ func Test_Server3NodeIntegration(t *testing.T) {
createRetentionPolicy(t, testName, nodes, "foo", "bar") createRetentionPolicy(t, testName, nodes, "foo", "bar")
write(t, testName, nodes, fmt.Sprintf(` write(t, testName, nodes, fmt.Sprintf(`
{ {
"database": "database": "foo",
"foo", "retentionPolicy": "bar",
"retentionPolicy":
"bar",
"points": "points":
[{ [{
"name": "name": "cpu",
"cpu",
"tags": { "tags": {
"host": "server01" "host": "server01"
}, },
"timestamp": %d, "timestamp": %d,
"precision":"n", "precision": "n",
"values":{ "values":{
"value": 100 "value": 100
} }
@ -384,19 +378,16 @@ func Test_Server5NodeIntegration(t *testing.T) {
createRetentionPolicy(t, testName, nodes, "foo", "bar") createRetentionPolicy(t, testName, nodes, "foo", "bar")
write(t, testName, nodes, fmt.Sprintf(` write(t, testName, nodes, fmt.Sprintf(`
{ {
"database": "database": "foo",
"foo", "retentionPolicy": "bar",
"retentionPolicy":
"bar",
"points": "points":
[{ [{
"name": "name": "cpu",
"cpu",
"tags": { "tags": {
"host": "server01" "host": "server01"
}, },
"timestamp": %d, "timestamp": %d,
"precision":"n", "precision": "n",
"values":{ "values":{
"value": 100 "value": 100
} }