fog-azure-rm 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (251) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/Gemfile +1 -1
  4. data/README.md +0 -1
  5. data/fog-azure-rm.gemspec +4 -1
  6. data/lib/fog/azurerm.rb +7 -0
  7. data/lib/fog/azurerm/application_gateway.rb +10 -2
  8. data/lib/fog/azurerm/compute.rb +14 -4
  9. data/lib/fog/azurerm/config.rb +0 -51
  10. data/lib/fog/azurerm/constants.rb +51 -0
  11. data/lib/fog/azurerm/dns.rb +12 -4
  12. data/lib/fog/azurerm/docs/application_gateway.md +38 -4
  13. data/lib/fog/azurerm/docs/compute.md +23 -4
  14. data/lib/fog/azurerm/docs/dns.md +18 -4
  15. data/lib/fog/azurerm/docs/key_vault.md +88 -0
  16. data/lib/fog/azurerm/docs/network.md +98 -9
  17. data/lib/fog/azurerm/docs/resources.md +24 -4
  18. data/lib/fog/azurerm/docs/sql.md +5 -6
  19. data/lib/fog/azurerm/docs/storage.md +12 -0
  20. data/lib/fog/azurerm/docs/traffic_manager.md +22 -4
  21. data/lib/fog/azurerm/key_vault.rb +51 -0
  22. data/lib/fog/azurerm/models/application_gateway/backend_address_pool.rb +2 -0
  23. data/lib/fog/azurerm/models/application_gateway/backend_http_setting.rb +2 -0
  24. data/lib/fog/azurerm/models/application_gateway/frontend_ip_configuration.rb +4 -0
  25. data/lib/fog/azurerm/models/application_gateway/frontend_port.rb +2 -0
  26. data/lib/fog/azurerm/models/application_gateway/gateway.rb +2 -6
  27. data/lib/fog/azurerm/models/application_gateway/gateways.rb +4 -0
  28. data/lib/fog/azurerm/models/application_gateway/http_listener.rb +2 -0
  29. data/lib/fog/azurerm/models/application_gateway/ip_configuration.rb +3 -0
  30. data/lib/fog/azurerm/models/application_gateway/probe.rb +2 -0
  31. data/lib/fog/azurerm/models/application_gateway/request_routing_rule.rb +2 -0
  32. data/lib/fog/azurerm/models/application_gateway/ssl_certificate.rb +2 -0
  33. data/lib/fog/azurerm/models/application_gateway/url_path_map.rb +2 -0
  34. data/lib/fog/azurerm/models/compute/availability_sets.rb +4 -0
  35. data/lib/fog/azurerm/models/compute/servers.rb +4 -0
  36. data/lib/fog/azurerm/models/compute/virtual_machine_extensions.rb +4 -0
  37. data/lib/fog/azurerm/models/dns/record_sets.rb +4 -0
  38. data/lib/fog/azurerm/models/dns/zones.rb +2 -2
  39. data/lib/fog/azurerm/models/key_vault/access_policy_entry.rb +31 -0
  40. data/lib/fog/azurerm/models/key_vault/vault.rb +76 -0
  41. data/lib/fog/azurerm/models/key_vault/vaults.rb +27 -0
  42. data/lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb +4 -0
  43. data/lib/fog/azurerm/models/network/express_route_circuits.rb +4 -0
  44. data/lib/fog/azurerm/models/network/load_balancers.rb +12 -2
  45. data/lib/fog/azurerm/models/network/local_network_gateways.rb +4 -0
  46. data/lib/fog/azurerm/models/network/network_interfaces.rb +4 -0
  47. data/lib/fog/azurerm/models/network/network_security_groups.rb +4 -0
  48. data/lib/fog/azurerm/models/network/network_security_rules.rb +4 -0
  49. data/lib/fog/azurerm/models/network/public_ips.rb +2 -9
  50. data/lib/fog/azurerm/models/network/subnets.rb +4 -0
  51. data/lib/fog/azurerm/models/network/virtual_network_gateway_connections.rb +4 -0
  52. data/lib/fog/azurerm/models/network/virtual_network_gateways.rb +4 -0
  53. data/lib/fog/azurerm/models/network/virtual_networks.rb +9 -11
  54. data/lib/fog/azurerm/models/resources/azure_resources.rb +4 -0
  55. data/lib/fog/azurerm/models/resources/deployments.rb +4 -0
  56. data/lib/fog/azurerm/models/resources/resource_groups.rb +4 -0
  57. data/lib/fog/azurerm/models/sql/firewall_rule.rb +5 -17
  58. data/lib/fog/azurerm/models/sql/firewall_rules.rb +4 -0
  59. data/lib/fog/azurerm/models/sql/sql_database.rb +4 -21
  60. data/lib/fog/azurerm/models/sql/sql_databases.rb +4 -0
  61. data/lib/fog/azurerm/models/sql/sql_server.rb +5 -18
  62. data/lib/fog/azurerm/models/sql/sql_servers.rb +4 -0
  63. data/lib/fog/azurerm/models/storage/directories.rb +4 -0
  64. data/lib/fog/azurerm/models/storage/storage_accounts.rb +4 -0
  65. data/lib/fog/azurerm/models/traffic_manager/traffic_manager_end_points.rb +4 -0
  66. data/lib/fog/azurerm/models/traffic_manager/traffic_manager_profiles.rb +4 -0
  67. data/lib/fog/azurerm/network.rb +22 -4
  68. data/lib/fog/azurerm/requests/application_gateway/check_ag_exists.rb +31 -0
  69. data/lib/fog/azurerm/requests/application_gateway/create_or_update_application_gateway.rb +6 -0
  70. data/lib/fog/azurerm/requests/compute/check_availability_set_exists.rb +31 -0
  71. data/lib/fog/azurerm/requests/compute/check_vm_exists.rb +31 -0
  72. data/lib/fog/azurerm/requests/compute/check_vm_extension_exists.rb +31 -0
  73. data/lib/fog/azurerm/requests/dns/check_record_set_exists.rb +31 -0
  74. data/lib/fog/azurerm/requests/dns/{check_for_zone.rb → check_zone_exists.rb} +4 -2
  75. data/lib/fog/azurerm/requests/dns/list_record_sets.rb +1 -1
  76. data/lib/fog/azurerm/requests/dns/list_zones.rb +2 -2
  77. data/lib/fog/azurerm/requests/key_vault/check_vault_exists.rb +31 -0
  78. data/lib/fog/azurerm/requests/key_vault/create_or_update_vault.rb +105 -0
  79. data/lib/fog/azurerm/requests/key_vault/delete_vault.rb +28 -0
  80. data/lib/fog/azurerm/requests/key_vault/get_vault.rb +54 -0
  81. data/lib/fog/azurerm/requests/key_vault/list_vaults.rb +56 -0
  82. data/lib/fog/azurerm/requests/network/check_express_route_cir_auth_exists.rb +31 -0
  83. data/lib/fog/azurerm/requests/network/check_express_route_circuit_exists.rb +31 -0
  84. data/lib/fog/azurerm/requests/network/check_load_balancer_exists.rb +31 -0
  85. data/lib/fog/azurerm/requests/network/check_local_net_gateway_exists.rb +31 -0
  86. data/lib/fog/azurerm/requests/network/check_net_sec_group_exists.rb +31 -0
  87. data/lib/fog/azurerm/requests/network/check_net_sec_rule_exists.rb +31 -0
  88. data/lib/fog/azurerm/requests/network/check_network_interface_exists.rb +31 -0
  89. data/lib/fog/azurerm/requests/network/{check_for_public_ip.rb → check_public_ip_exists.rb} +12 -5
  90. data/lib/fog/azurerm/requests/network/check_subnet_exists.rb +32 -0
  91. data/lib/fog/azurerm/requests/network/{check_for_virtual_network.rb → check_virtual_network_exists.rb} +11 -6
  92. data/lib/fog/azurerm/requests/network/check_vnet_gateway_connection_exists.rb +32 -0
  93. data/lib/fog/azurerm/requests/network/check_vnet_gateway_exists.rb +32 -0
  94. data/lib/fog/azurerm/requests/network/list_load_balancers_in_subscription.rb +31 -0
  95. data/lib/fog/azurerm/requests/network/list_virtual_networks_in_subscription.rb +74 -0
  96. data/lib/fog/azurerm/requests/resources/check_azure_resource_exists.rb +40 -0
  97. data/lib/fog/azurerm/requests/resources/check_deployment_exists.rb +30 -0
  98. data/lib/fog/azurerm/requests/resources/check_resource_group_exists.rb +30 -0
  99. data/lib/fog/azurerm/requests/sql/check_database_exists.rb +21 -0
  100. data/lib/fog/azurerm/requests/sql/check_firewall_rule_exists.rb +21 -0
  101. data/lib/fog/azurerm/requests/sql/check_sql_server_exists.rb +21 -0
  102. data/lib/fog/azurerm/requests/sql/create_or_update_database.rb +26 -32
  103. data/lib/fog/azurerm/requests/sql/create_or_update_firewall_rule.rb +8 -22
  104. data/lib/fog/azurerm/requests/sql/create_or_update_sql_server.rb +14 -24
  105. data/lib/fog/azurerm/requests/sql/delete_database.rb +2 -9
  106. data/lib/fog/azurerm/requests/sql/delete_firewall_rule.rb +2 -9
  107. data/lib/fog/azurerm/requests/sql/delete_sql_server.rb +3 -9
  108. data/lib/fog/azurerm/requests/sql/get_database.rb +4 -10
  109. data/lib/fog/azurerm/requests/sql/get_firewall_rule.rb +4 -10
  110. data/lib/fog/azurerm/requests/sql/get_sql_server.rb +3 -10
  111. data/lib/fog/azurerm/requests/sql/list_databases.rb +3 -10
  112. data/lib/fog/azurerm/requests/sql/list_firewall_rules.rb +4 -10
  113. data/lib/fog/azurerm/requests/sql/list_sql_servers.rb +3 -10
  114. data/lib/fog/azurerm/requests/storage/check_container_exists.rb +30 -0
  115. data/lib/fog/azurerm/requests/storage/check_storage_account_exists.rb +31 -0
  116. data/lib/fog/azurerm/requests/storage/create_or_update_recovery_vault.rb +1 -1
  117. data/lib/fog/azurerm/requests/storage/delete_recovery_vault.rb +1 -1
  118. data/lib/fog/azurerm/requests/storage/disable_backup_protection.rb +1 -1
  119. data/lib/fog/azurerm/requests/storage/enable_backup_protection.rb +1 -1
  120. data/lib/fog/azurerm/requests/storage/get_all_backup_jobs.rb +1 -1
  121. data/lib/fog/azurerm/requests/storage/get_backup_container.rb +1 -1
  122. data/lib/fog/azurerm/requests/storage/get_backup_item.rb +1 -1
  123. data/lib/fog/azurerm/requests/storage/get_backup_protection_policy.rb +1 -1
  124. data/lib/fog/azurerm/requests/storage/get_recovery_vault.rb +1 -1
  125. data/lib/fog/azurerm/requests/storage/list_recovery_vaults.rb +1 -1
  126. data/lib/fog/azurerm/requests/storage/set_recovery_vault_context.rb +1 -1
  127. data/lib/fog/azurerm/requests/storage/start_backup.rb +1 -1
  128. data/lib/fog/azurerm/requests/traffic_manager/check_traffic_manager_endpoint_exists.rb +31 -0
  129. data/lib/fog/azurerm/requests/traffic_manager/check_traffic_manager_profile_exists.rb +31 -0
  130. data/lib/fog/azurerm/resources.rb +10 -2
  131. data/lib/fog/azurerm/sql.rb +18 -10
  132. data/lib/fog/azurerm/storage.rb +4 -0
  133. data/lib/fog/azurerm/traffic_manager.rb +9 -2
  134. data/lib/fog/azurerm/version.rb +1 -1
  135. data/rake-script.sh +3 -10
  136. data/test/api_stub.rb +8 -0
  137. data/test/api_stub/models/key_vault/vault.rb +39 -0
  138. data/test/api_stub/models/sql/sql_database.rb +18 -16
  139. data/test/api_stub/models/sql/sql_firewall_rule.rb +12 -10
  140. data/test/api_stub/models/sql/sql_server.rb +12 -10
  141. data/test/api_stub/requests/key_vault/vault.rb +95 -0
  142. data/test/api_stub/requests/sql/database.rb +8 -6
  143. data/test/api_stub/requests/sql/firewall_rule.rb +8 -4
  144. data/test/api_stub/requests/sql/sql_server.rb +8 -4
  145. data/test/integration/Virtual_network_gateway_connection.rb +7 -0
  146. data/test/integration/application_gateway.rb +8 -0
  147. data/test/integration/availability_set.rb +13 -2
  148. data/test/integration/blob.rb +0 -6
  149. data/test/integration/container.rb +7 -0
  150. data/test/integration/deployment.rb +7 -0
  151. data/test/integration/express_route_circuit.rb +16 -0
  152. data/test/integration/external_load_balancer.rb +18 -0
  153. data/test/integration/key_vault.rb +98 -0
  154. data/test/integration/local_network_gateway.rb +8 -0
  155. data/test/integration/network_interface.rb +8 -0
  156. data/test/integration/network_security_group.rb +8 -0
  157. data/test/integration/network_security_rule.rb +8 -0
  158. data/test/integration/public_ip.rb +3 -2
  159. data/test/integration/record_set.rb +8 -0
  160. data/test/integration/resource_group.rb +12 -4
  161. data/test/integration/resource_tag.rb +7 -0
  162. data/test/integration/server.rb +8 -0
  163. data/test/integration/sql_server.rb +23 -3
  164. data/test/integration/storage_account.rb +8 -1
  165. data/test/integration/subnet.rb +7 -0
  166. data/test/integration/traffic_manager.rb +14 -0
  167. data/test/integration/virtual_machine_extension.rb +8 -0
  168. data/test/integration/virtual_network.rb +13 -4
  169. data/test/integration/virtual_network_gateway.rb +7 -0
  170. data/test/integration/zone.rb +8 -0
  171. data/test/models/application_gateway/test_gateway.rb +1 -0
  172. data/test/models/application_gateway/test_gateways.rb +14 -1
  173. data/test/models/compute/test_availability_sets.rb +14 -1
  174. data/test/models/compute/test_servers.rb +14 -1
  175. data/test/models/compute/test_virtual_machine_extensions.rb +14 -1
  176. data/test/models/dns/test_record_sets.rb +14 -1
  177. data/test/models/dns/test_zones.rb +7 -7
  178. data/test/models/key_vault/test_vault.rb +39 -0
  179. data/test/models/key_vault/test_vaults.rb +55 -0
  180. data/test/models/network/test_express_route_circuit_authorizations.rb +14 -1
  181. data/test/models/network/test_express_route_circuits.rb +14 -1
  182. data/test/models/network/test_load_balancers.rb +14 -1
  183. data/test/models/network/test_local_network_gateways.rb +14 -1
  184. data/test/models/network/test_network_interfaces.rb +14 -1
  185. data/test/models/network/test_network_security_groups.rb +14 -1
  186. data/test/models/network/test_network_security_rules.rb +14 -1
  187. data/test/models/network/test_public_ips.rb +6 -6
  188. data/test/models/network/test_subnets.rb +14 -1
  189. data/test/models/network/test_virtual_network_gateway_connections.rb +14 -1
  190. data/test/models/network/test_virtual_network_gateways.rb +14 -1
  191. data/test/models/network/test_virtual_networks.rb +20 -8
  192. data/test/models/resources/test_deployments.rb +14 -1
  193. data/test/models/resources/test_resource_groups.rb +14 -1
  194. data/test/models/resources/test_resources.rb +16 -3
  195. data/test/models/sql/test_database.rb +3 -4
  196. data/test/models/sql/test_databases.rb +5 -5
  197. data/test/models/sql/test_firewall_rule.rb +2 -1
  198. data/test/models/sql/test_firewall_rules.rb +3 -2
  199. data/test/models/sql/test_sql_server.rb +2 -1
  200. data/test/models/sql/test_sql_servers.rb +5 -5
  201. data/test/models/storage/test_directories.rb +14 -1
  202. data/test/models/storage/test_storage_accounts.rb +14 -1
  203. data/test/models/traffic_manager/test_traffic_manager_end_points.rb +14 -1
  204. data/test/models/traffic_manager/test_traffic_manager_profiles.rb +14 -1
  205. data/test/requests/application_gateway/test_check_ag_exists.rb +31 -0
  206. data/test/requests/compute/test_check_availability_set_exists.rb +31 -0
  207. data/test/requests/compute/test_check_vm_exists.rb +31 -0
  208. data/test/requests/compute/test_check_vm_extension_exists.rb +31 -0
  209. data/test/requests/dns/test_check_record_set_exists.rb +31 -0
  210. data/test/requests/dns/test_check_zone_exists.rb +35 -0
  211. data/test/requests/dns/test_list_record_sets.rb +35 -0
  212. data/test/requests/dns/{test_check_for_zone.rb → test_list_zones.rb} +10 -8
  213. data/test/requests/key_vault/test_check_vault_exists.rb +31 -0
  214. data/test/requests/key_vault/test_create_or_update_vault.rb +25 -0
  215. data/test/requests/key_vault/test_delete_vault.rb +23 -0
  216. data/test/requests/key_vault/test_get_vault.rb +24 -0
  217. data/test/requests/key_vault/test_list_vaults.rb +24 -0
  218. data/test/requests/network/test_check_express_route_cir_auth_exists.rb +31 -0
  219. data/test/requests/network/test_check_express_route_circuit_exists.rb +31 -0
  220. data/test/requests/network/test_check_load_balancer_exists.rb +31 -0
  221. data/test/requests/network/test_check_local_net_gateway_exists.rb +31 -0
  222. data/test/requests/network/test_check_net_sec_group_exists.rb +31 -0
  223. data/test/requests/network/test_check_net_sec_rule_exists.rb +31 -0
  224. data/test/requests/network/test_check_network_interface_exists.rb +31 -0
  225. data/test/requests/network/{test_check_for_public_ip.rb → test_check_public_ip_exists.rb} +8 -8
  226. data/test/requests/network/test_check_subnet_exists.rb +31 -0
  227. data/test/requests/network/{test_check_for_virtual_network.rb → test_check_virtual_network_exists.rb} +8 -8
  228. data/test/requests/network/test_check_vnet_gateway_connection_exists.rb +31 -0
  229. data/test/requests/network/test_check_vnet_gateway_exists.rb +31 -0
  230. data/test/requests/network/test_list_virtual_networks_in_subscription.rb +24 -0
  231. data/test/requests/resources/test_check_azure_resource_exists.rb +22 -0
  232. data/test/requests/resources/test_check_deployment_exists.rb +29 -0
  233. data/test/requests/resources/test_check_resource_group_exists.rb +29 -0
  234. data/test/requests/sql/test_create_or_update_database.rb +9 -12
  235. data/test/requests/sql/test_create_or_update_firewall_rule.rb +9 -11
  236. data/test/requests/sql/test_create_or_update_sql_server.rb +9 -12
  237. data/test/requests/sql/test_delete_database.rb +6 -17
  238. data/test/requests/sql/test_delete_firewall_rule.rb +6 -17
  239. data/test/requests/sql/test_delete_sql_server.rb +6 -17
  240. data/test/requests/sql/test_get_database.rb +7 -18
  241. data/test/requests/sql/test_get_firewall_rule.rb +7 -18
  242. data/test/requests/sql/test_get_sql_server.rb +7 -18
  243. data/test/requests/sql/test_list_databases.rb +7 -18
  244. data/test/requests/sql/test_list_firewall_rules.rb +7 -18
  245. data/test/requests/sql/test_list_sql_servers.rb +7 -18
  246. data/test/requests/storage/test_check_container_exists.rb +18 -0
  247. data/test/requests/storage/test_check_storage_account_exists.rb +32 -0
  248. data/test/requests/traffic_manager/test_check_traffic_manager_endpoint_exists.rb +31 -0
  249. data/test/requests/traffic_manager/test_check_traffic_manager_profile_exists.rb +31 -0
  250. data/test/test_helper.rb +39 -4
  251. metadata +125 -10
