Sha256: 6c4d62351a4e483d1c953e7438b63a16824eec2aa6ab916016f4a880d8c19a57

Contents?: true

Size: 1.49 KB

Versions: 11

Compression:

Stored size: 1.49 KB

Contents

#-------------------------------------------------------------------------
# Copyright 2013 Microsoft Open Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#--------------------------------------------------------------------------
require 'integration/test_helper'

describe Azure::CloudServiceManagementService do

  subject { Azure::CloudServiceManagementService.new }
  let(:options) do
    {
      location: 'West US',
      description: 'Test'
    }
  end

  before do
    Loggerx.expects(:puts).returns(nil).at_least(0)
  end

  describe '#create_cloud_service' do
    before do
      @cloud_name = random_string('test-service-cloud', 10)
      subject.create_cloud_service(@cloud_name, options)
    end

    it 'Creates a new cloud service in Windows Azure.' do
      cloud_service = subject.get_cloud_service_properties(@cloud_name)
      assert cloud_service.name, @cloud_name
      assert cloud_service.location, options[:location]
      assert cloud_service.virtual_machines, Hash.new
    end
  end
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
stuartpreston-azure-sdk-for-ruby-0.7.1 test/integration/cloud_service/Cloud_Create_test.rb
stuartpreston-azure-sdk-for-ruby-0.7.0 test/integration/cloud_service/Cloud_Create_test.rb
stuartpreston-azure-sdk-for-ruby-0.6.9 test/integration/cloud_service/Cloud_Create_test.rb
stuartpreston-azure-sdk-for-ruby-0.6.7 test/integration/cloud_service/Cloud_Create_test.rb
stuartpreston-azure-sdk-for-ruby-0.6.6 test/integration/cloud_service/Cloud_Create_test.rb
stuartpreston-azure-sdk-for-ruby-0.6.5 test/integration/cloud_service/Cloud_Create_test.rb
azurex-0.6.7 test/integration/cloud_service/Cloud_Create_test.rb
azurex-0.6.6 test/integration/cloud_service/Cloud_Create_test.rb
azurex-0.6.5 test/integration/cloud_service/Cloud_Create_test.rb
azure-multistorage-0.6.4 test/integration/cloud_service/Cloud_Create_test.rb
azure-0.6.4 test/integration/cloud_service/Cloud_Create_test.rb