Commit 36594ba2 authored by Lasse Tjernaes Wardenaer's avatar Lasse Tjernaes Wardenaer
Browse files

Make changes to test

parent a4744c52
Pipeline #4838041 waiting for manual action with stages
in 56 minutes and 47 seconds
......@@ -42,6 +42,13 @@ if [ ! -z "${error}" ]; then
exit 1
fi
echo "Create json meta data input file"
rm /tmp/metaData
touch /tmp/metaData
echo '{"eosPath": "/file1", "diskInstance": "ctaeos", "uid": "0", "gid": "0", "archiveId": "1", "size": "1048", "checksumType": "", "checksumValue": "", "storageClass": "ctaStorageClass"}' >> /tmp/metaData
echo '{"eosPath": "/file2", "diskInstance": "ctaeos", "uid": "0", "gid": "0", "archiveId": "2", "size": "1048", "checksumType": "", "checksumValue": "", "storageClass": "ctaStorageClass"}' >> /tmp/metaData
kubectl cp /tmp/metaData ${NAMESPACE}/ctafrontend:/root/
echo
echo "ENABLE CTAFRONTEND TO EXECUTE CTA ADMIN COMMANDS"
kubectl -n ${NAMESPACE} exec ctacli -- cta-admin admin add --username ctafrontend --comment "for restore files test"
......@@ -61,5 +68,5 @@ sudo kubectl cp /etc/cta/cta-cli.conf ${NAMESPACE}/ctafrontend:/etc/cta/cta-cli.
echo
kubectl cp ~/CTA-build/cmdline/standalone_cli_tools/eos_namespace_injection/cta-eos-namespace-inject ${NAMESPACE}/ctafrontend:/usr/bin/
echo "kubectl -n ${NAMESPACE} exec ctafrontend -- bash -c XrdSecPROTOCOL=sss XrdSecSSSKT=/etc/cta/eos.sss.keytab cta-eos-namespace-injection --json /root/json.json"
kubectl -n ${NAMESPACE} exec ctafrontend -- bash -c "XrdSecPROTOCOL=sss XrdSecSSSKT=/etc/cta/eos.sss.keytab cta-eos-namespace-inject --json /root/json.json"
\ No newline at end of file
echo "kubectl -n ${NAMESPACE} exec ctafrontend -- bash -c XrdSecPROTOCOL=sss XrdSecSSSKT=/etc/cta/eos.sss.keytab cta-eos-namespace-inject --json /root/json.json"
kubectl -n ${NAMESPACE} exec ctafrontend -- bash -c "XrdSecPROTOCOL=sss XrdSecSSSKT=/etc/cta/eos.sss.keytab cta-eos-namespace-inject --json /root/metaData"
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment