Generate Test Data with
$ cd temp_data; ./gen.sh
Some SDKs (e.g. erlcloud, aws-sdk-php, aws-sdk-cpp), connect to {BUCKETNAME}.{HOST},
you have to add corresponding entries to /etc/hosts
for name resolving
Reference: http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html
Eg: For localhost, add <testname>.localhost
to the line starting with 127.0.0.1, seperated by space.
Turn off cache features on leo_gateway.conf
as following.
cache.cache_ram_capacity = 0
cache.cache_disc_capacity = 0
$ tester [SIGNATURE_VERSION] [HOST] [PORT] [BUCKET]
Note that some libraries only support v2/v4 signature
$ git submodule update -i
$ cd aws-sdk-cpp
$ mkdir build
$ cd build
$ cmake -DBUILD_ONLY="s3" ..
$ make
$ LeoFSTest.cpp v4 localhost 8080 testc
$ sudo apt-get install golang
$ mkdir $HOME/go
$ export GOPATH=$HOME/go
$ go get github.com/aws/aws-sdk-go/service/s3
$ cd aws-sdk-go
$ go run LeoFSTest.go v4 localhost 8080 testg
$ cd aws-sdk-java
$ ant -Dsignver=v4 -Dhost="localhost" -Dport=8080 -Dbucket="testj"
or
$ ant -Dsignver=v2 -Dhost="localhost" -Dport=8080 -Dbucket="testj"
$ cd aws-sdk-php
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
$ sudo apt-get install php-curl php-xml php-simplexml
$ cd aws-sdk-php
$ php LeoFSTest.php v4 localhost 8080 testp
or
$ php LeoFSTest.php v2 localhost 8080 testp
- content_type depends on libmagic
## CentOS/Fedora/RHEL:
$ sudo yum install libmagic-devel
$ sudo apt-get install ruby-devel
## Ubuntu/Debian
$ sudo apt-get install libmagic-dev
$ sudo apt-get install ruby-dev
- Install the gems
$ sudo gem install aws-sdk
$ sudo gem install content_type
$ cd aws-sdk-ruby
$ ruby LeoFSTest.rb v4 localhost 8080 testr
or
$ ruby LeoFSTest.rb v2 localhost 8080 testr
$ sudo pip install boto
$ sudo pip install filechunkio
$ python LeoFSTest.py v4 localhost 8080 testb
or
$ python LeoFSTest.py v2 localhost 8080 testb
$ sudo pip install boto3
$ sudo pip install filechunkio
$ python LeoFSTest.py v4 localhost 8080 testb3
or
$ python LeoFSTest.py v2 localhost 8080 testb3
$ cd erlcloud
$ make
$ ./LeoFSTest.erl v2 localhost 8080 teste
$ cd jclouds
$ mvn dependency:copy-dependencies
$ ant -Dsignver=v2 -Dhost="localhost" -Dport=8080 -Dbucket="testj"