Sha256: 03449a0a0f2e75f8ba27db94ff9fb84a994e95ac311f49fa5e80623bc774c44c

Contents?: true

Size: 870 Bytes

Versions: 96

Compression:

Stored size: 870 Bytes

Contents

Shindo.tests('Fog::Compute[:openvz] | servers collection', ['openvz']) do

  openvz_service =  Fog::Compute[:openvz]

  tests('The servers collection') do
    servers = openvz_service.servers.all

    server = openvz_fog_test_server

    test('should NOT be empty') do
      servers.reload
      !servers.empty?
    end

    test('should be a kind of Fog::Compute::Openvz::Servers') do
      servers.kind_of? Fog::Compute::Openvz::Servers
    end

    tests('should have Fog::Compute::Openvz::Servers inside') do
      servers.each do |s|
        test { s.kind_of? Fog::Compute::Openvz::Server }
      end
    end

    tests('should be able to reload itself').succeeds { servers.reload }

    tests('should be able to get a model') do
      test('by instance ctid') do
        servers.get(server.ctid).kind_of? Fog::Compute::Openvz::Server
      end
    end

  end

end

Version data entries

96 entries across 94 versions & 8 rubygems

Version Path
fog-1.33.0 tests/openvz/models/compute/servers_tests.rb
fog-1.32.0 tests/openvz/models/compute/servers_tests.rb
fog-1.31.0 tests/openvz/models/compute/servers_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/openvz/models/compute/servers_tests.rb
fog-1.30.0 tests/openvz/models/compute/servers_tests.rb
fog-1.29.0 tests/openvz/models/compute/servers_tests.rb
fog-1.28.0 tests/openvz/models/compute/servers_tests.rb
fog-1.27.0 tests/openvz/models/compute/servers_tests.rb
fog-1.26.0 tests/openvz/models/compute/servers_tests.rb
fog-1.25.0 tests/openvz/models/compute/servers_tests.rb
nsidc-fog-1.24.1 tests/openvz/models/compute/servers_tests.rb
fog-1.24.0 tests/openvz/models/compute/servers_tests.rb
ns-fog-1.22.11 tests/openvz/models/compute/servers_tests.rb
ns-fog-1.22.10 tests/openvz/models/compute/servers_tests.rb
ns-fog-1.22.9 tests/openvz/models/compute/servers_tests.rb
ns-fog-1.22.8 tests/openvz/models/compute/servers_tests.rb
ns-fog-1.22.7 tests/openvz/models/compute/servers_tests.rb
ns-fog-1.22.6 tests/openvz/models/compute/servers_tests.rb
fog-1.23.0 tests/openvz/models/compute/servers_tests.rb
ns-fog-1.22.4 tests/openvz/models/compute/servers_tests.rb