Sha256: 56fcf3a3c185f2ffef609173622a88b1f537b00709d64e8a81317614c5d20706
Contents?: true
Size: 1.27 KB
Versions: 4
Compression:
Stored size: 1.27 KB
Contents
require 'fog' require 'fog/bin' # for available_providers and registered_providers require File.expand_path(File.join(File.dirname(__FILE__), 'helpers', 'mock_helper')) def lorem_file File.open(File.dirname(__FILE__) + '/lorem.txt', 'r') end def array_differences(array_a, array_b) (array_a - array_b) | (array_b - array_a) end # check to see which credentials are available and add others to the skipped tags list all_providers = Fog.registered_providers.map {|provider| provider.downcase} # Manually remove these providers since they are local applications, not lacking credentials all_providers = all_providers - ["libvirt", "virtualbox", "vmfusion"] available_providers = Fog.available_providers.map {|provider| provider.downcase} unavailable_providers = all_providers - available_providers for provider in unavailable_providers Formatador.display_line("[yellow]Skipping tests for [bold]#{provider}[/] [yellow]due to lacking credentials (add some to '~/.fog' to run them)[/]") Thread.current[:tags] << ('-' << provider) end # mark libvirt tests pending if not setup begin require('ruby-libvirt') rescue LoadError Formatador.display_line("[yellow]Skipping tests for [bold]libvirt[/] [yellow]due to missing `ruby-libvirt` gem.[/]") Thread.current[:tags] << '-libvirt' end
Version data entries
4 entries across 4 versions & 3 rubygems
Version | Path |
---|---|
fog-parser-fix-1.6.1 | tests/helper.rb |
fog-test-again-1.6.0 | tests/helper.rb |
fog-parser-fix-1.6.0 | tests/helper.rb |
fog-1.6.0 | tests/helper.rb |