Skip to content
Snippets Groups Projects
Commit ea477251 authored by Michael Davis's avatar Michael Davis
Browse files

[ci] Configures gRPC

parent 62320327
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ cta.endpoint ctafrontend:10955
EOF
EOS_HOSTNAME=ctaeos
EOS_AUTH_KEY=migration-test-token
cat <<EOF >/etc/cta/castor-migration.conf
castor.db_login oracle:castor/<password>@castor
castor.json true
......@@ -31,7 +32,7 @@ castor.prefix /castor/cern.ch
eos.dry_run false
eos.prefix /eos/grpc
eos.endpoint ${EOS_HOSTNAME}:50051
eos.token migrationtesttoken
eos.token ${EOS_AUTH_KEY}
EOF
echo Migration tools configuration:
cat /etc/cta/castor-migration.conf
......
......@@ -209,6 +209,17 @@ fi
eos mkdir ${CTA_PROC_DIR}
eos mkdir ${CTA_WF_DIR}
# Configure gRPC interface:
#
# 1. Map requests to EOS virtual identities
eos -r 0 0 vid add gateway eoscta grpc
# 2. Add authorisation key (must be the same as the one specified in client.sh)
EOS_AUTH_KEY=migration-test-token
vid -r 0 0 set map -grpc key:${EOS_AUTH_KEY} vuid:2 vid:2
echo "gRPC authorized uid and gid:"
eos -r 0 0 vid ls | grep grpc:
# ${CTA_TEST_DIR} must be writable by eosusers and powerusers
# but as there is no sticky bit in eos, we need to remove deletion for non owner to eosusers members
# this is achieved through the ACLs.
......
......@@ -35,6 +35,8 @@ TMPFILE=/tmp/eos-test-inject-sh.$$
CASTOR_PREFIX=$(awk '/^castor.prefix[ ]/ { print $2 }' ${CONFIG_FILE})
EOS_PREFIX=$(awk '/^eos.prefix[ ]/ { print $2 }' ${CONFIG_FILE})
echo "Running as user ${UID}:${USER}"
# Ping the gRPC interface
${EOS_TEST_DIR_INJECT} ping || error "gRPC ping failed"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment