Sha256: 8de34c7726368027fc322ce6e99ce9c3101009d2857d14b7b029d69e231aa288

Contents?: true

Size: 1.23 KB

Versions: 67

Compression:

Stored size: 1.23 KB

Contents

Shindo.tests("Fog::Compute::HPV2 | server model", ['hp', 'v2', 'compute']) do

  service = Fog::Compute.new(:provider => 'HP', :version => :v2)

  @base_image_id = ENV['BASE_IMAGE_ID'] || '7f60b54c-cd15-433f-8bed-00acbcd25a17'

  model_tests(service.servers, {:name => 'fogservertest', :flavor_id => 100, :image_id => @base_image_id}, true) do

    @server = service.servers.create(:name => 'fogservertest', :flavor_id => 100, :image_id => @base_image_id)

    tests('#console_output(10)').succeeds do
      @server.console_output(10)
    end

    tests('#vnc_console_url').succeeds do
      @server.vnc_console_url
    end

    tests("#create_image('fogimgfromserver')").succeeds do
      @server.create_image('fogimgfromserver')
    end

    tests("#reboot('SOFT')").succeeds do
      pending unless Fog.mocking?
      @server.reboot('SOFT')
    end

    tests("#rebuild(#{@base_image_id}, 'fogrebuildserver')").succeeds do
      pending
      @server.rebuild(@base_image_id, 'fogrebuildserver')
    end

    tests('#add_security_group("default")').succeeds do
      @server.add_security_group('default')
    end

    tests('#remove_security_group("default")').succeeds do
      @server.remove_security_group('default')
    end

    @server.destroy

  end

end

Version data entries

67 entries across 67 versions & 5 rubygems

Version Path
fog-1.38.0 tests/hp/models/compute_v2/server_tests.rb
fog-1.37.0 tests/hp/models/compute_v2/server_tests.rb
fog-1.36.0 tests/hp/models/compute_v2/server_tests.rb
fog-1.35.0 tests/hp/models/compute_v2/server_tests.rb
fog-2.0.0.pre.0 tests/hp/models/compute_v2/server_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/hp/models/compute_v2/server_tests.rb
fog-1.34.0 tests/hp/models/compute_v2/server_tests.rb
fog-1.33.0 tests/hp/models/compute_v2/server_tests.rb
fog-1.32.0 tests/hp/models/compute_v2/server_tests.rb
fog-1.31.0 tests/hp/models/compute_v2/server_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/hp/models/compute_v2/server_tests.rb
fog-1.30.0 tests/hp/models/compute_v2/server_tests.rb
fog-1.29.0 tests/hp/models/compute_v2/server_tests.rb
fog-1.28.0 tests/hp/models/compute_v2/server_tests.rb
fog-1.27.0 tests/hp/models/compute_v2/server_tests.rb
fog-1.26.0 tests/hp/models/compute_v2/server_tests.rb
fog-1.25.0 tests/hp/models/compute_v2/server_tests.rb
nsidc-fog-1.24.1 tests/hp/models/compute_v2/server_tests.rb
fog-1.24.0 tests/hp/models/compute_v2/server_tests.rb
ns-fog-1.22.11 tests/hp/models/compute_v2/server_tests.rb