On Mon, 2012-05-21 at 12:07 +0200, [email protected] wrote:
> From: Michal Fojtik <[email protected]>
>
>
> Signed-off-by: Michal fojtik <[email protected]>
Leftover debugging statement:
> diff --git a/tests/ec2/step_definitions/storage_volumes_steps.rb
> b/tests/ec2/step_definitions/storage_volumes_steps.rb
> index afd2f37..a6cd0a4 100644
> --- a/tests/ec2/step_definitions/storage_volumes_steps.rb
> +++ b/tests/ec2/step_definitions/storage_volumes_steps.rb
> @@ -72,6 +72,7 @@ end
>
> Then /^storage_volume should be attached to this instance$/ do
> get "/api/storage_volumes/vol-de30ccb4"
> + puts last_response.body
> (output_xml/"/storage_volume/mount/instance").first['id'].should ==
> 'i-7f6a021e'
> end
> diff --git a/tests/ec2/support/env.rb b/tests/ec2/support/env.rb
> index 5eb006a..39dd5ee 100644
> --- a/tests/ec2/support/env.rb
> +++ b/tests/ec2/support/env.rb
> @@ -1,26 +1,29 @@
> require 'rubygems'
> require 'nokogiri'
> -
> -SERVER_DIR = File::expand_path(File::join(File::dirname(__FILE__),
> "../../../server"))
> -$top_srcdir = SERVER_DIR
> -$:.unshift File::join($top_srcdir, 'lib')
> -Dir.chdir(SERVER_DIR)
> -
> -API_VERSION = "9.9.9"
> -API_ROOT_URL = "/api"
> +require 'rack/test'
>
> ENV['API_DRIVER'] = 'ec2'
> -ENV.delete('API_VERBOSE')
> -
> -load File.join($top_srcdir, 'lib', 'deltacloud', 'server.rb')
>
> -require 'rack/test'
> +#CONFIG = {
> +# :username => 'AKIAI77KNAA7ZXRLL7GQ',
> +# :password => 'idJ9vktNaDWAK0LWVVE/526ONvJmTl2Crto/s8Ok'
> +#}
Might wanna revoke that key ;) We should use ~/.deltacloud/config or
similar for credentials for running tests.
David