diff --git a/continuousintegration/orchestration/tests/client_helper.sh b/continuousintegration/orchestration/tests/client_helper.sh index a7d50e7d043d93cffdabfe9ebd0b88a8ac379fe9..39378762c445e1fbf1914da6d0a12699c7492797 100644 --- a/continuousintegration/orchestration/tests/client_helper.sh +++ b/continuousintegration/orchestration/tests/client_helper.sh @@ -10,6 +10,7 @@ # admin_kdestroy: kdestroy for CTAADMIN_USER # admin_cta: runs a cta command as CTAADMIN_USER +EOSPOWER_USER="poweruser1" CTAADMIN_USER="ctaadmin2" USER="user1" @@ -35,3 +36,22 @@ admin_kdestroy() { KRB5CCNAME=/tmp/${CTAADMIN_USER}/krb5cc_0 kdestroy admin_klist } + +eospower_eos() { + XrdSecPROTOCOL=krb5 KRB5CCNAME=/tmp/${EOSPOWER_USER}/krb5cc_0 eos $@ +} + +eospower_klist() { + KRB5CCNAME=/tmp/${EOSPOWER_USER}/krb5cc_0 klist +} + +eospower_kinit() { + KRB5CCNAME=/tmp/${EOSPOWER_USER}/krb5cc_0 kinit -kt /root/${EOSPOWER_USER}.keytab ${EOSPOWER_USER}@TEST.CTA + eospower_klist +} + +eospower_kdestroy() { + KRB5CCNAME=/tmp/${EOSPOWER_USER}/krb5cc_0 kdestroy + eospower_klist +} + diff --git a/continuousintegration/orchestration/tests/prepare_tests.sh b/continuousintegration/orchestration/tests/prepare_tests.sh index 95ea90a51850f98411af821b7529d319b961d19f..2afad3da0b2ffcd27de123e13d85eb43104d2aec 100755 --- a/continuousintegration/orchestration/tests/prepare_tests.sh +++ b/continuousintegration/orchestration/tests/prepare_tests.sh @@ -134,3 +134,4 @@ kubectl --namespace ${NAMESPACE} exec ctacli -- cta adminhost add --name ${clien kubectl --namespace ${NAMESPACE} exec ctacli -- cta admin add --username ctaadmin2 --comment "ctaadmin2" kubectl --namespace=${NAMESPACE} exec kdc cat /root/ctaadmin2.keytab | kubectl --namespace=${NAMESPACE} exec -i client -- bash -c "cat > /root/ctaadmin2.keytab; mkdir -p /tmp/ctaadmin2" +kubectl --namespace=${NAMESPACE} exec kdc cat /root/poweruser1.keytab | kubectl --namespace=${NAMESPACE} exec -i client -- bash -c "cat > /root/poweruser1.keytab; mkdir -p /tmp/poweruser1"