From Fedora Project Wiki
(initial boxgrinder delivery sftp test case) |
mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
|description=Deliver an appliance to an SFTP server | |description=Deliver an appliance to an SFTP server | ||
|setup= | |setup= | ||
{{admon/note| | {{admon/note|Password authentication is not supported|Password is not supported, only key authentication without password is supported.}} | ||
# [[Test_Day:2011-04-28_Cloud_SIG_BoxGrinder_Build#Prepare your environment|Prepare your environment]] | |||
# Ensure you have the correct keys registered to enable SFTP authentication on your server. | |||
# Test your setup trying to connect to the host using specified username. | |||
# Put the following BoxGrinder config into a file named: <code>/root/.boxgrinder/config</code>. Replace '''IP_ADDRESS_OR_HOST''' and '''YOUR_USERNAME''' with appropriate values | |||
<pre> | <pre> | ||
plugins: | plugins: | ||
Line 12: | Line 14: | ||
path: /some/path/ | path: /some/path/ | ||
</pre> | </pre> | ||
{{admon/warning|BoxGrinder Build config file location|The default location for this file is <code>/root/.boxgrinder/config</code>. You can put this file in different location by specifying <code>BG_CONFIG_FILE</code> environment variable.}} | |||
|actions= | |actions= | ||
# | # Execute: <pre>boxgrinder-build testing-appliances/jeos-appls/fedora-14-jeos.appl -d sftp --trace</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 # | # Step #1 completes without error (indicated on console) | ||
# Program completes with exit code 0 | # Program completes with exit code 0 | ||
# Determine whether a | # Determine whether a packaged appliance file appeared on target host in the expected location | ||
}} | }} |
Latest revision as of 06:18, 28 April 2011
Description
Deliver an appliance to an SFTP server
Setup
- Prepare your environment
- Ensure you have the correct keys registered to enable SFTP authentication on your server.
- Test your setup trying to connect to the host using specified username.
- Put the following BoxGrinder config into a file named:
/root/.boxgrinder/config
. Replace IP_ADDRESS_OR_HOST and YOUR_USERNAME with appropriate values
plugins: sftp: host: IP_ADDRESS_OR_HOST username: YOUR_USERNAME path: /some/path/
How to test
- Execute:
boxgrinder-build testing-appliances/jeos-appls/fedora-14-jeos.appl -d sftp --trace
Expected Results
The following must be true to consider this a successful test run.
- Step #1 completes without error (indicated on console)
- Program completes with exit code 0
- Determine whether a packaged appliance file appeared on target host in the expected location