Changeset 3257


Ignore:
Timestamp:
May 5, 2009, 11:23:09 AM (14 years ago)
Author:
Gregory Vincic
Message:

Fixes #546. Removed concurency problems. Tested with test no. 8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/servlet/test/test_webservice.sh

    r3256 r3257  
    5454
    5555case $1 in
     56  8)
     57    test="Creating 10 files as quickly as possible"
     58        for i in {1..10}
     59    do
     60      generate_name
     61      echo -e "Name\tDescription" > $A
     62      echo -e "${i}_$name\tThis is the ${i}:th file" >> $A
     63      curlit "-T $A" "$resource/files?username=demo&password=demo"
     64      curlit "-s -o $B" "$resource/files?username=demo&password=demo&select=Id&whereName==${i}_$name"
     65      lastid=`tail -n 1 $B | perl -ane '/(\d+)/; print \$1;'`
     66      text="Hello"
     67      echo $text > $C
     68      curlit "-T $C" "$resource/files/$lastid?username=demo&password=demo"
     69      curlit "-s -o $D" "$resource/files/$lastid?username=demo&password=demo"
     70      diff=`diff $C $D`
     71      if [ "$diff" != "" ]; then
     72        fail "$test" "Content of files is not the same after download. Compare $C and $D"
     73      fi
     74    done
     75    ;;
    5676  7)
    5777    test="External file URI http://... with basic authentication"
     
    164184    ;;
    165185  all)
    166     for ttt in {1..7}
     186    for ttt in {1..8}
    167187    do
    168188      $0 clean
Note: See TracChangeset for help on using the changeset viewer.