diff options
Diffstat (limited to 'test/config')
-rw-r--r-- | test/config/README | 17 | ||||
-rw-r--r-- | test/config/gitlab/couchdb.yml | 3 | ||||
-rw-r--r-- | test/config/travis/couchdb.admin.yml | 5 | ||||
-rw-r--r-- | test/config/travis/couchdb.yml | 4 | ||||
-rw-r--r-- | test/config/travis/ruby-version | 1 | ||||
-rwxr-xr-x | test/config/travis/setup_couch.sh | 17 |
6 files changed, 0 insertions, 47 deletions
diff --git a/test/config/README b/test/config/README deleted file mode 100644 index 58e37b2..0000000 --- a/test/config/README +++ /dev/null @@ -1,17 +0,0 @@ -These files are used for Travis tests to test admin and user permissions: - -couchdb.yml.admin: - - when activated, leap_web has admin permissions (e.g. ability to create - databases, upload design docs). - -couchdb.yml.user: - - when activited, leap_web has normal permissions (e.g. can modify all the - records). - -The term 'user' here is misleading. It is really two different types of admin -permissions. - -Rails or rake must be run with 'test' environment for these configs to be -used. diff --git a/test/config/gitlab/couchdb.yml b/test/config/gitlab/couchdb.yml deleted file mode 100644 index 68761dc..0000000 --- a/test/config/gitlab/couchdb.yml +++ /dev/null @@ -1,3 +0,0 @@ -test: - auto_update_design_doc: false - host: "couchdb" diff --git a/test/config/travis/couchdb.admin.yml b/test/config/travis/couchdb.admin.yml deleted file mode 100644 index a7677f9..0000000 --- a/test/config/travis/couchdb.admin.yml +++ /dev/null @@ -1,5 +0,0 @@ -test: - auto_update_design_doc: false - username: "anna" - password: "secret" - diff --git a/test/config/travis/couchdb.yml b/test/config/travis/couchdb.yml deleted file mode 100644 index a57b888..0000000 --- a/test/config/travis/couchdb.yml +++ /dev/null @@ -1,4 +0,0 @@ -test: - auto_update_design_doc: false - username: "me" - password: "pwd" diff --git a/test/config/travis/ruby-version b/test/config/travis/ruby-version deleted file mode 100644 index 68b3a4c..0000000 --- a/test/config/travis/ruby-version +++ /dev/null @@ -1 +0,0 @@ -1.9.3-p551 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"' |