Sha256: c2837240ded59ec9d6e2f02d754a6d27fc9770f22a35cc9f61fd5a9456370010

Contents?: true

Size: 1.45 KB

Versions: 7

Compression:

Stored size: 1.45 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
  include Azure::Core::Utility

  subject { Azure::CloudServiceManagementService.new }

  let(:options) do
    {
      location: 'West US',
      description: 'Test'
    }
  end

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

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

    it 'Deletes the cloud service in Microsoft Azure.' do
      subject.delete_cloud_service(@cloud_name)
      cloud_service = subject.get_cloud_service(@cloud_name)
      cloud_service.must_equal nil
    end
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
azure-0.7.1 test/integration/cloud_service/Cloud_Delete_test.rb
azure-0.7.0 test/integration/cloud_service/Cloud_Delete_test.rb
azure-0.7.0.pre3 test/integration/cloud_service/Cloud_Delete_test.rb
azure-fix-0.7.0.pre3 test/integration/cloud_service/Cloud_Delete_test.rb
azure-0.7.0.pre2 test/integration/cloud_service/Cloud_Delete_test.rb
juliusl-azure-sdk-for-ruby-0.7.0 test/integration/cloud_service/Cloud_Delete_test.rb
azure-0.7.0.pre test/integration/cloud_service/Cloud_Delete_test.rb