repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/fogdocker/requests/compute/api_version_tests.rb
tests/fogdocker/requests/compute/api_version_tests.rb
Shindo.tests('Fog::Compute[:fogdocker] | api_version request', ['fogdocker']) do compute = Fog::Compute[:fogdocker] tests('The response should') do response = compute.api_version() test('be a Hash') { response.kind_of? Hash} end end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/fogdocker/requests/compute/image_delete_tests.rb
tests/fogdocker/requests/compute/image_delete_tests.rb
Shindo.tests("Fog::Compute[:fogdocker] | image_delete request", 'fogdocker') do compute = Fog::Compute[:fogdocker] image_hash = compute.image_create({'fromImage' => 'mattdm/fedora', 'repo'=>'test', 'tag'=>'delete_image'}) tests("Delete image") do begin response = compute.image_delete(:id => image_hash...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/fogdocker/requests/compute/container_action_tests.rb
tests/fogdocker/requests/compute/container_action_tests.rb
Shindo.tests("Fog::Compute[:fogdocker] | container_action request", 'fogdocker') do compute = Fog::Compute[:fogdocker] name = "fog-#{Time.now.to_i}" response = compute.container_create(:name => name, 'image' => 'mattdm/fedora:f19','Cmd' => ['date']) id = response['id'] tests("Start Container") do respon...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/fogdocker/models/compute/images_tests.rb
tests/fogdocker/models/compute/images_tests.rb
Shindo.tests('Fog::Compute[:fogdocker] | images collection', ['fogdocker']) do images = Fog::Compute[:fogdocker].images tests('The images collection') do test('should be a kind of Fog::Compute::Fogdocker::images') { images.kind_of? Fog::Compute::Fogdocker::Images } end end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/fogdocker/models/compute/servers_tests.rb
tests/fogdocker/models/compute/servers_tests.rb
Shindo.tests('Fog::Compute[:fogdocker] | servers collection', ['fogdocker']) do servers = Fog::Compute[:fogdocker].servers tests('The servers collection') do test('should not be empty') { not servers.empty? } test('should be a kind of Fog::Compute::Fogdocker::Servers') { servers.kind_of? Fog::Compute::Fog...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/fogdocker/models/compute/image_tests.rb
tests/fogdocker/models/compute/image_tests.rb
Shindo.tests('Fog::Compute[:fogdocker] | image model', ['fogdocker']) do images = Fog::Compute[:fogdocker].images image = images.last.reload tests('The image model should') do tests('have the action') do test('reload') { image.respond_to? 'reload' } end tests('have attributes') do model_...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/fogdocker/models/compute/server_tests.rb
tests/fogdocker/models/compute/server_tests.rb
Shindo.tests('Fog::Compute[:fogdocker] | server model', ['fogdocker']) do compute = Fog::Compute[:fogdocker] server = compute.servers.create(:name => "fog-#{Time.now.to_i}", 'image' => 'mattdm/fedora:f19','Cmd' => ['date']) tests('The server model should') do tests('have the action') do test('reload')...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/dnsmadeeasy/requests/dns/dns_tests.rb
tests/dnsmadeeasy/requests/dns/dns_tests.rb
Shindo.tests('Fog::DNS[:dnsmadeeasy] | DNS requests', ['dnsmadeeasy', 'dns']) do @domain = '' @domain_count = 0 tests("success") do test("get current domain count") do pending if Fog.mocking? response = Fog::DNS[:dnsmadeeasy].list_domains() if response.status == 200 @domain_count...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/linode/requests/compute/nodebalancers_tests.rb
tests/linode/requests/compute/nodebalancers_tests.rb
Shindo.tests('Fog::Compute[:linode] | linodenodebalancers requests', ['linode']) do @linodenodebalancers_format = Linode::Compute::Formats::BASIC.merge({ 'DATA' => [{ 'MONTHLY' => Float, 'HOURLY' => Float, 'CONNECTIONS' => Integer }] }) tests('success') do tests('#avail_n...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/linode/requests/compute/distribution_tests.rb
tests/linode/requests/compute/distribution_tests.rb
Shindo.tests('Fog::Compute[:linode] | distribution requests', ['linode']) do @distributions_format = Linode::Compute::Formats::BASIC.merge({ 'DATA' => [{ 'CREATE_DT' => String, 'DISTRIBUTIONID' => Integer, 'IS64BIT' => Integer, 'LABEL' => String, ...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/linode/requests/compute/linode_tests.rb
tests/linode/requests/compute/linode_tests.rb
Shindo.tests('Fog::Compute[:linode] | linode requests', ['linode']) do @linode_format = Linode::Compute::Formats::BASIC.merge({ 'DATA' => { 'LinodeID' => Integer } }) @linodes_format = Linode::Compute::Formats::BASIC.merge({ 'DATA' => [{ 'ALERT_BWIN_ENABLED' => Integer, 'ALERT_CPU_THRES...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/linode/requests/compute/stackscripts_tests.rb
tests/linode/requests/compute/stackscripts_tests.rb
Shindo.tests('Fog::Compute[:linode] | stack_script requests', ['linode']) do @stack_scripts_format = Linode::Compute::Formats::BASIC.merge({ 'DATA' => [{ 'STACKSCRIPTID' => Integer, 'SCRIPT' => String, 'DESCRIPTION' => String, 'DISTRIBUTIONIDLIST' => String, ...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/linode/requests/compute/datacenter_tests.rb
tests/linode/requests/compute/datacenter_tests.rb
Shindo.tests('Fog::Compute[:linode] | datacenter requests', ['linode']) do @datacenters_format = Linode::Compute::Formats::BASIC.merge({ 'DATA' => [{ 'DATACENTERID' => Integer, 'LOCATION' => String, 'ABBR' => String }] }) tests('success') do tests('#avail_datacenter...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/linode/requests/compute/helper.rb
tests/linode/requests/compute/helper.rb
class Linode module Compute module Formats BASIC = { 'ERRORARRAY' => [], 'ACTION' => String } end end end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/linode/requests/compute/linodeplans_tests.rb
tests/linode/requests/compute/linodeplans_tests.rb
Shindo.tests('Fog::Compute[:linode] | linodeplans requests', ['linode']) do @linodeplans_format = Linode::Compute::Formats::BASIC.merge({ 'DATA' => [{ 'AVAIL' => { '2' => Integer, '3' => Integer, '4' => Integer, '6' => Integer, '7' => Integer, '8' ...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/linode/requests/compute/kernel_tests.rb
tests/linode/requests/compute/kernel_tests.rb
Shindo.tests('Fog::Compute[:linode] | kernel requests', ['linode']) do @kernels_format = Linode::Compute::Formats::BASIC.merge({ 'DATA' => [{ 'LABEL' => String, 'ISXEN' => Integer, 'ISKVM' => Integer, 'ISPVOPS' => Integer, 'KERNE...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/linode/requests/dns/dns_tests.rb
tests/linode/requests/dns/dns_tests.rb
Shindo.tests('Fog::DNS[:linode] | DNS requests', ['linode', 'dns']) do @domain = '' @new_zones = [] @new_records =[] tests( 'success') do test('get current zone count') do pending if Fog.mocking? @org_zone_count= 0 response = Fog::DNS[:linode].domain_list() if response.status == ...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/ibm/requests/storage/volume_tests.rb
tests/ibm/requests/storage/volume_tests.rb
Shindo.tests('Fog::Storage[:ibm] | volume requests', ['ibm']) do @volume_format = { "id" => String, "instanceId" => Fog::Nullable::String, "name" => String, "format" => String, "state" => Integer, "size" => String, "offeringId" => String, ...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/ibm/requests/compute/address_tests.rb
tests/ibm/requests/compute/address_tests.rb
Shindo.tests('Fog::Compute[:ibm] | address requests', ['ibm']) do @address_format = { "state" => Integer, "offeringId"=> String, "location" => String, "ip" => String, "id" => String, "mode" => Integer, "hostname" => String, "type" => Integer, "instanc...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/ibm/requests/compute/vlan_tests.rb
tests/ibm/requests/compute/vlan_tests.rb
Shindo.tests('Fog::Compute[:ibm] | location requests', ['ibm']) do @vlan_format = { 'id' => String, 'name' => String, 'location' => String, } @vlans_format = { 'vlan' => [ @vlan_format ] } tests('success') do tests("#list_vlans").formats(@vlans_format) do Fog::Compute[...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/ibm/requests/compute/key_tests.rb
tests/ibm/requests/compute/key_tests.rb
Shindo.tests('Fog::Compute[:ibm] | key requests', ['ibm']) do @key_format = { 'default' => Fog::Boolean, 'instanceIds' => Array, 'keyMaterial' => String, 'keyName' => String, 'lastModifiedTime' => Integer } @keys_format = { 'keys' => [ @key_format ] ...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/ibm/requests/compute/image_tests.rb
tests/ibm/requests/compute/image_tests.rb
Shindo.tests('Fog::Compute[:ibm] | image requests', ['ibm']) do @image_format = { 'state' => Integer, 'visibility' => String, 'platform' => String, 'owner' => String, 'architecture' => Fog::Nullable::String, 'createdTime' => Integer, 'location' => String, ...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/ibm/requests/compute/location_tests.rb
tests/ibm/requests/compute/location_tests.rb
Shindo.tests('Fog::Compute[:ibm] | location requests', ['ibm']) do @location_format = { 'state' => Integer, 'location' => String, 'capabilities' => Array, 'name' => String, 'id' => String, 'description' => String } @locations_format = { 'locations...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/ibm/requests/compute/instance_tests.rb
tests/ibm/requests/compute/instance_tests.rb
Shindo.tests('Fog::Compute[:ibm] | instance requests', ['ibm']) do @instance_format = { 'name' => String, 'location' => String, 'keyName' => String, 'primaryIP' => { 'vlan' => Fog::Nullable::String, 'type' => Integer, 'ip' => String, ...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/ibm/models/storage/volume_tests.rb
tests/ibm/models/storage/volume_tests.rb
Shindo.tests('Fog::Storage[:ibm] | volume', ['ibm']) do tests('success') do @volume = nil @volume_id = nil @name = "fog test volume" @format = "RAW" @location_id = "41" @size = "256" @offering_id = "20001208" tests('Fog::Storage::IBM::Volume.new') do...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/ibm/models/compute/servers_tests.rb
tests/ibm/models/compute/servers_tests.rb
Shindo.tests('Fog::Compute[:ibm] | servers', ['ibm']) do tests('success') do @name = "fog-test-instance-" + Time.now.to_i.to_s(32) @image_id = "20010001" @instance_type = "BRZ32.1/2048/60*175" @location_id = "41" @key_name = "fog-test-key-" + Time.now.to_i.to_s(32) ...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/ibm/models/compute/locations_tests.rb
tests/ibm/models/compute/locations_tests.rb
Shindo.tests('Fog::Compute[:ibm] | locations', ['ibm']) do tests('success') do @location_id = '41' tests('Fog::Compute[:ibm].locations') do returns(true) { Fog::Compute[:ibm].locations.length > 0 } end tests('Fog::Compute[:ibm].locations.get("#{@location_id}")') do @location = Fog::Com...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/ibm/models/compute/key_tests.rb
tests/ibm/models/compute/key_tests.rb
Shindo.tests('Fog::Compute[:ibm] | key', ['ibm']) do tests('success') do @key_name = 'fog-test-key-' + Time.now.to_i.to_s(32) @key = nil tests("Fog::Compute::IBM::Key.create(:name => '#{@key_name}')") do @key = Fog::Compute[:ibm].keys.create(:name => @key_name) returns(@key_name) { @ke...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/ibm/models/compute/image_tests.rb
tests/ibm/models/compute/image_tests.rb
Shindo.tests('Fog::Compute[:ibm] | image', ['ibm']) do @image_id = '20010001' @clone_name = 'fog-test-clone-image-' + Time.now.to_i.to_s(32) tests('success') do tests("Fog::Compute[:ibm].images.get('#{@image_id}')") do @image = Fog::Compute[:ibm].images.get(@image_id) returns(@image_id) { @imag...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/ibm/models/compute/keys_tests.rb
tests/ibm/models/compute/keys_tests.rb
Shindo.tests('Fog::Compute[:ibm] | keys', ['ibm']) do tests('success') do @key_name = 'fog-test-key' + Time.now.to_i.to_s(32) @key = nil tests("Fog::Compute[:ibm].keys.create(:name => '#{@key_name}')") do @key = Fog::Compute[:ibm].keys.create(:name => @key_name) returns(@key_name) { @k...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/ibm/models/compute/server_tests.rb
tests/ibm/models/compute/server_tests.rb
Shindo.tests('Fog::Compute[:ibm] | server', ['ibm']) do tests('success') do # TODO: Fix this for non-mock tests @server = nil @instance_id = nil @name = "fog-test-instance-" + Time.now.to_i.to_s(32) @image_id = "20010001" @instance_type = "BRZ32.1/2048/60*175" ...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/dns/helper.rb
tests/dns/helper.rb
def dns_providers { :aws => { :mocked => false }, :dnsimple => { :mocked => false }, :dnsmadeeasy => { :mocked => false }, :dynect => { :mocked => false, :zone_attributes => { :email => 'fog@example.com' } }, :linode ...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/dns/models/records_tests.rb
tests/dns/models/records_tests.rb
for provider, config in dns_providers # FIXME: delay/timing breaks things :( next if [:dnsmadeeasy, :rage4].include?(provider) domain_name = uniq_id + '.com' Shindo.tests("Fog::DNS[:#{provider}] | records", [provider.to_s]) do record_attributes = { :name => 'www.' + domain_name, :type =>...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/dns/models/record_tests.rb
tests/dns/models/record_tests.rb
for provider, config in dns_providers # FIXME: delay/timing breaks things :( next if [:dnsmadeeasy, :rage4].include?(provider) domain_name = uniq_id + '.com' Shindo.tests("Fog::DNS[:#{provider}] | record", [provider.to_s]) do a_record_attributes = { :name => 'a.' + domain_name, :type => ...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/dns/models/zone_tests.rb
tests/dns/models/zone_tests.rb
for provider, config in dns_providers # FIXME: delay/timing breaks things :( next if [:dnsmadeeasy, :rage4].include?(provider) domain_name = uniq_id + '.com' Shindo.tests("Fog::DNS[:#{provider}] | zone", [provider.to_s]) do zone_attributes = { :domain => domain_name }.merge!(config[:zone_attri...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/dns/models/zones_tests.rb
tests/dns/models/zones_tests.rb
for provider, config in dns_providers # FIXME: delay/timing breaks things :( next if [:dnsmadeeasy, :rage4].include?(provider) domain_name = uniq_id + '.com' Shindo.tests("Fog::DNS[:#{provider}] | zones", [provider.to_s]) do zone_attributes = { :domain => domain_name }.merge!(config[:zone_attr...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/opennebula/compute_tests.rb
tests/opennebula/compute_tests.rb
Shindo.tests('Fog::Compute[:opennebula]', ['opennebula']) do begin compute = Fog::Compute[:opennebula] rescue Fog::Errors::LoadError pending end tests("Compute collections") do %w{networks groups}.each do |collection| test("it should respond to #{collection}") { compute.respond_to? collection...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/opennebula/requests/compute/vm_suspend_resume_tests.rb
tests/opennebula/requests/compute/vm_suspend_resume_tests.rb
Shindo.tests("Fog::Compute[:opennebula] | vm_suspend and vm_resume request", 'opennebula') do begin compute = Fog::Compute[:opennebula] rescue Fog::Errors::LoadError pending end name_base = Time.now.to_i f = compute.flavors.get_by_name("fogtest") tests("Get 'fogtest' flavor/template") do test("...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/opennebula/requests/compute/vm_disk_snapshot_test.rb
tests/opennebula/requests/compute/vm_disk_snapshot_test.rb
Shindo.tests("Fog::Compute[:opennebula] | vm_create and destroy request", 'opennebula') do compute = Fog::Compute[:opennebula] name_base = Time.now.to_i f = compute.flavors.get_by_name("fogtest") tests("Get 'fogtest' flavor/template") do test("Got template with name 'fogtest'") {f.kind_of? Array} rais...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/opennebula/requests/compute/vm_allocate_tests.rb
tests/opennebula/requests/compute/vm_allocate_tests.rb
Shindo.tests("Fog::Compute[:opennebula] | vm_create and vm_destroy request", 'opennebula') do begin compute = Fog::Compute[:opennebula] rescue Fog::Errors::LoadError pending end name_base = Time.now.to_i f = compute.flavors.get_by_name("fogtest") tests("Get 'fogtest' flavor/template") do test(...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/opennebula/models/compute/flavors_tests.rb
tests/opennebula/models/compute/flavors_tests.rb
Shindo.tests('Fog::Compute[:opennebula] | flavors collection', ['opennebula']) do begin flavors = Fog::Compute[:opennebula].flavors rescue Fog::Errors::LoadError pending end tests('The flavors collection should') do test('should be a kind of Fog::Compute::OpenNebula::Flavors') { flavors.kind_of? Fo...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/opennebula/models/compute/groups_tests.rb
tests/opennebula/models/compute/groups_tests.rb
Shindo.tests('Fog::Compute[:opennebula] | groups collection', ['opennebula']) do begin groups = Fog::Compute[:opennebula].groups rescue Fog::Errors::LoadError pending end tests('The groups collection') do test('should be a kind of Fog::Compute::OpenNebula::Groups') { groups.kind_of? Fog::Compute::O...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/opennebula/models/compute/flavor_tests.rb
tests/opennebula/models/compute/flavor_tests.rb
Shindo.tests('Fog::Compute[:opennebula] | flavor model', ['opennebula']) do begin flavors = Fog::Compute[:opennebula].flavors rescue Fog::Errors::LoadError pending end flavor = flavors.get_by_name('fogtest').last tests('The flavor model should') do tests('have the action') do test('reload'...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/opennebula/models/compute/network_tests.rb
tests/opennebula/models/compute/network_tests.rb
Shindo.tests('Fog::Compute[:opennebula] | network model', ['opennebula']) do begin networks = Fog::Compute[:opennebula].networks rescue Fog::Errors::LoadError pending end network = networks.get_by_name('fogtest') tests('The network model should') do tests('have the action') do test('reload...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/opennebula/models/compute/networks_tests.rb
tests/opennebula/models/compute/networks_tests.rb
Shindo.tests('Fog::Compute[:opennebula] | networks collection', ['opennebula']) do begin networks = Fog::Compute[:opennebula].networks rescue Fog::Errors::LoadError pending end tests('The networks collection') do test('should be a kind of Fog::Compute::OpenNebula::Networks') { networks.kind_of? Fog...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/opennebula/models/compute/group_tests.rb
tests/opennebula/models/compute/group_tests.rb
Shindo.tests('Fog::Compute[:opennebula] | group model', ['opennebula']) do begin groups = Fog::Compute[:opennebula].groups rescue Fog::Errors::LoadError pending end group = groups.last tests('The group model should') do tests('have the action') do test('reload') { group.respond_to? 'reload'...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/rage4/requests/dns/dns_tests.rb
tests/rage4/requests/dns/dns_tests.rb
Shindo.tests('Fog::DNS[:rage4] | DNS requests', ['rage4', 'dns']) do @domain = '' @domain_id = nil @record_id = nil @domain_count = 0 @created_domain_list = [] tests("success") do test("get current domain count") do pending if Fog.mocking? response = Fog::DNS[:rage4].list_domains() ...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/core/timeout_tests.rb
tests/core/timeout_tests.rb
Shindo.tests('Fog#timeout', 'core') do tests('timeout').returns(FOG_TESTING_TIMEOUT) do Fog.timeout end tests('timeout = 300').returns(300) do Fog.timeout = 300 Fog.timeout end end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/core/mocking_tests.rb
tests/core/mocking_tests.rb
Shindo.tests('Fog mocking', 'core') do before do @fog_was_mocked = Fog.mock? Fog.unmock! if @fog_was_mocked end after do Fog.mock! if @fog_was_mocked end tests('Fog.mock!') do tests('Fog.mock!').returns(true) do Fog.mock! end tests('Fog.mock? without Fog.mock!').returns(false)...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/core/credential_tests.rb
tests/core/credential_tests.rb
Shindo.tests do before do @old_home = ENV['HOME'] @old_rc = ENV['FOG_RC'] @old_credential = ENV['FOG_CREDENTIAL'] @old_credentials = Fog.credentials Fog.instance_variable_set('@credential_path', nil) # kill memoization Fog.instance_variable_set('@credential', nil) # kill memoization end ...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/core/attribute_tests.rb
tests/core/attribute_tests.rb
class FogAttributeTestModel < Fog::Model attribute :key, :aliases => 'keys', :squash => "id" attribute :time, :type => :time attribute :bool, :type => :boolean end Shindo.tests('Fog::Attributes', 'core') do @model = FogAttributeTestModel.new tests('squash') do tests('"keys" => {:id => "value"}').retur...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/core/service_tests.rb
tests/core/service_tests.rb
Shindo.tests('Fog::Service', ['core']) do class TestService < Fog::Service recognizes :generic_user, :generic_api_key class Real attr_reader :options def initialize(opts={}) @options = opts end end class Mock < Real end end tests('Properly passes headers') do ...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/core/uuid_tests.rb
tests/core/uuid_tests.rb
Shindo.tests('Fog::UUID', 'core') do tests('supported?').succeeds do Fog::UUID.supported? == SecureRandom.respond_to?(:uuid) end tests('success').succeeds do Fog::UUID.uuid =~ /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/ end end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/core/wait_for_tests.rb
tests/core/wait_for_tests.rb
Shindo.tests('Fog#wait_for', 'core') do tests("success") do tests('Fog#wait_for').formats(:duration => Integer) do Fog.wait_for(1) { true } end end tests("failure") do tests('Fog#wait_for').raises(Fog::Errors::TimeoutError) do Fog.wait_for(2) { false } end end end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/core/parser_tests.rb
tests/core/parser_tests.rb
Shindo.tests('Fog::Parsers', 'core') do class TestParser < Fog::Parsers::Base def reset super reset_my_array end def reset_my_array @my_array = [] end def end_element(name) case name when 'key1', 'key2', 'key3', 'longText' @response[name] = value when...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/core/current_machine_tests.rb
tests/core/current_machine_tests.rb
Shindo.tests('Fog CurrentMachine', 'core') do pending unless Fog.mock? old_excon_defaults_mock = Excon.defaults[:mock] Excon.defaults[:mock] = true tests('ip_address') do tests('should be thread safe') do Excon.stub({:method => :get, :path => '/'}, {:body => ''}) (1..10).map { Threa...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/cloudsigma/requests/volumes_tests.rb
tests/cloudsigma/requests/volumes_tests.rb
Shindo.tests('Fog::Compute[:cloudsigma] | volume requests', ['cloudsigma']) do @volume_format = { 'uuid' => String, 'affinities' => Array, 'allow_multimount' => Fog::Boolean, 'jobs' => Array, 'licenses' => Array, 'media' => String, 'meta' => Fog::Nullable::Hash, 'mount...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/cloudsigma/requests/server_tests.rb
tests/cloudsigma/requests/server_tests.rb
Shindo.tests('Fog::Compute[:cloudsigma] | server requests', ['cloudsigma']) do @server_format = { 'uuid' => String, 'cpu' => Integer, 'cpus_instead_of_cores' => Fog::Boolean, 'drives' => Array, 'enable_numa' => Fog::Boolean, 'hv_relaxed' => Fog::Boolean, 'hv_tsc' => Fog::Bo...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/cloudsigma/requests/snapshots_tests.rb
tests/cloudsigma/requests/snapshots_tests.rb
Shindo.tests('Fog::Compute[:cloudsigma] | snapshot requests', ['cloudsigma']) do pending if Fog.mocking? @snapshot_format = { 'uuid' => String, 'allocated_size' => Fog::Nullable::Integer, 'drive' => Fog::Nullable::Hash, 'meta' => Fog::Nullable::Hash, 'name' => String, 'owner' =>...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/cloudsigma/models/servers_tests.rb
tests/cloudsigma/models/servers_tests.rb
Shindo.tests('Fog::Compute[:cloudsigma] | servers collection', ['cloudsigma']) do # mark as pending, the collection_tests are not quite what in line with how CloudSigma servers operate pending servers = Fog::Compute[:cloudsigma].servers server_create_args = {:name => 'fogtest', :cpu => 2000, :mem => 512*1024**...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/cloudsigma/models/volume_tests.rb
tests/cloudsigma/models/volume_tests.rb
Shindo.tests('Fog::Compute[:cloudsigma] | volume model', ['cloudsigma']) do volumes = Fog::Compute[:cloudsigma].volumes volume_create_args = {:name => 'fogmodeltest', :size => 1024**3, :media => :cdrom} model_tests(volumes, volume_create_args, true) do @instance.wait_for(timeout=60) { available? } tests...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/cloudsigma/models/volumes_tests.rb
tests/cloudsigma/models/volumes_tests.rb
Shindo.tests('Fog::Compute[:cloudsigma] | volumes collection', ['cloudsigma']) do volumes = Fog::Compute[:cloudsigma].volumes volume_create_args = {:name => 'fogtest', :size => 1024**3, :media => :cdrom} collection_tests(volumes, volume_create_args, true) do @instance.wait_for(timeout=60) { status == 'unmoun...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/cloudsigma/models/snapshot_tests.rb
tests/cloudsigma/models/snapshot_tests.rb
Shindo.tests('Fog::Compute[:cloudsigma] | snapshot model', ['cloudsigma']) do pending if Fog.mocking? volume = Fog::Compute[:cloudsigma].volumes.create(:name => 'fogmodeltest', :size => 1024**3, :media => :disk) volume.wait_for { available? } unless Fog.mocking? snapshots = Fog::Compute[:cloudsigma].snapshots...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/cloudsigma/models/server_tests.rb
tests/cloudsigma/models/server_tests.rb
Shindo.tests('Fog::Compute[:cloudsigma] | server model', ['cloudsigma']) do service = Fog::Compute[:cloudsigma] servers = Fog::Compute[:cloudsigma].servers server_create_args = {:name => 'fogtest', :cpu => 2000, :mem => 512*1024**2, :vnc_password => 'myrandompass'} model_tests(servers, server_create_args, tru...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/cloudsigma/models/snapshots_tests.rb
tests/cloudsigma/models/snapshots_tests.rb
Shindo.tests('Fog::Compute[:cloudsigma] | snapshots collection', ['cloudsigma']) do pending if Fog.mocking? volume = Fog::Compute[:cloudsigma].volumes.create(:name => 'fogtest', :size => 1024**3, :media => :disk) volume.wait_for { available? } unless Fog.mocking? snapshots = Fog::Compute[:cloudsigma].snapshot...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/tests/go_grid/requests/compute/image_tests.rb
tests/go_grid/requests/compute/image_tests.rb
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/spec_helper.rb
spec/spec_helper.rb
if ENV["COVERAGE"] require "simplecov" SimpleCov.start do add_filter "/spec/" end end require "minitest/autorun" require "minitest/spec" require "minitest/stub_const" $LOAD_PATH.unshift "lib" require "fog"
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/vcloud_director/spec_helper.rb
spec/vcloud_director/spec_helper.rb
if ENV["FOG_MOCK"] == "true" Fog.mock! end if Fog.mock? Fog.credentials = { :vcloud_director_host => 'vcloud-director-host', :vcloud_director_password => 'vcloud_director_password', :vcloud_director_username => 'vcd_user@vcd_org_name', }.merge(Fog.credentials) end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/vcloud_director/requests/compute/instantiate_vapp_template_spec.rb
spec/vcloud_director/requests/compute/instantiate_vapp_template_spec.rb
require './spec/vcloud_director/spec_helper.rb' require 'minitest/autorun' require './lib/fog/vcloud_director/requests/compute/instantiate_vapp_template.rb' describe Fog::Compute::VcloudDirector::Real do before do Fog.unmock! end let(:xml) do service = Fog::Compute::VcloudDirector.new( { :v...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/vcloud_director/generators/compute/instantiate_vapp_template_params_spec.rb
spec/vcloud_director/generators/compute/instantiate_vapp_template_params_spec.rb
require './spec/vcloud_director/spec_helper.rb' require 'minitest/autorun' require 'nokogiri' require './lib/fog/vcloud_director/generators/compute/instantiate_vapp_template_params.rb' describe Fog::Generators::Compute::VcloudDirector::InstantiateVappTemplateParams do let(:xml) do params = { :name => '...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/helpers/bin.rb
spec/helpers/bin.rb
module Fog module BinSpec extend Minitest::Spec::DSL it "responds to available?" do assert_respond_to subject, :available? end it "responds to class_for" do assert_respond_to subject, :class_for end it "#class_for raises ArgumentError for unknown services" do assert_raises...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/orchestration_spec.rb
spec/fog/orchestration_spec.rb
require "spec_helper" describe Fog::Orchestration do Fog::Orchestration.providers.each do |provider| describe "when #{provider} is passed with no available credentials" do it "returns ArgumentError" do # Stub credentials so you still see errors where the tester really has credentials Fog.st...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/billing_spec.rb
spec/fog/billing_spec.rb
require "spec_helper" describe Fog::Billing do Fog::Billing.providers.each do |provider| describe "when #{provider} is passed with no available credentials" do it "returns ArgumentError" do # Stub credentials so you still see errors where the tester really has credentials Fog.stub :credenti...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/support_spec.rb
spec/fog/support_spec.rb
require "spec_helper" describe Fog::Support do Fog::Support.providers.each do |provider| describe "when #{provider} is passed with no available credentials" do it "returns ArgumentError" do # Stub credentials so you still see errors where the tester really has credentials Fog.stub :credenti...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/network_spec.rb
spec/fog/network_spec.rb
require "spec_helper" describe Fog::Network do Fog::Network.providers.each do |provider| describe "when #{provider} is passed with no available credentials" do it "returns ArgumentError" do # Stub credentials so you still see errors where the tester really has credentials Fog.stub :credenti...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/vpn_spec.rb
spec/fog/vpn_spec.rb
require "spec_helper" describe Fog::VPN do Fog::VPN.providers.each do |provider| describe "when #{provider} is passed with no available credentials" do it "returns ArgumentError" do # Stub credentials so you still see errors where the tester really has credentials Fog.stub :credentials, {} ...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/metering_spec.rb
spec/fog/metering_spec.rb
require "spec_helper" describe Fog::Metering do Fog::Metering.providers.each do |provider| describe "when #{provider} is passed with no available credentials" do it "returns ArgumentError" do # Stub credentials so you still see errors where the tester really has credentials Fog.stub :creden...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/cdn_spec.rb
spec/fog/cdn_spec.rb
require "spec_helper" describe Fog::CDN do Fog::CDN.providers.each do |provider| describe "when #{provider} is passed with no available credentials" do it "returns ArgumentError" do # Stub credentials so you still see errors where the tester really has credentials Fog.stub :credentials, {} ...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/identity_spec.rb
spec/fog/identity_spec.rb
require "spec_helper" describe Fog::Identity do Fog::Identity.providers.each do |provider| describe "when #{provider} is passed with no available credentials" do it "returns ArgumentError" do # Stub credentials so you still see errors where the tester really has credentials Fog.stub :creden...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/volume_spec.rb
spec/fog/volume_spec.rb
require "spec_helper" describe Fog::Volume do Fog::Volume.providers.each do |provider| describe "when #{provider} is passed with no available credentials" do it "returns ArgumentError" do # Stub credentials so you still see errors where the tester really has credentials Fog.stub :credential...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/bin_spec.rb
spec/fog/bin_spec.rb
require "spec_helper" require "fog/bin" describe Fog do describe "#providers" do it "includes existing providers" do assert_equal "AWS", Fog.providers[:aws] assert_equal "BareMetalCloud", Fog.providers[:baremetalcloud] assert_equal "Brightbox", Fog.providers[:brightbox] assert_equal "Clod...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/account_spec.rb
spec/fog/account_spec.rb
require "spec_helper" describe Fog::Account do Fog::Account.providers.each do |provider| describe "when #{provider} is passed with no available credentials" do it "returns ArgumentError" do # Stub credentials so you still see errors where the tester really has credentials Fog.stub :credenti...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/image_spec.rb
spec/fog/image_spec.rb
require "spec_helper" describe Fog::Image do Fog::Image.providers.each do |provider| describe "when #{provider} is passed with no available credentials" do it "returns ArgumentError" do # Stub credentials so you still see errors where the tester really has credentials Fog.stub :credentials,...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/storage_spec.rb
spec/fog/storage_spec.rb
require "spec_helper" describe Fog::Storage do Fog::Storage.providers.each do |provider| describe "when #{provider} is passed with no available credentials" do it "returns ArgumentError" do # Stub credentials so you still see errors where the tester really has credentials Fog.stub :credenti...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/monitoring_spec.rb
spec/fog/monitoring_spec.rb
require "spec_helper" describe Fog::Monitoring do Fog::Monitoring.providers.each do |provider| describe "when #{provider} is passed with no available credentials" do it "returns ArgumentError" do # Stub credentials so you still see errors where the tester really has credentials Fog.stub :cr...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/xml/connection_spec.rb
spec/fog/xml/connection_spec.rb
require "spec_helper" # @note This is going to be part of fog-xml eventually describe Fog::XML::Connection do before do @connection = Fog::XML::Connection.new("http://localhost") end after do Excon.stubs.clear end it "responds to #request" do assert_respond_to @connection, :request end des...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/bin/ibm_spec.rb
spec/fog/bin/ibm_spec.rb
require "minitest/autorun" require "fog" require "fog/bin" require "helpers/bin" describe IBM do include Fog::BinSpec let(:subject) { IBM } end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/bin/sakuracloud_spec.rb
spec/fog/bin/sakuracloud_spec.rb
require "minitest/autorun" require "fog" require "fog/bin" require "helpers/bin" describe SakuraCloud do include Fog::BinSpec let(:subject) { SakuraCloud } end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/bin/rackspace_spec.rb
spec/fog/bin/rackspace_spec.rb
require "minitest/autorun" require "fog" require "fog/bin" require "helpers/bin" describe Rackspace do include Fog::BinSpec let(:subject) { Rackspace } end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/bin/brightbox_spec.rb
spec/fog/bin/brightbox_spec.rb
require "spec_helper" require "fog/bin" require "helpers/bin" describe Brightbox do include Fog::BinSpec let(:subject) { Brightbox } describe "#services" do it "includes all services" do assert_includes Brightbox.services, :compute assert_includes Brightbox.services, :storage end end d...
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/bin/vmfusion_spec.rb
spec/fog/bin/vmfusion_spec.rb
require "minitest/autorun" require "fog" require "fog/bin" require "helpers/bin" describe Vmfusion do include Fog::BinSpec let(:subject) { Vmfusion } end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/bin/dnsmadeeasy_spec.rb
spec/fog/bin/dnsmadeeasy_spec.rb
require "spec_helper" require "fog/bin" require "helpers/bin" describe DNSMadeEasy do include Fog::BinSpec let(:subject) { DNSMadeEasy } end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/bin/rage4_spec.rb
spec/fog/bin/rage4_spec.rb
require "minitest/autorun" require "fog" require "fog/bin" require "helpers/bin" describe Rage4 do include Fog::BinSpec let(:subject) { Rage4 } end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/bin/opennebula_spec.rb
spec/fog/bin/opennebula_spec.rb
require "minitest/autorun" require "fog" require "fog/bin" require "helpers/bin" describe OpenNebula do include Fog::BinSpec let(:subject) { OpenNebula } end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/bin/openvz_spec.rb
spec/fog/bin/openvz_spec.rb
require "minitest/autorun" require "fog" require "fog/bin" require "helpers/bin" describe Openvz do include Fog::BinSpec let(:subject) { Openvz } end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/bin/stormondemand_spec.rb
spec/fog/bin/stormondemand_spec.rb
require "minitest/autorun" require "fog" require "fog/bin" require "helpers/bin" describe StormOnDemand do include Fog::BinSpec let(:subject) { StormOnDemand } end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/bin/softlayer_spec.rb
spec/fog/bin/softlayer_spec.rb
require "minitest/autorun" require "fog" require "fog/bin" require "helpers/bin" describe Softlayer do include Fog::BinSpec let(:subject) { Softlayer } end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/bin/vclouddirector_spec.rb
spec/fog/bin/vclouddirector_spec.rb
require "minitest/autorun" require "fog" require "fog/bin" require "helpers/bin" describe VcloudDirector do include Fog::BinSpec let(:subject) { VcloudDirector } end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/bin/openstack_spec.rb
spec/fog/bin/openstack_spec.rb
require "minitest/autorun" require "fog" require "fog/bin" require "helpers/bin" describe OpenStack do include Fog::BinSpec let(:subject) { OpenStack } end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false
fog/fog
https://github.com/fog/fog/blob/f3e5ceacc44cd1b63daf9db9a4a5985f0802de50/spec/fog/bin/clodo_spec.rb
spec/fog/bin/clodo_spec.rb
require "spec_helper" require "fog/bin" require "helpers/bin" describe Clodo do include Fog::BinSpec let(:subject) { Clodo } end
ruby
MIT
f3e5ceacc44cd1b63daf9db9a4a5985f0802de50
2026-01-04T15:46:43.827334Z
false