summaryrefslogtreecommitdiff
path: root/test/config/travis/setup_couch.sh
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2016-08-15 10:19:14 +0000
committerazul <azul@riseup.net>2016-08-15 10:19:14 +0000
commitc14e6f65d7c991d00724873a4b6ab45b54a2e765 (patch)
tree9b0e1b3d14dfd26557220699fc3987ec6ef9f3c7 /test/config/travis/setup_couch.sh
parent1457fcdae08a1cd7e1e7b36668f826547d2c7cf6 (diff)
parent75ef60dbf0c12841118065994f381fad110f8307 (diff)
Merge branch 'cleanup/ci-files' into 'develop'
Cleanup/ci files See merge request !3
Diffstat (limited to 'test/config/travis/setup_couch.sh')
-rwxr-xr-xtest/config/travis/setup_couch.sh17
1 files changed, 0 insertions, 17 deletions
diff --git a/test/config/travis/setup_couch.sh b/test/config/travis/setup_couch.sh
deleted file mode 100755
index 0502c12..0000000
--- a/test/config/travis/setup_couch.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-HOST="http://localhost:5984"
-echo "couch version :"
-curl -X GET $HOST
-echo "creating user :"
-curl -HContent-Type:application/json -XPUT $HOST/_users/org.couchdb.user:me --data-binary '{"_id": "org.couchdb.user:me","name": "me","roles": [],"type": "user","password": "pwd"}'
-echo "creating databases :"
-curl -X PUT $HOST/sessions
-curl -X PUT $HOST/users
-curl -X PUT $HOST/tickets
-echo "restricting database access :"
-curl -X PUT $HOST/sessions/_security -Hcontent-type:application/json --data-binary '{"admins":{"names":[],"roles":[]},"members":{"names":["me"],"roles":[]}}'
-curl -X PUT $HOST/users/_security -Hcontent-type:application/json --data-binary '{"admins":{"names":[],"roles":[]},"members":{"names":["me"],"roles":[]}}'
-curl -X PUT $HOST/tickets/_security -Hcontent-type:application/json --data-binary '{"admins":{"names":[],"roles":[]},"members":{"names":["me"],"roles":[]}}'
-echo "adding admin :"
-curl -X PUT $HOST/_config/admins/anna -d '"secret"'