add cartodb250user api keys to redis

This commit is contained in:
Eneko Lakasta 2018-02-08 11:13:21 +01:00
parent 8136a1e136
commit d9a34f3384
2 changed files with 25 additions and 1 deletions

View File

@ -160,4 +160,26 @@ cat <<EOF | redis-cli -p ${REDIS_PORT} -n 5
database_password "public"
EOF
cat <<EOF | redis-cli -p ${REDIS_PORT} -n 5
HMSET api_keys:cartodb250user:4321 \
user "localhost" \
type "master" \
grants_sql "true" \
grants_maps "true" \
database_role "${TESTUSER}" \
database_password "${TESTPASS}"
EOF
# API Key Default public
cat <<EOF | redis-cli -p ${REDIS_PORT} -n 5
HMSET api_keys:cartodb250user:default_public \
user "localhost" \
type "default" \
grants_sql "true" \
grants_maps "true" \
database_role "test_windshaft_publicuser" \
database_password "public"
EOF
echo "Finished preparing data. Ready to run tests"

View File

@ -115,7 +115,9 @@ afterEach(function(done) {
'rails:users:cartodb250user': true,
'rails:users:localhost': true,
'api_keys:localhost:1234': true,
'api_keys:localhost:default_public': true
'api_keys:localhost:default_public': true,
'api_keys:cartodb250user:4321': true,
'api_keys:cartodb250user:default_public': true
};
var databasesTasks = { 0: 'users', 5: 'meta'};