Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix package names to point to Oyster::Provision::Backend::*
* Make sure the EC2 backend does the Provision::API * Add a builder to EC2 backend so that it uses the right image * Fix some typos and missing variables * Add stubby resize() method to conform to the API * Move checking for the ENV variables up to the top level of the configuration * Make sure that the Provision class creates a new Config object to pass through * Remove builders from ::Provision::API since we're passing that in now * Make Provision::Config mutable for now * Fix up the tests so that we pass in all the correct data * Remove extraneous and stale test directory Conflicts: t/Provision/01-EC2/01-basic.t
- Loading branch information
Showing
6 changed files
with
79 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,31 @@ | |||
use strict; | |||
use Test::More; | |||
|
|||
use Oyster::Provision; | |||
|
|||
unless ( $ENV{TEST_AWS_USER} && $ENV{TEST_AWS_KEY} ) { | |||
plan skip_all => << 'END'; | |||
Set TEST_AWS_USER and TEST_AWS_KEY in your environment for this test to run' | |||
END | |||
} | |||
|
|||
ok( | |||
my $server = Oyster::Provision->new( | |||
provision_class => 'Oyster::Provision::Backend::AmazonEC2', | |||
config => { | |||
api_username => $ENV{TEST_AWS_USER}, | |||
api_password => $ENV{TEST_AWS_KEY}, | |||
size => 'm1.small', | |||
name => 'Oyster-Test', | |||
image => 'ami-be6e99d7', | |||
pub_ssh => "$ENV{HOME}/Dropbox/Public/id_rsa.pub", | |||
} | |||
), | |||
'created server instance' | |||
); | |||
|
|||
ok( $server->create, 'deployed server' ); | |||
|
|||
ok( $server->delete, 'destroyed server' ); | |||
|
|||
done_testing(); |
This file was deleted.
Oops, something went wrong.