add cartodb250user api keys to redis
This commit is contained in:
parent
8136a1e136
commit
d9a34f3384
@ -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"
|
||||
|
@ -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'};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user