-
Notifications
You must be signed in to change notification settings - Fork 246
Changes related to fixing the inheritance logic. #1009
Changes from 2 commits
d52eba5
c51fb8a
1da4cb1
ec679a5
b38fd86
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -113,11 +113,11 @@ | |
| ni = network_client.make_request(:get, ni_path, options) | ||
| expect(ni).not_to be_nil | ||
| # user NetworkInterface mapper to deserialize object | ||
| ni_instance = NetworkInterface.new.from_json(ni) | ||
| ni_instance = network_client.deserialize(NetworkInterface.mapper(), ni) | ||
| # retrieve first IP address for first IP configuration | ||
| ip_address_path = ni_instance.ip_configurations[0].public_ipaddress.id | ||
| ip_address = network_client.make_request(:get, ip_address_path, options) | ||
| ip_address_instance = PublicIPAddress.new.from_json(ip_address) | ||
| ip_address_instance = network_client.deserialize(PublicIPAddress.mapper(), ip_address) | ||
| expect(ip_address_instance.dns_settings.fqdn).to eq("testdomain53464.westus.cloudapp.azure.com") | ||
| end | ||
|
|
||
|
|
@@ -135,7 +135,7 @@ | |
|
|
||
| result = @resource_helper.network_client.network_interfaces.list_all | ||
| result.each do |network_interface| | ||
| expect(network_interface.virtual_machine).to be_an_instance_of(MsRestAzure::SubResource) | ||
| expect(network_interface.virtual_machine).to be_an_instance_of(VirtualMachine) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you should have to write
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, it should be Azure::ARM::Network::Models::SubResource. The model looks like this: So, changed it with the latest commit |
||
| end | ||
| end | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,7 +21,6 @@ | |
| namespace_parameters = Azure::ARM::ServiceBus::Models::SBNamespace.new | ||
| namespace_parameters.location = 'westus' | ||
| queue_parameters = Azure::ARM::ServiceBus::Models::SBQueue.new | ||
| queue_parameters.location = 'westus' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. any reason for removing this? Just wanted to make sure what has caused this?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because accroding to the Resource definition in ServiceBus queue, there is no location. https://github.com/Azure/azure-rest-api-specs/blob/current/specification/servicebus/resource-manager/Microsoft.ServiceBus/2017-04-01/servicebus.json#L2503 |
||
|
|
||
| # Create new namespace | ||
| namespace = @service_bus_client.namespaces.create_or_update(@resource_group.name, namespace_name, namespace_parameters) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just curious what has caused this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was working with David on a different task. It was dropped eventually. This was a remnant from that task