@@ -0,0 +1,32 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ # Test Class for Check Storage Account Exists Request
4
+ class TestCheckStorageAccountExists < Minitest::Test
5
+ # This class posesses the test cases for the requests of storage account service.
6
+ def setup
7
+ @service = Fog::Storage::AzureRM.new(credentials)
8
+ @storage_mgmt_client = @service.instance_variable_get(:@storage_mgmt_client)
9
+ @storage_accounts = @storage_mgmt_client.storage_accounts
10
+ end
11
+
12
+ def test_check_storage_account_exists_success
13
+ response_body = ApiStub::Requests::Storage::StorageAccount.storage_account_request(@storage_mgmt_client)
14
+ @storage_accounts.stub :get_properties, response_body do
15
+ assert @service.check_storage_account_exists('fog_test_rg', 'fogtestsasecond')
16
+ end
17
+ end
18
+
19
+ def test_check_storage_account_exists_failure
20
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception', 'code' => 'ResourceNotFound' }) }
21
+ @storage_accounts.stub :get_properties, response do
22
+ assert !@service.check_storage_account_exists('fog_test_rg', 'fogtestsasecond')
23
+ end
24
+ end
25
+
26
+ def test_check_storage_account_exists_exception
27
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception', 'code' => 'ResourceGroupNotFound' }) }
28
+ @storage_accounts.stub :get_properties, response do
29
+ assert_raises(RuntimeError) { @service.check_storage_account_exists('fog_test_rg', 'fogtestsasecond') }
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,31 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ # Test class for Check Traffic Manager Endpoint Exists
4
+ class TestCheckTrafficManagerEndpointExists < Minitest::Test
5
+ def setup
6
+ @service = Fog::TrafficManager::AzureRM.new(credentials)
7
+ @traffic_manager_client = @service.instance_variable_get(:@traffic_mgmt_client)
8
+ @end_points = @traffic_manager_client.endpoints
9
+ end
10
+
11
+ def test_check_traffic_manager_endpoint_exists_success
12
+ mocked_response = ApiStub::Requests::TrafficManager::TrafficManagerEndPoint.create_traffic_manager_endpoint_response(@traffic_manager_client)
13
+ @end_points.stub :get, mocked_response do
14
+ assert @service.check_traffic_manager_endpoint_exists('fog-test-rg', 'fog-test-profile', 'fog-test-endpoint-name', 'fog-test-endpoint-type')
15
+ end
16
+ end
17
+
18
+ def test_check_traffic_manager_endpoint_exists_failure
19
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'code' => 'NotFound' ) }
20
+ @end_points.stub :get, response do
21
+ assert !@service.check_traffic_manager_endpoint_exists('fog-test-rg', 'fog-test-profile', 'fog-test-endpoint-name', 'fog-test-endpoint-type')
22
+ end
23
+ end
24
+
25
+ def test_check_traffic_manager_endpoint_exists_exception
26
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception', 'code' => 'ResourceGroupNotFound' }) }
27
+ @end_points.stub :get, response do
28
+ assert_raises(RuntimeError) { @service.check_traffic_manager_endpoint_exists('fog-test-rg', 'fog-test-profile', 'fog-test-endpoint-name', 'fog-test-endpoint-type') }
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,31 @@
1
+ require File.expand_path '../../test_helper', __dir__
2
+
3
+ # Test class for Check Traffic Manager Profile Exists
4
+ class TestCheckTrafficManagerProfileExists < Minitest::Test
5
+ def setup
6
+ @service = Fog::TrafficManager::AzureRM.new(credentials)
7
+ @traffic_manager_client = @service.instance_variable_get(:@traffic_mgmt_client)
8
+ @profiles = @traffic_manager_client.profiles
9
+ end
10
+
11
+ def test_check_traffic_manager_profile_exists_success
12
+ mocked_response = ApiStub::Requests::TrafficManager::TrafficManagerProfile.create_traffic_manager_profile_response(@traffic_manager_client)
13
+ @profiles.stub :get, mocked_response do
14
+ assert @service.check_traffic_manager_profile_exists('fog-test-rg', 'fog-test-profile')
15
+ end
16
+ end
17
+
18
+ def test_check_traffic_manager_profile_exists_failure
19
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception', 'code' => 'ResourceNotFound' }) }
20
+ @profiles.stub :get, response do
21
+ assert !@service.check_traffic_manager_profile_exists('fog-test-rg', 'fog-test-profile')
22
+ end
23
+ end
24
+
25
+ def test_check_traffic_manager_profile_exists_exception
26
+ response = proc { raise MsRestAzure::AzureOperationError.new(nil, nil, 'error' => { 'message' => 'mocked exception', 'code' => 'ResourceGroupNotFound' }) }
27
+ @profiles.stub :get, response do
28
+ assert_raises(RuntimeError) { @service.check_traffic_manager_profile_exists('fog-test-rg', 'fog-test-profile') }
29
+ end
30
+ end
31
+ end
data/test/test_helper.rb CHANGED
@@ -720,7 +720,7 @@ end
720
720
  def database(service)
