Skip to content

Commit

Permalink
Updated credentials path in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bilal-naeem-confiz committed Sep 22, 2017
1 parent da1b6a5 commit 9a503f6
Show file tree
Hide file tree
Showing 32 changed files with 32 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def destroy

def update(profile_params)
validate_input(profile_params)
profile_params[:endpoints] = endpoints.map { |endpoint| get_hash_from_object(endpoint)['attributes'] } unless profile_params[:endpoints].nil?
profile_params[:endpoints] = endpoints.map { |endpoint| get_hash_from_object(endpoint)['attributes'] } unless endpoints.nil?
merge_attributes(profile_params)
profile = service.create_or_update_traffic_manager_profile(traffic_manager_profile_hash)
merge_attributes(Fog::TrafficManager::AzureRM::TrafficManagerProfile.parse(profile))
Expand Down
2 changes: 1 addition & 1 deletion test/integration/application_gateway.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### Keep it Uncommented! ######################
########################################################################################################################

azure_credentials = YAML.load_file('credentials/azure.yml')
azure_credentials = YAML.load_file(File.expand_path('credentials/azure.yml', __dir__))

resource = Fog::Resources::AzureRM.new(
tenant_id: azure_credentials['tenant_id'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/availability_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/blob.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/data_disk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/deployment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### Keep it Uncommented! ######################
########################################################################################################################

azure_credentials = YAML.load_file('credentials/azure.yml')
azure_credentials = YAML.load_file(File.expand_path('credentials/azure.yml', __dir__))

resources = Fog::Resources::AzureRM.new(
tenant_id: azure_credentials['tenant_id'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/express_route_circuit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### Keep it Uncommented! ######################
########################################################################################################################

azure_credentials = YAML.load_file('credentials/azure.yml')
azure_credentials = YAML.load_file(File.expand_path('credentials/azure.yml', __dir__))

resources = Fog::Resources::AzureRM.new(
tenant_id: azure_credentials['tenant_id'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/external_load_balancer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/internal_load_balancer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/key_vault.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### Keep it Uncommented! ######################
########################################################################################################################

azure_credentials = YAML.load_file('credentials/azure.yml')
azure_credentials = YAML.load_file(File.expand_path('credentials/azure.yml', __dir__))

resources = Fog::Resources::AzureRM.new(
tenant_id: azure_credentials['tenant_id'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/local_network_gateway.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### Keep it Uncommented! ######################
########################################################################################################################

azure_credentials = YAML.load_file('credentials/azure.yml')
azure_credentials = YAML.load_file(File.expand_path('credentials/azure.yml', __dir__))

resource = Fog::Resources::AzureRM.new(
tenant_id: azure_credentials['tenant_id'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/managed_disk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/network_interface.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/network_security_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/network_security_rule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/public_ip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/record_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### Keep it Uncommented! ######################
########################################################################################################################

azure_credentials = YAML.load_file('credentials/azure.yml')
azure_credentials = YAML.load_file(File.expand_path('credentials/azure.yml', __dir__))

resource = Fog::Resources::AzureRM.new(
tenant_id: azure_credentials['tenant_id'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/resource_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### Keep it Uncommented! ######################
########################################################################################################################

azure_credentials = YAML.load_file('credentials/azure.yml')
azure_credentials = YAML.load_file(File.expand_path('credentials/azure.yml', __dir__))

resource = Fog::Resources::AzureRM.new(
tenant_id: azure_credentials['tenant_id'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/resource_tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### Keep it Uncommented! ######################
########################################################################################################################

azure_credentials = YAML.load_file('credentials/azure.yml')
azure_credentials = YAML.load_file(File.expand_path('credentials/azure.yml', __dir__))

resources = Fog::Resources::AzureRM.new(
tenant_id: azure_credentials['tenant_id'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/server_custom_image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/sql_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### Keep it Uncommented! ######################
########################################################################################################################

azure_credentials = YAML.load_file('credentials/azure.yml')
azure_credentials = YAML.load_file(File.expand_path('credentials/azure.yml', __dir__))

resources = Fog::Resources::AzureRM.new(
tenant_id: azure_credentials['tenant_id'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/storage_account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/subnet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/traffic_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### Keep it Uncommented! ######################
########################################################################################################################

azure_credentials = YAML.load_file('credentials/azure.yml')
azure_credentials = YAML.load_file(File.expand_path('credentials/azure.yml', __dir__))

resources = Fog::Resources::AzureRM.new(
tenant_id: azure_credentials['tenant_id'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/virtual_machine_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/virtual_network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/virtual_network_gateway.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### Keep it Uncommented! ######################
########################################################################################################################

azure_credentials = YAML.load_file('credentials/azure.yml')
azure_credentials = YAML.load_file(File.expand_path('credentials/azure.yml', __dir__))

resource = Fog::Resources::AzureRM.new(
tenant_id: azure_credentials['tenant_id'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/virtual_network_gateway_connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### Keep it Uncommented! ######################
########################################################################################################################

azure_credentials = YAML.load_file('credentials/azure.yml')
azure_credentials = YAML.load_file(File.expand_path('credentials/azure.yml', __dir__))

resource = Fog::Resources::AzureRM.new(
tenant_id: azure_credentials['tenant_id'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### Keep it Uncommented! ######################
########################################################################################################################

azure_credentials = YAML.load_file('credentials/azure.yml')
azure_credentials = YAML.load_file(File.expand_path('credentials/azure.yml', __dir__))

resource = Fog::Resources::AzureRM.new(
tenant_id: azure_credentials['tenant_id'],
Expand Down
2 changes: 1 addition & 1 deletion test/integration/zone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
###################### 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'],
Expand Down

0 comments on commit 9a503f6

Please sign in to comment.