1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

rake mock[<provider>] and live[<provider] tasks

This commit is contained in:
Max Lincoln 2013-10-29 14:41:47 -03:00
parent ddf053f34e
commit 3e73582d42

View file

@ -65,6 +65,24 @@ namespace :test do
end
end
desc 'Run mocked tests for a specific provider'
task :mock, :provider do |t, args|
if args.to_a.size != 1
fail 'USAGE: rake live[<provider>]'
end
provider = args[:provider]
sh("export FOG_MOCK=true && bundle exec shindont tests/#{provider}")
end
desc 'Run live tests against a specific provider'
task :live, :provider do |t, args|
if args.to_a.size != 1
fail 'USAGE: rake live[<provider>]'
end
provider = args[:provider]
sh("export FOG_MOCK=false && bundle exec shindont tests/#{provider}")
end
task :nuke do
Fog.providers.each do |provider|
next if ['Vmfusion'].include?(provider)