721
721
  Fog::Sql::AzureRM::SqlDatabase.new(
722
722
  name: 'fog-test-zone.com',
723
- id: '/subscriptions/67f2116d-4ea2-4c6c-b20a-f92183dbe3cb/resourceGroups/vm_custom_image/providers/Microsoft.Sql/servers/test-sql-server-confiz123/databases/confiztestdatab98',
723
+ id: '/subscriptions/########-####-####-####-############/resourceGroups/vm_custom_image/providers/Microsoft.Sql/servers/test-sql-server-confiz123/databases/confiztestdatab98',
724
724
  resource_group: 'fog-test-rg',
725
725
  server_name: 'fog-test-server-name',
726
726
  location: 'eastus',
@@ -728,10 +728,33 @@ def database(service)
728
728
  )
729
729
  end
730
730
 
731
+ def databases(service)
732
+ Fog::Sql::AzureRM::SqlDatabases.new(
733
+ resource_group: 'fog-test-rg',
734
+ server_name: 'fog-test-server-name',
735
+ name: 'database-name',
736
+ location: 'eastus',
737
+ service: service
738
+ )
739
+ end
740
+
731
741
  def sql_server(service)
732
742
  Fog::Sql::AzureRM::SqlServer.new(
733
743
  name: 'fog-test-zone.com',
734
- id: '/subscriptions/67f2116d-4ea2-4c6c-b20a-f92183dbe3cb/resourceGroups/vm_custom_image/providers/Microsoft.Sql/servers/test-sql-server-confiz123',
744
+ id: '/subscriptions/########-####-####-####-############/resourceGroups/vm_custom_image/providers/Microsoft.Sql/servers/test-sql-server-confiz123',
745
+ resource_group: 'fog-test-rg',
746
+ location: 'eastus',
747
+ version: '2.0',
748
+ administrator_login: 'test-admin@3',
749
+ administrator_login_password: 'pass@swe',
750
+ service: service
751
+ )
752
+ end
753
+
754
+ def sql_servers(service)
755
+ Fog::Sql::AzureRM::SqlServers.new(
756
+ name: 'fog-test-zone.com',
757
+ id: '/subscriptions/########-####-####-####-############/resourceGroups/vm_custom_image/providers/Microsoft.Sql/servers/test-sql-server-confiz123',
735
758
  resource_group: 'fog-test-rg',
736
759
  location: 'eastus',
737
760
  version: '2.0',
@@ -744,7 +767,19 @@ end
744
767
  def sql_server_firewall_rule(service)
745
768
  Fog::Sql::AzureRM::FirewallRule.new(
746
769
  name: 'fog-test-firewall-rule-name',
747
- id: '/subscriptions/67f2116d-4ea2-4c6c-b20a-f92183dbe3cb/resourceGroups/vm_custom_image/providers/Microsoft.Sql/servers/test-sql-server-confiz123/firewallRules/rule-name',
770
+ id: '/subscriptions/########-####-####-####-############/resourceGroups/vm_custom_image/providers/Microsoft.Sql/servers/test-sql-server-confiz123/firewallRules/rule-name',
771
+ resource_group: 'fog-test-rg',
772
+ server_name: 'server-name',
773
+ start_ip: '10.10.10.10',
774
+ end_ip: '10.10.10.10',
775
+ service: service
776
+ )
777
+ end
778
+
779
+ def sql_server_firewall_rules(service)
780
+ Fog::Sql::AzureRM::FirewallRules.new(
781
+ name: 'fog-test-firewall-rule-name',
782
+ id: '/subscriptions/########-####-####-####-############/resourceGroups/vm_custom_image/providers/Microsoft.Sql/servers/test-sql-server-confiz123/firewallRules/rule-name',
748
783
  resource_group: 'fog-test-rg',
749
784
  server_name: 'server-name',
750
785
  start_ip: '10.10.10.10',
@@ -756,7 +791,7 @@ end
756
791
  def recovery_vault(service)
757
792
  Fog::Storage::AzureRM::RecoveryVault.new(
758
793
  name: 'fog-test-vault',
759
- id: '/subscriptions/67f2116d-4ea2-4c6c-b20a-f92183dbe3cb/resourceGroups/fog-test-rg/providers/Microsoft.RecoveryServices/vaults/fog-test-vault',
794
+ id: '/subscriptions/########-####-####-####-############/resourceGroups/fog-test-rg/providers/Microsoft.RecoveryServices/vaults/fog-test-vault',
760
795
  resource_group: 'fog-test-rg',
761
796
  location: 'westus',
762
797
  type: 'Microsoft.RecoveryServices/vaults',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-azure-rm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaffan Chaudhry
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2016-12-07 00:00:00.000000000 Z
17
+ date: 2017-01-12 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: rake
@@ -198,20 +198,48 @@ dependencies:
198
198
  - - "~>"
199
199
  - !ruby/object:Gem::Version
200
200
  version: 0.8.0
201
+ - !ruby/object:Gem::Dependency
202
+ name: azure_mgmt_sql
203
+ requirement: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - "~>"
206
+ - !ruby/object:Gem::Version
207
+ version: 0.8.0
208
+ type: :runtime
209
+ prerelease: false
210
+ version_requirements: !ruby/object:Gem::Requirement
211
+ requirements:
212
+ - - "~>"
213
+ - !ruby/object:Gem::Version
214
+ version: 0.8.0
215
+ - !ruby/object:Gem::Dependency
216
+ name: azure_mgmt_key_vault
217
+ requirement: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - "~>"
220
+ - !ruby/object:Gem::Version
221
+ version: 0.8.0
222
+ type: :runtime
223
+ prerelease: false
224
+ version_requirements: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - "~>"
227
+ - !ruby/object:Gem::Version
228
+ version: 0.8.0
201
229
  - !ruby/object:Gem::Dependency
202
230
  name: azure-storage
203
231
  requirement: !ruby/object:Gem::Requirement
204
232
  requirements:
205
233
  - - "~>"
206
234
  - !ruby/object:Gem::Version
207
- version: 0.11.4.preview
235
+ version: 0.11.5.preview
208
236
  type: :runtime
209
237
  prerelease: false
210
238
  version_requirements: !ruby/object:Gem::Requirement
211
239
  requirements:
212
240
  - - "~>"
213
241
  - !ruby/object:Gem::Version
214
- version: 0.11.4.preview
242
+ version: 0.11.5.preview
215
243
  - !ruby/object:Gem::Dependency
216
244
  name: vhd
217
245
  requirement: !ruby/object:Gem::Requirement
@@ -226,6 +254,20 @@ dependencies:
226
254
  - - '='
227
255
  - !ruby/object:Gem::Version
228
256
  version: 0.0.4
257
+ - !ruby/object:Gem::Dependency
258
+ name: nokogiri
259
+ requirement: !ruby/object:Gem::Requirement
260
+ requirements:
261
+ - - "~>"
262
+ - !ruby/object:Gem::Version
263
+ version: 1.6.0
264
+ type: :runtime
265
+ prerelease: false
266
+ version_requirements: !ruby/object:Gem::Requirement
267
+ requirements:
268
+ - - "~>"
269
+ - !ruby/object:Gem::Version
270
+ version: 1.6.0
229
271
  description: |-
230
272
  This library can be used as a module for 'fog' or as standalone provider
231
273
  to use the Azure Resource Manager cloud services in applications..
@@ -251,17 +293,20 @@ files:
251
293
  - lib/fog/azurerm/application_gateway.rb
252
294
  - lib/fog/azurerm/compute.rb
253
295
  - lib/fog/azurerm/config.rb
296
+ - lib/fog/azurerm/constants.rb
254
297
  - lib/fog/azurerm/credentials.rb
255
298
  - lib/fog/azurerm/dns.rb
256
299
  - lib/fog/azurerm/docs/application_gateway.md
257
300
  - lib/fog/azurerm/docs/compute.md
258
301
  - lib/fog/azurerm/docs/dns.md
302
+ - lib/fog/azurerm/docs/key_vault.md
259
303
  - lib/fog/azurerm/docs/network.md
260
304
  - lib/fog/azurerm/docs/resources.md
261
305
  - lib/fog/azurerm/docs/sql.md
262
306
  - lib/fog/azurerm/docs/storage.md
263
307
  - lib/fog/azurerm/docs/structure.md
264
308
  - lib/fog/azurerm/docs/traffic_manager.md
309
+ - lib/fog/azurerm/key_vault.rb
265
310
  - lib/fog/azurerm/models/application_gateway/backend_address_pool.rb
266
311
  - lib/fog/azurerm/models/application_gateway/backend_http_setting.rb
267
312
  - lib/fog/azurerm/models/application_gateway/frontend_ip_configuration.rb
@@ -284,6 +329,9 @@ files:
284
329
  - lib/fog/azurerm/models/dns/record_sets.rb
285
330
  - lib/fog/azurerm/models/dns/zone.rb
286
331
  - lib/fog/azurerm/models/dns/zones.rb
332
+ - lib/fog/azurerm/models/key_vault/access_policy_entry.rb
333
+ - lib/fog/azurerm/models/key_vault/vault.rb
334
+ - lib/fog/azurerm/models/key_vault/vaults.rb
287
335
  - lib/fog/azurerm/models/network/express_route_circuit.rb
288
336
  - lib/fog/azurerm/models/network/express_route_circuit_authorization.rb
289
337
  - lib/fog/azurerm/models/network/express_route_circuit_authorizations.rb
@@ -350,6 +398,7 @@ files:
350
398
  - lib/fog/azurerm/models/traffic_manager/traffic_manager_profile.rb
351
399
  - lib/fog/azurerm/models/traffic_manager/traffic_manager_profiles.rb
352
400
  - lib/fog/azurerm/network.rb
401
+ - lib/fog/azurerm/requests/application_gateway/check_ag_exists.rb
353
402
  - lib/fog/azurerm/requests/application_gateway/create_or_update_application_gateway.rb
354
403
  - lib/fog/azurerm/requests/application_gateway/delete_application_gateway.rb
355
404
  - lib/fog/azurerm/requests/application_gateway/get_application_gateway.rb
@@ -359,6 +408,9 @@ files:
359
408
  - lib/fog/azurerm/requests/application_gateway/update_sku_attributes.rb
360
409
  - lib/fog/azurerm/requests/application_gateway/update_subnet_id_in_gateway_ip_configuration.rb
361
410
  - lib/fog/azurerm/requests/compute/attach_data_disk_to_vm.rb
411
+ - lib/fog/azurerm/requests/compute/check_availability_set_exists.rb
412
+ - lib/fog/azurerm/requests/compute/check_vm_exists.rb
413
+ - lib/fog/azurerm/requests/compute/check_vm_extension_exists.rb
362
414
  - lib/fog/azurerm/requests/compute/check_vm_status.rb
363
415
  - lib/fog/azurerm/requests/compute/create_availability_set.rb
364
416
  - lib/fog/azurerm/requests/compute/create_or_update_vm_extension.rb
@@ -379,7 +431,8 @@ files:
379
431
  - lib/fog/azurerm/requests/compute/redeploy_virtual_machine.rb
380
432
  - lib/fog/azurerm/requests/compute/restart_virtual_machine.rb
381
433
  - lib/fog/azurerm/requests/compute/start_virtual_machine.rb
382
- - lib/fog/azurerm/requests/dns/check_for_zone.rb
434
+ - lib/fog/azurerm/requests/dns/check_record_set_exists.rb
435
+ - lib/fog/azurerm/requests/dns/check_zone_exists.rb
383
436
  - lib/fog/azurerm/requests/dns/create_or_update_record_set.rb
384
437
  - lib/fog/azurerm/requests/dns/create_or_update_zone.rb
385
438
  - lib/fog/azurerm/requests/dns/delete_record_set.rb
@@ -389,6 +442,11 @@ files:
389
442
  - lib/fog/azurerm/requests/dns/get_zone.rb
390
443
  - lib/fog/azurerm/requests/dns/list_record_sets.rb
391
444
  - lib/fog/azurerm/requests/dns/list_zones.rb
445
+ - lib/fog/azurerm/requests/key_vault/check_vault_exists.rb
446
+ - lib/fog/azurerm/requests/key_vault/create_or_update_vault.rb
447
+ - lib/fog/azurerm/requests/key_vault/delete_vault.rb
448
+ - lib/fog/azurerm/requests/key_vault/get_vault.rb
449
+ - lib/fog/azurerm/requests/key_vault/list_vaults.rb
392
450
  - lib/fog/azurerm/requests/network/add_address_prefixes_in_virtual_network.rb
393
451
  - lib/fog/azurerm/requests/network/add_dns_servers_in_virtual_network.rb
394
452
  - lib/fog/azurerm/requests/network/add_security_rules.rb
@@ -396,8 +454,18 @@ files:
396
454
  - lib/fog/azurerm/requests/network/attach_network_security_group_to_subnet.rb
397
455
  - lib/fog/azurerm/requests/network/attach_resource_to_nic.rb
398
456
  - lib/fog/azurerm/requests/network/attach_route_table_to_subnet.rb
399
- - lib/fog/azurerm/requests/network/check_for_public_ip.rb
400
- - lib/fog/azurerm/requests/network/check_for_virtual_network.rb
457
+ - lib/fog/azurerm/requests/network/check_express_route_cir_auth_exists.rb
458
+ - lib/fog/azurerm/requests/network/check_express_route_circuit_exists.rb
459
+ - lib/fog/azurerm/requests/network/check_load_balancer_exists.rb
460
+ - lib/fog/azurerm/requests/network/check_local_net_gateway_exists.rb
461
+ - lib/fog/azurerm/requests/network/check_net_sec_group_exists.rb
462
+ - lib/fog/azurerm/requests/network/check_net_sec_rule_exists.rb
463
+ - lib/fog/azurerm/requests/network/check_network_interface_exists.rb
464
+ - lib/fog/azurerm/requests/network/check_public_ip_exists.rb
465
+ - lib/fog/azurerm/requests/network/check_subnet_exists.rb
466
+ - lib/fog/azurerm/requests/network/check_virtual_network_exists.rb
467
+ - lib/fog/azurerm/requests/network/check_vnet_gateway_connection_exists.rb
468
+ - lib/fog/azurerm/requests/network/check_vnet_gateway_exists.rb
401
469
  - lib/fog/azurerm/requests/network/create_load_balancer.rb
402
470
  - lib/fog/azurerm/requests/network/create_or_update_express_route_circuit.rb
403
471
  - lib/fog/azurerm/requests/network/create_or_update_express_route_circuit_authorization.rb
@@ -447,6 +515,7 @@ files:
447
515
  - lib/fog/azurerm/requests/network/list_express_route_circuits.rb
448
516
  - lib/fog/azurerm/requests/network/list_express_route_service_providers.rb
449
517
  - lib/fog/azurerm/requests/network/list_load_balancers.rb
518
+ - lib/fog/azurerm/requests/network/list_load_balancers_in_subscription.rb
450
519
  - lib/fog/azurerm/requests/network/list_local_network_gateways.rb
451
520
  - lib/fog/azurerm/requests/network/list_network_interfaces.rb
452
521
  - lib/fog/azurerm/requests/network/list_network_security_groups.rb
@@ -456,12 +525,16 @@ files:
456
525
  - lib/fog/azurerm/requests/network/list_virtual_network_gateway_connections.rb
457
526
  - lib/fog/azurerm/requests/network/list_virtual_network_gateways.rb
458
527
  - lib/fog/azurerm/requests/network/list_virtual_networks.rb
528
+ - lib/fog/azurerm/requests/network/list_virtual_networks_in_subscription.rb
459
529
  - lib/fog/azurerm/requests/network/remove_address_prefixes_from_virtual_network.rb
460
530
  - lib/fog/azurerm/requests/network/remove_dns_servers_from_virtual_network.rb
461
531
  - lib/fog/azurerm/requests/network/remove_security_rule.rb
462
532
  - lib/fog/azurerm/requests/network/remove_subnets_from_virtual_network.rb
463
533
  - lib/fog/azurerm/requests/network/reset_connection_shared_key.rb
464
534
  - lib/fog/azurerm/requests/network/set_connection_shared_key.rb
535
+ - lib/fog/azurerm/requests/resources/check_azure_resource_exists.rb
536
+ - lib/fog/azurerm/requests/resources/check_deployment_exists.rb
537
+ - lib/fog/azurerm/requests/resources/check_resource_group_exists.rb
465
538
  - lib/fog/azurerm/requests/resources/create_deployment.rb
466
539
  - lib/fog/azurerm/requests/resources/create_resource_group.rb
467
540
  - lib/fog/azurerm/requests/resources/delete_deployment.rb
@@ -473,6 +546,9 @@ files:
473
546
  - lib/fog/azurerm/requests/resources/list_resource_groups.rb
474
547
  - lib/fog/azurerm/requests/resources/list_tagged_resources.rb
475
548
  - lib/fog/azurerm/requests/resources/tag_resource.rb
549
+ - lib/fog/azurerm/requests/sql/check_database_exists.rb
550
+ - lib/fog/azurerm/requests/sql/check_firewall_rule_exists.rb
551
+ - lib/fog/azurerm/requests/sql/check_sql_server_exists.rb
476
552
  - lib/fog/azurerm/requests/sql/create_or_update_database.rb
477
553
  - lib/fog/azurerm/requests/sql/create_or_update_firewall_rule.rb
478
554
  - lib/fog/azurerm/requests/sql/create_or_update_sql_server.rb
@@ -487,6 +563,8 @@ files:
487
563
  - lib/fog/azurerm/requests/sql/list_sql_servers.rb
488
564
  - lib/fog/azurerm/requests/storage/acquire_blob_lease.rb
489
565
  - lib/fog/azurerm/requests/storage/acquire_container_lease.rb
566
+ - lib/fog/azurerm/requests/storage/check_container_exists.rb
567
+ - lib/fog/azurerm/requests/storage/check_storage_account_exists.rb
490
568
  - lib/fog/azurerm/requests/storage/check_storage_account_name_availability.rb
491
569
  - lib/fog/azurerm/requests/storage/commit_blob_blocks.rb
492
570
  - lib/fog/azurerm/requests/storage/compare_container_blobs.rb
@@ -540,6 +618,8 @@ files:
540
618
  - lib/fog/azurerm/requests/storage/start_backup.rb
541
619
  - lib/fog/azurerm/requests/storage/update_storage_account.rb
542
620
  - lib/fog/azurerm/requests/storage/wait_blob_copy_operation_to_finish.rb
621
+ - lib/fog/azurerm/requests/traffic_manager/check_traffic_manager_endpoint_exists.rb
622
+ - lib/fog/azurerm/requests/traffic_manager/check_traffic_manager_profile_exists.rb
543
623
  - lib/fog/azurerm/requests/traffic_manager/create_or_update_traffic_manager_endpoint.rb
544
624
  - lib/fog/azurerm/requests/traffic_manager/create_or_update_traffic_manager_profile.rb
545
625
  - lib/fog/azurerm/requests/traffic_manager/delete_traffic_manager_endpoint.rb
@@ -563,6 +643,7 @@ files:
563
643
  - test/api_stub/models/compute/virtual_machine_extension.rb
564
644
  - test/api_stub/models/dns/record_set.rb
565
645
  - test/api_stub/models/dns/zone.rb
646
+ - test/api_stub/models/key_vault/vault.rb
566
647
  - test/api_stub/models/network/express_route_circuit.rb
567
648
  - test/api_stub/models/network/express_route_circuit_authorization.rb
568
649
  - test/api_stub/models/network/express_route_circuit_peering.rb
@@ -595,6 +676,7 @@ files:
595
676
  - test/api_stub/requests/compute/virtual_machine_extension.rb
596
677
  - test/api_stub/requests/dns/record_set.rb
597
678
  - test/api_stub/requests/dns/zone.rb
679
+ - test/api_stub/requests/key_vault/vault.rb
598
680
  - test/api_stub/requests/network/express_route_circuit.rb
599
681
  - test/api_stub/requests/network/express_route_circuit_authorization.rb
600
682
  - test/api_stub/requests/network/express_route_circuit_peering.rb
@@ -633,6 +715,7 @@ files:
633
715
  - test/integration/express_route_circuit.rb
634
716
  - test/integration/external_load_balancer.rb
635
717
  - test/integration/internal_load_balancer.rb
718
+ - test/integration/key_vault.rb
636
719
  - test/integration/local_network_gateway.rb
637
720
  - test/integration/network_interface.rb
638
721
  - test/integration/network_security_group.rb
@@ -664,6 +747,8 @@ files:
664
747
  - test/models/dns/test_record_sets.rb
665
748
  - test/models/dns/test_zone.rb
666
749
  - test/models/dns/test_zones.rb
750
+ - test/models/key_vault/test_vault.rb
751
+ - test/models/key_vault/test_vaults.rb
667
752
  - test/models/network/test_express_route_circuit.rb
668
753
  - test/models/network/test_express_route_circuit_authorization.rb
669
754
  - test/models/network/test_express_route_circuit_authorizations.rb
@@ -716,6 +801,7 @@ files:
716
801
  - test/models/traffic_manager/test_traffic_manager_end_points.rb
717
802
  - test/models/traffic_manager/test_traffic_manager_profile.rb
718
803
  - test/models/traffic_manager/test_traffic_manager_profiles.rb
804
+ - test/requests/application_gateway/test_check_ag_exists.rb
719
805
  - test/requests/application_gateway/test_create_or_update_application_gateway.rb
720
806
  - test/requests/application_gateway/test_delete_application_gateway.rb
721
807
  - test/requests/application_gateway/test_get_application_gateway.rb
@@ -723,6 +809,9 @@ files:
723
809
  - test/requests/application_gateway/test_start_application_gateway.rb
724
810
  - test/requests/application_gateway/test_stop_application_gateway.rb
725
811
  - test/requests/compute/test_attach_data_disk_to_vm.rb
812
+ - test/requests/compute/test_check_availability_set_exists.rb
813
+ - test/requests/compute/test_check_vm_exists.rb
814
+ - test/requests/compute/test_check_vm_extension_exists.rb
726
815
  - test/requests/compute/test_create_availability_set.rb
727
816
  - test/requests/compute/test_create_virtual_machine.rb
728
817
  - test/requests/compute/test_create_vm_extension.rb
@@ -743,7 +832,8 @@ files:
743
832
  - test/requests/compute/test_restart_virtual_machine.rb
744
833
  - test/requests/compute/test_start_virtual_machine.rb
745
834
  - test/requests/compute/test_update_vm_extension.rb
746
- - test/requests/dns/test_check_for_zone.rb
835
+ - test/requests/dns/test_check_record_set_exists.rb
836
+ - test/requests/dns/test_check_zone_exists.rb
747
837
  - test/requests/dns/test_create_record_set.rb
748
838
  - test/requests/dns/test_create_zone.rb
749
839
  - test/requests/dns/test_delete_record_set.rb
@@ -751,6 +841,13 @@ files:
751
841
  - test/requests/dns/test_get_record_set.rb
752
842
  - test/requests/dns/test_get_records_from_record_set.rb
753
843
  - test/requests/dns/test_get_zone.rb
844
+ - test/requests/dns/test_list_record_sets.rb
845
+ - test/requests/dns/test_list_zones.rb
846
+ - test/requests/key_vault/test_check_vault_exists.rb
847
+ - test/requests/key_vault/test_create_or_update_vault.rb
848
+ - test/requests/key_vault/test_delete_vault.rb
849
+ - test/requests/key_vault/test_get_vault.rb
850
+ - test/requests/key_vault/test_list_vaults.rb
754
851
  - test/requests/network/test_add_address_prefixes_in_virtual_network.rb
755
852
  - test/requests/network/test_add_dns_servers_in_virtual_network.rb
756
853
  - test/requests/network/test_add_security_rules.rb
@@ -758,8 +855,18 @@ files:
758
855
  - test/requests/network/test_attach_network_security_group_to_subnet.rb
759
856
  - test/requests/network/test_attach_resource_to_nic.rb
760
857
  - test/requests/network/test_attach_route_table_to_subnet.rb
761
- - test/requests/network/test_check_for_public_ip.rb
762
- - test/requests/network/test_check_for_virtual_network.rb
858
+ - test/requests/network/test_check_express_route_cir_auth_exists.rb
859
+ - test/requests/network/test_check_express_route_circuit_exists.rb
860
+ - test/requests/network/test_check_load_balancer_exists.rb
861
+ - test/requests/network/test_check_local_net_gateway_exists.rb
862
+ - test/requests/network/test_check_net_sec_group_exists.rb
863
+ - test/requests/network/test_check_net_sec_rule_exists.rb
864
+ - test/requests/network/test_check_network_interface_exists.rb
865
+ - test/requests/network/test_check_public_ip_exists.rb
866
+ - test/requests/network/test_check_subnet_exists.rb
867
+ - test/requests/network/test_check_virtual_network_exists.rb
868
+ - test/requests/network/test_check_vnet_gateway_connection_exists.rb
869
+ - test/requests/network/test_check_vnet_gateway_exists.rb
763
870
  - test/requests/network/test_create_express_route_circuit.rb
764
871
  - test/requests/network/test_create_express_route_circuit_authorization.rb
765
872
  - test/requests/network/test_create_express_route_circuit_peering.rb
@@ -818,6 +925,7 @@ files:
818
925
  - test/requests/network/test_list_virtual_network_gateway_connections.rb
819
926
  - test/requests/network/test_list_virtual_network_gateways.rb
820
927
  - test/requests/network/test_list_virtual_networks.rb
928
+ - test/requests/network/test_list_virtual_networks_in_subscription.rb
821
929
  - test/requests/network/test_remove_address_prefixes_from_virtual_network.rb
822
930
  - test/requests/network/test_remove_dns_servers_from_virtual_network.rb
823
931
  - test/requests/network/test_remove_security_rule.rb
@@ -825,6 +933,9 @@ files:
825
933
  - test/requests/network/test_reset_connection_shared_key.rb
826
934
  - test/requests/network/test_set_connection_shared_key.rb
827
935
  - test/requests/network/test_update_public_ip.rb
936
+ - test/requests/resources/test_check_azure_resource_exists.rb
937
+ - test/requests/resources/test_check_deployment_exists.rb
938
+ - test/requests/resources/test_check_resource_group_exists.rb
828
939
  - test/requests/resources/test_create_deployment.rb
829
940
  - test/requests/resources/test_create_resource_group.rb
830
941
  - test/requests/resources/test_delete_deployment.rb
@@ -850,6 +961,8 @@ files:
850
961
  - test/requests/sql/test_list_sql_servers.rb
851
962
  - test/requests/storage/test_acquire_blob_lease.rb
852
963
  - test/requests/storage/test_acquire_container_lease.rb
964
+ - test/requests/storage/test_check_container_exists.rb
965
+ - test/requests/storage/test_check_storage_account_exists.rb
853
966
  - test/requests/storage/test_check_storage_account_name_availability.rb
854
967
  - test/requests/storage/test_commit_blob_blocks.rb
855
968
  - test/requests/storage/test_compare_container_blobs.rb
@@ -903,6 +1016,8 @@ files:
903
1016
  - test/requests/storage/test_start_backup.rb
904
1017
  - test/requests/storage/test_update_storage_account.rb
905
1018
  - test/requests/storage/test_wait_blob_copy_operation_to_finish.rb
1019
+ - test/requests/traffic_manager/test_check_traffic_manager_endpoint_exists.rb
1020
+ - test/requests/traffic_manager/test_check_traffic_manager_profile_exists.rb
906
1021
  - test/requests/traffic_manager/test_create_traffic_manager_endpoint.rb
907
1022
  - test/requests/traffic_manager/test_create_traffic_manager_profile.rb
908
1023
  - test/requests/traffic_manager/test_delete_traffic_manager_endpoint.rb