test/integration/server_custom_image.rb in fog-azure-rm-0.3.2 vs test/integration/server_custom_image.rb in fog-azure-rm-0.3.3
- old
+ new
@@ -4,11 +4,11 @@
########################################################################################################################
###################### Services object required by all actions ######################
###################### Keep it Uncommented! ######################
########################################################################################################################
-azure_credentials = YAML.load_file('credentials/azure.yml')
+azure_credentials = YAML.load_file(File.expand_path('credentials/azure.yml', __dir__))
rs = Fog::Resources::AzureRM.new(
tenant_id: azure_credentials['tenant_id'],
client_id: azure_credentials['client_id'],
client_secret: azure_credentials['client_secret'],
@@ -90,10 +90,10 @@
vm_size: 'Basic_A0',
storage_account_name: storage_account_name,
username: 'testuser',
password: 'Confiz=123',
disable_password_authentication: false,
- network_interface_card_id: "/subscriptions/#{azure_credentials['subscription_id']}/resourceGroups/TestRG-CustomVM/providers/Microsoft.Network/networkInterfaces/NetInt",
+ network_interface_card_ids: ["/subscriptions/#{azure_credentials['subscription_id']}/resourceGroups/TestRG-CustomVM/providers/Microsoft.Network/networkInterfaces/NetInt"],
platform: 'linux',
vhd_path: 'https://custimagestorage.blob.core.windows.net/newcustomvhd/trusty-server-cloudimg-amd64-disk1-zeeshan.vhd'
)
puts "Created custom image virtual machine: #{custom_image_virtual_machine.name}"