From Fedora Project Wiki

m (fix admon note)
m (change format of page.)
Line 3: Line 3:
|setup=
|setup=
{{admon/note|You need an Amazon AWS account to perform this Test Case}}
{{admon/note|You need an Amazon AWS account to perform this Test Case}}
* Clone the BoxGrinder test appliances into a convenient location using command <code>git clone https://github.com/msavy/boxgrinder-appliances.git</code>
# [[Test_Day:2011-04-28_Cloud_SIG_BoxGrinder_Build#Prepare your environment|Prepare your environment]]
* Put the following BoxGrinder config into a file named: <code>~/.boxgrinder/config</code>. Insert appropriate values, see: http://boxgrinder.org/tutorials/boxgrinder-build-plugins/#S3_Delivery_Plugin, for more information.
# Put the following BoxGrinder config into a file named: <code>/root/.boxgrinder/config</code>
<pre>
<pre>
plugins:
plugins:
Line 16: Line 16:


|actions=
|actions=
# Navigate to directory <code>boxgrinder-appliances/testing-appliances/jeos-appls/</code>
# Execute <pre>boxgrinder-build boxgrinder-appliances/testing-appliances/jeos-appls/fedora-15-jeos.appl -p ec2 -d s3 --trace</pre>   
# Execute <pre>boxgrinder-build fedora-15-jeos.appl -p ec2 -d s3</pre>   
|results=
|results=
The following must be true to consider this a successful test run.
The following must be true to consider this a successful test run.
# Step #2 completes without error (indicated on console)
# Step #1 completes without error (indicated on console)
# Program completes with exit code 0
# Program completes with exit code 0
# A tar.gz file of the appliance has appeared in your S3 bucket at the expected path
# A tar.gz file of the appliance has appeared in your S3 bucket at the expected path
}}
}}

Revision as of 10:58, 23 April 2011

Description

Deliver an appliance to Amazon S3

Setup

You need an Amazon AWS account to perform this Test Case
  1. Prepare your environment
  2. Put the following BoxGrinder config into a file named: /root/.boxgrinder/config
plugins:
  s3:
    access_key: AWS_ACCESS_KEY                        # (required)
    secret_access_key: AWS_SECRET_ACCESS_KEY          # (required)
    bucket: stormgrind-test                           # (required)
    account_number: 0000-0000-0000                    # (required)
    path: /images                                     # default: /

How to test

  1. Execute
    boxgrinder-build boxgrinder-appliances/testing-appliances/jeos-appls/fedora-15-jeos.appl -p ec2 -d s3 --trace

Expected Results

The following must be true to consider this a successful test run.

  1. Step #1 completes without error (indicated on console)
  2. Program completes with exit code 0
  3. A tar.gz file of the appliance has appeared in your S3 bucket at the expected path