File: network_management_client_spec.rb

package info (click to toggle)
ruby-azure-sdk 0.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 22,400 kB
  • ctags: 12,388
  • sloc: ruby: 168,299; sh: 6; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 762 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# encoding: utf-8
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.

require_relative 'spec_helper'

include MsRestAzure
include Azure::ARM::Network

describe NetworkManagementClient do
  before(:each) do
    @resource_helper = ResourceHelper.new()
  end

  it 'should check dns availability' do
    domain_name_label = 'domainnamelabel4706'
    dns_name_availability = @resource_helper.network_client.check_dns_name_availability_async('westus', domain_name_label).value!
    expect(dns_name_availability.response.status).to eq(200)
    expect(dns_name_availability.body).not_to be_nil
    expect(dns_name_availability.body.available).to be(true)
  end
end