Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Deploy the cloudstack (3.0.3) or above code.
  2. Enable S3 ( in CS UI -> Global Settings, search for ‘enable.s3.api’ change the flag to 'true' and restart the management server)
  3. Register a user to access the S3 API.
    Code Block
      ./cloudstack-aws-api-register -u http://<s3hostip>:7080/awsapi/rest/AmazonS3 -a admin -s admin openssl_generated.mycert.pem
    
    NOTE: Please create user name and password as admin/admin. I had hardcoded them in the test files for the time being.
  4. Checkout s3tests and go to 's3tests\tests' folder
    Configure the boto S3Connection object as follows:
    Code Block
    
     calling_format= OrdinaryCallingFormat()
    

...

  1.  connection = S3Connection(aws_access_key_id=<your api key>,
     aws_secret_access_key=<your secret key>
     is_secure=False,
     host='<cloudstack-server>',
     port=7080, //S3 service port
     calling_format=calling_format,
     path="/awsapi/rest/AmazonS3") //prefix path.
     
  2. Execute the S3 tests using the command.
    Code Block
    
       ./test.py -t s3 -v 0
     

replace last argument 0 with 0 or 1 or 2 for different level of verbosity

...