Add setup script for the benchmark tool

pull/290/head
Paul Dix 2014-02-27 15:17:43 -05:00
parent 47058eb0e8
commit 9513a6165e
1 changed files with 6 additions and 0 deletions

6
src/benchmark/setup.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
curl -X POST -d '{"name":"benchmark"}' 'http://localhost:8086/db?u=root&p=root'
curl -X POST -d '{"name":"reports"}' 'http://localhost:8086/db?u=root&p=root'
curl -X POST -d '{"name":"paul","password":"pass"}' 'http://localhost:8086/db/benchmark/users?u=root&p=root'
curl -X POST -d '{"name":"user","password":"pass"}' 'http://localhost:8086/db/reports/users?u=root&p=root'