Sha256: b1fb66c40fb65718243ea63fa53dbde638ca8f442b1bb94e6ca24a98df6c01da

Contents?: true

Size: 1.02 KB

Versions: 44

Compression:

Stored size: 1.02 KB

Contents

Shindo.tests('Fog::Compute[:xenserver] | console model', ['xenserver']) do
  consoles = Fog::Compute[:xenserver].consoles
  console = consoles.first

  tests('The console model should') do
    tests('have attributes') do
      model_attribute_hash = console.attributes
      attributes = [
        :reference,
        :location,
        :protocol,
        :uuid,
        :__vm
      ]
      tests("The console model should respond to") do
        attributes.each do |attribute|
          test("#{attribute}") { console.respond_to? attribute }
        end
      end
      tests("The attributes hash should have key") do
        attributes.each do |attribute|
          test("#{attribute}") { model_attribute_hash.has_key? attribute }
        end
      end
    end

    test('be a kind of Fog::Compute::XenServer::Console') { console.kind_of? Fog::Compute::XenServer::Console }
  end
  tests('A real console should') do
    tests('return valid vm') do
      test('object') { console.vm.kind_of? Fog::Compute::XenServer::Server }
    end
  end
end

Version data entries

44 entries across 44 versions & 3 rubygems

Version Path
fog-1.22.0 tests/xenserver/models/compute/console_test.rb
fog-1.21.0 tests/xenserver/models/compute/console_test.rb
fog-maestrodev-1.20.0.20140305101839 tests/xenserver/models/compute/console_test.rb
fog-maestrodev-1.20.0.20140305101305 tests/xenserver/models/compute/console_test.rb
fog-maestrodev-1.19.0.20140212012611 tests/xenserver/models/compute/console_test.rb
fog-1.20.0 tests/xenserver/models/compute/console_test.rb
fog-maestrodev-1.19.0.20140110004459 tests/xenserver/models/compute/console_test.rb
fog-maestrodev-1.19.0.20140110003812 tests/xenserver/models/compute/console_test.rb
fog-maestrodev-1.19.0.20140109202555 tests/xenserver/models/compute/console_test.rb
fog-maestrodev-1.19.0.20140107192102 tests/xenserver/models/compute/console_test.rb
fog-maestrodev-1.19.0.20140107142106 tests/xenserver/models/compute/console_test.rb
fog-maestrodev-1.19.0.20131219203941 tests/xenserver/models/compute/console_test.rb
fog-maestrodev-1.18.0.20131219193542 tests/xenserver/models/compute/console_test.rb
fog-1.19.0 tests/xenserver/models/compute/console_test.rb
fog-maestrodev-1.18.0.20131219033443 tests/xenserver/models/compute/console_test.rb
fog-maestrodev-1.18.0.20131219032002 tests/xenserver/models/compute/console_test.rb
fog-maestrodev-1.18.0.20131219030716 tests/xenserver/models/compute/console_test.rb
fog-maestrodev-1.18.0.20131219022322 tests/xenserver/models/compute/console_test.rb
fog-maestrodev-1.18.0.20131218202447 tests/xenserver/models/compute/console_test.rb
fog-maestrodev-1.18.0.20131209091424 tests/xenserver/models/compute/console_test.rb