Sha256: 6d46665ca88f0441e04f77c4c70f4449391b67e86f67affdfedf48d0127ecf52

Contents?: true

Size: 1.76 KB

Versions: 22

Compression:

Stored size: 1.76 KB

Contents

#--
# Copyright (c) 2010-2012 RightScale Inc
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++

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

describe RsInternal, "exercises the rs_internal api" do
  before(:all) do
    @st = ServerTemplate.find(27418)
  end

# this will never be checked in, these tests are too hardwired
# (doesn't mean it's not useful)
  it "should get all the mcis for this hardcoded template and set this hardcoded server" do
    mcis = RsInternal.get_server_template_multi_cloud_images(@st.href)
    mcis.empty?.should_not == true
    mcis.first['href'].include?("https://").should == true

    server = "/servers/752944"
    success = RsInternal.set_server_multi_cloud_image(server, mcis.first['href'])

    debugger
    puts "blah"

  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rest_connection-1.0.16 spec/rs_internal_spec.rb
rest_connection-1.0.15 spec/rs_internal_spec.rb
rest_connection-1.0.14 spec/rs_internal_spec.rb
rest_connection-1.0.13 spec/rs_internal_spec.rb
rest_connection-1.0.12 spec/rs_internal_spec.rb
rest_connection-1.0.11 spec/rs_internal_spec.rb
rest_connection-1.0.10 spec/rs_internal_spec.rb
rest_connection-1.0.9 spec/rs_internal_spec.rb
rest_connection-1.0.8 spec/rs_internal_spec.rb
rest_connection-1.0.7 spec/rs_internal_spec.rb
rest_connection-1.0.6 spec/rs_internal_spec.rb
rest_connection-1.0.5 spec/rs_internal_spec.rb
rest_connection-1.0.4 spec/rs_internal_spec.rb
rest_connection-1.0.3 spec/rs_internal_spec.rb
rest_connection-1.0.2 spec/rs_internal_spec.rb
rest_connection-1.0.1 spec/rs_internal_spec.rb
rest_connection-1.0.0 spec/rs_internal_spec.rb
rest_connection-0.1.12 spec/rs_internal_spec.rb
rest_connection-0.1.11 spec/rs_internal_spec.rb
rest_connection-0.1.10 spec/rs_internal_spec.rb