3486 |
16 Nov 09 |
gregory |
# PUT empty file in home directory of $user |
3486 |
16 Nov 09 |
gregory |
# Count file items |
3486 |
16 Nov 09 |
gregory |
3 |
GET "$A" "$resource/files?$auth" |
3486 |
16 Nov 09 |
gregory |
4 |
count=`grep -c -h "" $A` |
3486 |
16 Nov 09 |
gregory |
5 |
generate_name |
3486 |
16 Nov 09 |
gregory |
6 |
echo "Name" > $B |
3486 |
16 Nov 09 |
gregory |
7 |
echo "$name" >> $B |
3486 |
16 Nov 09 |
gregory |
8 |
PUT "$B" "$resource/files?$auth" |
3486 |
16 Nov 09 |
gregory |
9 |
GET "$C" "$resource/files?$auth" |
3486 |
16 Nov 09 |
gregory |
10 |
count2=`grep -c -h "" $C` |
3486 |
16 Nov 09 |
gregory |
11 |
if [ "$count" == "$count2" ]; then |
3486 |
16 Nov 09 |
gregory |
12 |
fail "$test" "Count of files did not increase after upload. Check $A, $B and $C" |
3486 |
16 Nov 09 |
gregory |
13 |
fi |
3486 |
16 Nov 09 |
gregory |
# $Id$ |