Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 57 lines (43 sloc) 1.055 kb
#!/bin/bash
function wait_for_ready()
{
for i in `seq 1 10`
do
sleep 30
${NIMBUS_HOME}/bin/nimbus-nodes -l
if [ $? -eq 0 ]; then
return
fi
done
echo "We could not get nimbus nodes to work after 10 tries"
}
tests="cc-prop2-test.py cc-unprop-md5test.py cc-propsamename-test.py cc-unprop-readwrite-test.py cc-prop-test.py cc-unprop-size-test.py cc-submit-common-unprop-size-test.py"
old='scp'
new='cp'
conf="${NIMBUS_HOME}/services/etc/nimbus/workspace-service/other/authz-callout-ACTIVE.xml"
bkup=`mktemp`
cp $conf $bkup
echo "setting up nimbus to use the cp propagation adapter"
cmd="sed -i s^$old^$new^ $conf"
echo $cmd
$cmd
${NIMBUS_HOME}/bin/nimbusctl restart
wait_for_ready
function on_exit()
{
echo "return to default propagation adapter"
mv $bkup $conf
${NIMBUS_HOME}/bin/nimbusctl restart
wait_for_ready
}
trap on_exit EXIT
for tst in $tests
do
echo "running $tst"
./$tst
if [ $? -ne 0 ]; then
echo "FAILED"
exit 1
fi
done
exit 0
Jump to Line
Something went wrong with that request. Please try again.