{"action":"created","comment":{"url":"https://api.github.com/repos/fog/fog-azure-rm/pulls/comments/70260266","id":70260266,"diff_hunk":"@@ -0,0 +1,120 @@\n+require 'fog/azurerm'\n+require 'yaml'\n+\n+########################################################################################################################\n+######################                   Services object required by all actions                  ######################\n+######################                              Keep it Uncommented!                          ######################\n+########################################################################################################################\n+\n+azureCredentials = YAML.load_file('credentials/azure.yml')\n+\n+rs = Fog::Resources::AzureRM.new(\n+    tenant_id: azureCredentials['tenant_id'],\n+    client_id: azureCredentials['client_id'],\n+    client_secret: azureCredentials['client_secret'],\n+    subscription_id: azureCredentials['subscription_id']\n+)\n+\n+network = Fog::Network::AzureRM.new(\n+    tenant_id: azureCredentials['tenant_id'],\n+    client_id: azureCredentials['client_id'],\n+    client_secret: azureCredentials['client_secret'],\n+    subscription_id: azureCredentials['subscription_id']\n+)\n+\n+########################################################################################################################\n+######################                                 Prerequisites                              ######################\n+########################################################################################################################\n+\n+rg = rs.resource_groups.create(\n+    :name => 'TestRG-LB',\n+    :location => 'westus'\n+)\n+\n+vnet = network.virtual_networks.create(\n+    name:             'testVnet',\n+    location:         'westus',\n+    resource_group:   'TestRG-LB',\n+    network_address_list:  '10.1.0.0/16,10.2.0.0/16'\n+)\n+\n+subnet = network.subnets.create(\n+    name: 'mysubnet',\n+    resource_group: 'TestRG-LB',\n+    virtual_network_name: 'testVnet',\n+    address_prefix: '10.1.0.0/24'\n+)\n+\n+pubip = network.public_ips.create(\n+    name: 'mypubip',","path":"integration/load_balancer.rb","position":49,"original_position":49,"commit_id":"37a05bf53379fd4ba558b9538a4fbd67fb7c493b","original_commit_id":"37a05bf53379fd4ba558b9538a4fbd67fb7c493b","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Indent the first parameter one step more than the start of the previous line.","created_at":"2016-07-11T13:49:22Z","updated_at":"2016-07-11T13:49:22Z","html_url":"https://github.com/fog/fog-azure-rm/pull/81#discussion_r70260266","pull_request_url":"https://api.github.com/repos/fog/fog-azure-rm/pulls/81","_links":{"self":{"href":"https://api.github.com/repos/fog/fog-azure-rm/pulls/comments/70260266"},"html":{"href":"https://github.com/fog/fog-azure-rm/pull/81#discussion_r70260266"},"pull_request":{"href":"https://api.github.com/repos/fog/fog-azure-rm/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/fog/fog-azure-rm/pulls/81","id":76159769,"html_url":"https://github.com/fog/fog-azure-rm/pull/81","diff_url":"https://github.com/fog/fog-azure-rm/pull/81.diff","patch_url":"https://github.com/fog/fog-azure-rm/pull/81.patch","issue_url":"https://api.github.com/repos/fog/fog-azure-rm/issues/81","number":81,"state":"open","locked":false,"title":"Feature/integration tests","user":{"login":"adnan-khalil-confiz","id":13016039,"avatar_url":"https://avatars.githubusercontent.com/u/13016039?v=3","gravatar_id":"","url":"https://api.github.com/users/adnan-khalil-confiz","html_url":"https://github.com/adnan-khalil-confiz","followers_url":"https://api.github.com/users/adnan-khalil-confiz/followers","following_url":"https://api.github.com/users/adnan-khalil-confiz/following{/other_user}","gists_url":"https://api.github.com/users/adnan-khalil-confiz/gists{/gist_id}","starred_url":"https://api.github.com/users/adnan-khalil-confiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adnan-khalil-confiz/subscriptions","organizations_url":"https://api.github.com/users/adnan-khalil-confiz/orgs","repos_url":"https://api.github.com/users/adnan-khalil-confiz/repos","events_url":"https://api.github.com/users/adnan-khalil-confiz/events{/privacy}","received_events_url":"https://api.github.com/users/adnan-khalil-confiz/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-04T12:55:20Z","updated_at":"2016-07-11T13:49:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86639393421f6e3772f489e66ac2dab612adc68d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fog/fog-azure-rm/pulls/81/commits","review_comments_url":"https://api.github.com/repos/fog/fog-azure-rm/pulls/81/comments","review_comment_url":"https://api.github.com/repos/fog/fog-azure-rm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fog/fog-azure-rm/issues/81/comments","statuses_url":"https://api.github.com/repos/fog/fog-azure-rm/statuses/37a05bf53379fd4ba558b9538a4fbd67fb7c493b","head":{"label":"fog:feature/integration_tests","ref":"feature/integration_tests","sha":"37a05bf53379fd4ba558b9538a4fbd67fb7c493b","user":{"login":"fog","id":991149,"avatar_url":"https://avatars.githubusercontent.com/u/991149?v=3","gravatar_id":"","url":"https://api.github.com/users/fog","html_url":"https://github.com/fog","followers_url":"https://api.github.com/users/fog/followers","following_url":"https://api.github.com/users/fog/following{/other_user}","gists_url":"https://api.github.com/users/fog/gists{/gist_id}","starred_url":"https://api.github.com/users/fog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fog/subscriptions","organizations_url":"https://api.github.com/users/fog/orgs","repos_url":"https://api.github.com/users/fog/repos","events_url":"https://api.github.com/users/fog/events{/privacy}","received_events_url":"https://api.github.com/users/fog/received_events","type":"Organization","site_admin":false},"repo":{"id":54466250,"name":"fog-azure-rm","full_name":"fog/fog-azure-rm","owner":{"login":"fog","id":991149,"avatar_url":"https://avatars.githubusercontent.com/u/991149?v=3","gravatar_id":"","url":"https://api.github.com/users/fog","html_url":"https://github.com/fog","followers_url":"https://api.github.com/users/fog/followers","following_url":"https://api.github.com/users/fog/following{/other_user}","gists_url":"https://api.github.com/users/fog/gists{/gist_id}","starred_url":"https://api.github.com/users/fog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fog/subscriptions","organizations_url":"https://api.github.com/users/fog/orgs","repos_url":"https://api.github.com/users/fog/repos","events_url":"https://api.github.com/users/fog/events{/privacy}","received_events_url":"https://api.github.com/users/fog/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fog/fog-azure-rm","description":"","fork":false,"url":"https://api.github.com/repos/fog/fog-azure-rm","forks_url":"https://api.github.com/repos/fog/fog-azure-rm/forks","keys_url":"https://api.github.com/repos/fog/fog-azure-rm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fog/fog-azure-rm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fog/fog-azure-rm/teams","hooks_url":"https://api.github.com/repos/fog/fog-azure-rm/hooks","issue_events_url":"https://api.github.com/repos/fog/fog-azure-rm/issues/events{/number}","events_url":"https://api.github.com/repos/fog/fog-azure-rm/events","assignees_url":"https://api.github.com/repos/fog/fog-azure-rm/assignees{/user}","branches_url":"https://api.github.com/repos/fog/fog-azure-rm/branches{/branch}","tags_url":"https://api.github.com/repos/fog/fog-azure-rm/tags","blobs_url":"https://api.github.com/repos/fog/fog-azure-rm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fog/fog-azure-rm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fog/fog-azure-rm/git/refs{/sha}","trees_url":"https://api.github.com/repos/fog/fog-azure-rm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fog/fog-azure-rm/statuses/{sha}","languages_url":"https://api.github.com/repos/fog/fog-azure-rm/languages","stargazers_url":"https://api.github.com/repos/fog/fog-azure-rm/stargazers","contributors_url":"https://api.github.com/repos/fog/fog-azure-rm/contributors","subscribers_url":"https://api.github.com/repos/fog/fog-azure-rm/subscribers","subscription_url":"https://api.github.com/repos/fog/fog-azure-rm/subscription","commits_url":"https://api.github.com/repos/fog/fog-azure-rm/commits{/sha}","git_commits_url":"https://api.github.com/repos/fog/fog-azure-rm/git/commits{/sha}","comments_url":"https://api.github.com/repos/fog/fog-azure-rm/comments{/number}","issue_comment_url":"https://api.github.com/repos/fog/fog-azure-rm/issues/comments{/number}","contents_url":"https://api.github.com/repos/fog/fog-azure-rm/contents/{+path}","compare_url":"https://api.github.com/repos/fog/fog-azure-rm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fog/fog-azure-rm/merges","archive_url":"https://api.github.com/repos/fog/fog-azure-rm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fog/fog-azure-rm/downloads","issues_url":"https://api.github.com/repos/fog/fog-azure-rm/issues{/number}","pulls_url":"https://api.github.com/repos/fog/fog-azure-rm/pulls{/number}","milestones_url":"https://api.github.com/repos/fog/fog-azure-rm/milestones{/number}","notifications_url":"https://api.github.com/repos/fog/fog-azure-rm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fog/fog-azure-rm/labels{/name}","releases_url":"https://api.github.com/repos/fog/fog-azure-rm/releases{/id}","deployments_url":"https://api.github.com/repos/fog/fog-azure-rm/deployments","created_at":"2016-03-22T10:26:42Z","updated_at":"2016-06-22T22:00:13Z","pushed_at":"2016-07-11T13:49:03Z","git_url":"git://github.com/fog/fog-azure-rm.git","ssh_url":"git@github.com:fog/fog-azure-rm.git","clone_url":"https://github.com/fog/fog-azure-rm.git","svn_url":"https://github.com/fog/fog-azure-rm","homepage":null,"size":569,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":7,"forks":6,"open_issues":7,"watchers":8,"default_branch":"master"}},"base":{"label":"fog:master","ref":"master","sha":"065c31b1e11076a7d91222322a6dc191d86cdec1","user":{"login":"fog","id":991149,"avatar_url":"https://avatars.githubusercontent.com/u/991149?v=3","gravatar_id":"","url":"https://api.github.com/users/fog","html_url":"https://github.com/fog","followers_url":"https://api.github.com/users/fog/followers","following_url":"https://api.github.com/users/fog/following{/other_user}","gists_url":"https://api.github.com/users/fog/gists{/gist_id}","starred_url":"https://api.github.com/users/fog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fog/subscriptions","organizations_url":"https://api.github.com/users/fog/orgs","repos_url":"https://api.github.com/users/fog/repos","events_url":"https://api.github.com/users/fog/events{/privacy}","received_events_url":"https://api.github.com/users/fog/received_events","type":"Organization","site_admin":false},"repo":{"id":54466250,"name":"fog-azure-rm","full_name":"fog/fog-azure-rm","owner":{"login":"fog","id":991149,"avatar_url":"https://avatars.githubusercontent.com/u/991149?v=3","gravatar_id":"","url":"https://api.github.com/users/fog","html_url":"https://github.com/fog","followers_url":"https://api.github.com/users/fog/followers","following_url":"https://api.github.com/users/fog/following{/other_user}","gists_url":"https://api.github.com/users/fog/gists{/gist_id}","starred_url":"https://api.github.com/users/fog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fog/subscriptions","organizations_url":"https://api.github.com/users/fog/orgs","repos_url":"https://api.github.com/users/fog/repos","events_url":"https://api.github.com/users/fog/events{/privacy}","received_events_url":"https://api.github.com/users/fog/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fog/fog-azure-rm","description":"","fork":false,"url":"https://api.github.com/repos/fog/fog-azure-rm","forks_url":"https://api.github.com/repos/fog/fog-azure-rm/forks","keys_url":"https://api.github.com/repos/fog/fog-azure-rm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fog/fog-azure-rm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fog/fog-azure-rm/teams","hooks_url":"https://api.github.com/repos/fog/fog-azure-rm/hooks","issue_events_url":"https://api.github.com/repos/fog/fog-azure-rm/issues/events{/number}","events_url":"https://api.github.com/repos/fog/fog-azure-rm/events","assignees_url":"https://api.github.com/repos/fog/fog-azure-rm/assignees{/user}","branches_url":"https://api.github.com/repos/fog/fog-azure-rm/branches{/branch}","tags_url":"https://api.github.com/repos/fog/fog-azure-rm/tags","blobs_url":"https://api.github.com/repos/fog/fog-azure-rm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fog/fog-azure-rm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fog/fog-azure-rm/git/refs{/sha}","trees_url":"https://api.github.com/repos/fog/fog-azure-rm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fog/fog-azure-rm/statuses/{sha}","languages_url":"https://api.github.com/repos/fog/fog-azure-rm/languages","stargazers_url":"https://api.github.com/repos/fog/fog-azure-rm/stargazers","contributors_url":"https://api.github.com/repos/fog/fog-azure-rm/contributors","subscribers_url":"https://api.github.com/repos/fog/fog-azure-rm/subscribers","subscription_url":"https://api.github.com/repos/fog/fog-azure-rm/subscription","commits_url":"https://api.github.com/repos/fog/fog-azure-rm/commits{/sha}","git_commits_url":"https://api.github.com/repos/fog/fog-azure-rm/git/commits{/sha}","comments_url":"https://api.github.com/repos/fog/fog-azure-rm/comments{/number}","issue_comment_url":"https://api.github.com/repos/fog/fog-azure-rm/issues/comments{/number}","contents_url":"https://api.github.com/repos/fog/fog-azure-rm/contents/{+path}","compare_url":"https://api.github.com/repos/fog/fog-azure-rm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fog/fog-azure-rm/merges","archive_url":"https://api.github.com/repos/fog/fog-azure-rm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fog/fog-azure-rm/downloads","issues_url":"https://api.github.com/repos/fog/fog-azure-rm/issues{/number}","pulls_url":"https://api.github.com/repos/fog/fog-azure-rm/pulls{/number}","milestones_url":"https://api.github.com/repos/fog/fog-azure-rm/milestones{/number}","notifications_url":"https://api.github.com/repos/fog/fog-azure-rm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fog/fog-azure-rm/labels{/name}","releases_url":"https://api.github.com/repos/fog/fog-azure-rm/releases{/id}","deployments_url":"https://api.github.com/repos/fog/fog-azure-rm/deployments","created_at":"2016-03-22T10:26:42Z","updated_at":"2016-06-22T22:00:13Z","pushed_at":"2016-07-11T13:49:03Z","git_url":"git://github.com/fog/fog-azure-rm.git","ssh_url":"git@github.com:fog/fog-azure-rm.git","clone_url":"https://github.com/fog/fog-azure-rm.git","svn_url":"https://github.com/fog/fog-azure-rm","homepage":null,"size":569,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":7,"forks":6,"open_issues":7,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fog/fog-azure-rm/pulls/81"},"html":{"href":"https://github.com/fog/fog-azure-rm/pull/81"},"issue":{"href":"https://api.github.com/repos/fog/fog-azure-rm/issues/81"},"comments":{"href":"https://api.github.com/repos/fog/fog-azure-rm/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/fog/fog-azure-rm/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/fog/fog-azure-rm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fog/fog-azure-rm/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/fog/fog-azure-rm/statuses/37a05bf53379fd4ba558b9538a4fbd67fb7c493b"}}}}
{"actor":{"display_login":"houndci-bot"}}