test/integration/virtual_machine_extension.rb in fog-azure-rm-temp-0.0.1 vs test/integration/virtual_machine_extension.rb in fog-azure-rm-temp-0.0.2

- 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'], @@ -85,10 +85,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-VME/providers/Microsoft.Network/networkInterfaces/NetInt", + network_interface_card_ids: ["/subscriptions/#{azure_credentials['subscription_id']}/resourceGroups/TestRG-VME/providers/Microsoft.Network/networkInterfaces/NetInt"], publisher: 'MicrosoftWindowsServer', offer: 'WindowsServer', sku: '2008-R2-SP1', version: 'latest', platform: 'Windows'