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:
parent
ddf053f34e
commit
3e73582d42
1 changed files with 19 additions and 1 deletions
18
Rakefile
18
Rakefile
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue