Sha256: 4147774403de218bc81f8e25433bbb4c5d2f5f9580eff66c10d0811566a7c19c

Contents?: true

Size: 1.19 KB

Versions: 28

Compression:

Stored size: 1.19 KB

Contents

require 'rubygems'
require 'rest_connection'
require 'spec'
require 'ruby-debug'

describe Server, "server api object exercise" do
  before(:all) do
    @server_v4_right_script = Server.find(752616) # a v4 server
    @server_v5_recipe = Server.find(697640) # a v5 server
    @server_v5_right_script = Server.find() # a v5 server
  end

  it "should run a right_script on a v4 server" do
    this_template = ServerTemplate.find(@server_v4_right_script.server_template_href)
    run_first = this_template.executables.first
    location = @server_v4_right_script.run_executable(run_first)
    audit = AuditEntry.new(:href => location)
    audit.wait_for_completed
  end

  it "should run a recipe on a v5 server" do
    this_template = ServerTemplate.find(@server_v5_recipe.server_template_href)
    run_first = this_template.executables.first
    audit = @server_v5_recipe.run_executable(run_first)
    audit.wait_for_completed
  end

  it "should run a right_script on a v5 server" do
    this_template = ServerTemplate.find(@server_v5_right_script.server_template_href)
    run_first = this_template.executables.first
    audit = @server_v5_right_script.run_executable(run_first)
    audit.wait_for_completed
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
rest_connection-0.1.7 spec/server_spec.rb
rest_connection-0.1.6 spec/server_spec.rb
rest_connection-0.1.5 spec/server_spec.rb
rest_connection-0.1.4 spec/server_spec.rb
rest_connection-0.1.3 spec/server_spec.rb
rest_connection-0.1.2 spec/server_spec.rb
rest_connection-0.1.1 spec/server_spec.rb
rest_connection-0.1.0 spec/server_spec.rb
rest_connection-0.0.23 spec/server_spec.rb
rest_connection-0.0.22 spec/server_spec.rb
rest_connection-0.0.21 spec/server_spec.rb
rest_connection-0.0.20 spec/server_spec.rb
rest_connection-0.0.19 spec/server_spec.rb
rest_connection-0.0.18 spec/server_spec.rb
rest_connection-0.0.17 spec/server_spec.rb
rest_connection-0.0.16 spec/server_spec.rb
rest_connection-0.0.15 spec/server_spec.rb
rest_connection-0.0.14 spec/server_spec.rb
rest_connection-0.0.13 spec/server_spec.rb
rest_connection-0.0.12 spec/server_spec.rb