{"action":"created","comment":{"url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/pulls/comments/43735107","id":43735107,"diff_hunk":"@@ -16,18 +16,132 @@\n  */\n \n import com.google.common.io.Resources;\n+import eu.seaclouds.platform.planner.core.HttpHelper;\n import eu.seaclouds.platform.planner.core.Planner;\n+import org.apache.http.HttpEntity;\n+import org.apache.http.HttpResponse;\n+import org.apache.http.NameValuePair;\n+import org.apache.http.client.methods.HttpPost;\n+import org.apache.http.entity.StringEntity;\n+import org.apache.http.impl.client.CloseableHttpClient;\n+import org.apache.http.impl.client.HttpClients;\n+import org.apache.http.util.EntityUtils;\n import org.testng.annotations.Test;\n+import org.yaml.snakeyaml.Yaml;\n+import sun.net.www.http.HttpClient;\n \n import java.io.File;\n+import java.util.ArrayList;\n+import java.util.HashMap;\n+import java.util.Map;\n import java.util.Scanner;\n \n+import static org.testng.AssertJUnit.assertEquals;\n import static org.testng.AssertJUnit.assertNotNull;\n import static org.testng.AssertJUnit.assertTrue;\n \n public class DamGenTests {\n \n     @Test\n+    public void damTranslation() throws Exception{","path":"planner/core/src/test/java/DamGenTests.java","position":31,"original_position":31,"commit_id":"e7269238189e3c6815d311cb1c9fbdce96f73138","original_commit_id":"e7269238189e3c6815d311cb1c9fbdce96f73138","user":{"login":"andreaturli","id":222887,"avatar_url":"https://avatars.githubusercontent.com/u/222887?v=3","gravatar_id":"","url":"https://api.github.com/users/andreaturli","html_url":"https://github.com/andreaturli","followers_url":"https://api.github.com/users/andreaturli/followers","following_url":"https://api.github.com/users/andreaturli/following{/other_user}","gists_url":"https://api.github.com/users/andreaturli/gists{/gist_id}","starred_url":"https://api.github.com/users/andreaturli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreaturli/subscriptions","organizations_url":"https://api.github.com/users/andreaturli/orgs","repos_url":"https://api.github.com/users/andreaturli/repos","events_url":"https://api.github.com/users/andreaturli/events{/privacy}","received_events_url":"https://api.github.com/users/andreaturli/received_events","type":"User","site_admin":false},"body":"Add a javadoc to explain this test","created_at":"2015-11-03T10:53:45Z","updated_at":"2015-11-03T10:53:45Z","html_url":"https://github.com/SeaCloudsEU/SeaCloudsPlatform/pull/139#discussion_r43735107","pull_request_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/pulls/139","_links":{"self":{"href":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/pulls/comments/43735107"},"html":{"href":"https://github.com/SeaCloudsEU/SeaCloudsPlatform/pull/139#discussion_r43735107"},"pull_request":{"href":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/pulls/139"}}},"pull_request":{"url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/pulls/139","id":49530923,"html_url":"https://github.com/SeaCloudsEU/SeaCloudsPlatform/pull/139","diff_url":"https://github.com/SeaCloudsEU/SeaCloudsPlatform/pull/139.diff","patch_url":"https://github.com/SeaCloudsEU/SeaCloudsPlatform/pull/139.patch","issue_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/issues/139","number":139,"state":"open","locked":false,"title":"Feature(Planner): integration of DAM generation and Optimizer service","user":{"login":"szenzaro","id":4067028,"avatar_url":"https://avatars.githubusercontent.com/u/4067028?v=3","gravatar_id":"","url":"https://api.github.com/users/szenzaro","html_url":"https://github.com/szenzaro","followers_url":"https://api.github.com/users/szenzaro/followers","following_url":"https://api.github.com/users/szenzaro/following{/other_user}","gists_url":"https://api.github.com/users/szenzaro/gists{/gist_id}","starred_url":"https://api.github.com/users/szenzaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szenzaro/subscriptions","organizations_url":"https://api.github.com/users/szenzaro/orgs","repos_url":"https://api.github.com/users/szenzaro/repos","events_url":"https://api.github.com/users/szenzaro/events{/privacy}","received_events_url":"https://api.github.com/users/szenzaro/received_events","type":"User","site_admin":false},"body":"@perezp could you please review this?\r\n\r\nThis PR adds dam generation fixes and optimizer integration for the planner.","created_at":"2015-11-03T08:55:06Z","updated_at":"2015-11-03T10:53:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b94f1c35b2b7a51678c071289887328d5b846fb2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/pulls/139/commits","review_comments_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/pulls/139/comments","review_comment_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/issues/139/comments","statuses_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/statuses/e7269238189e3c6815d311cb1c9fbdce96f73138","head":{"label":"szenzaro:feature/plannerservice","ref":"feature/plannerservice","sha":"e7269238189e3c6815d311cb1c9fbdce96f73138","user":{"login":"szenzaro","id":4067028,"avatar_url":"https://avatars.githubusercontent.com/u/4067028?v=3","gravatar_id":"","url":"https://api.github.com/users/szenzaro","html_url":"https://github.com/szenzaro","followers_url":"https://api.github.com/users/szenzaro/followers","following_url":"https://api.github.com/users/szenzaro/following{/other_user}","gists_url":"https://api.github.com/users/szenzaro/gists{/gist_id}","starred_url":"https://api.github.com/users/szenzaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szenzaro/subscriptions","organizations_url":"https://api.github.com/users/szenzaro/orgs","repos_url":"https://api.github.com/users/szenzaro/repos","events_url":"https://api.github.com/users/szenzaro/events{/privacy}","received_events_url":"https://api.github.com/users/szenzaro/received_events","type":"User","site_admin":false},"repo":{"id":42293546,"name":"SeaCloudsPlatform","full_name":"szenzaro/SeaCloudsPlatform","owner":{"login":"szenzaro","id":4067028,"avatar_url":"https://avatars.githubusercontent.com/u/4067028?v=3","gravatar_id":"","url":"https://api.github.com/users/szenzaro","html_url":"https://github.com/szenzaro","followers_url":"https://api.github.com/users/szenzaro/followers","following_url":"https://api.github.com/users/szenzaro/following{/other_user}","gists_url":"https://api.github.com/users/szenzaro/gists{/gist_id}","starred_url":"https://api.github.com/users/szenzaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szenzaro/subscriptions","organizations_url":"https://api.github.com/users/szenzaro/orgs","repos_url":"https://api.github.com/users/szenzaro/repos","events_url":"https://api.github.com/users/szenzaro/events{/privacy}","received_events_url":"https://api.github.com/users/szenzaro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/szenzaro/SeaCloudsPlatform","description":"Seamless adaptive multi-cloud management of service-based applications","fork":true,"url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform","forks_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/forks","keys_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/teams","hooks_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/hooks","issue_events_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/issues/events{/number}","events_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/events","assignees_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/assignees{/user}","branches_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/branches{/branch}","tags_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/tags","blobs_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/git/refs{/sha}","trees_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/statuses/{sha}","languages_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/languages","stargazers_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/stargazers","contributors_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/contributors","subscribers_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/subscribers","subscription_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/subscription","commits_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/commits{/sha}","git_commits_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/git/commits{/sha}","comments_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/comments{/number}","issue_comment_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/issues/comments{/number}","contents_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/contents/{+path}","compare_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/merges","archive_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/downloads","issues_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/issues{/number}","pulls_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/pulls{/number}","milestones_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/milestones{/number}","notifications_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/labels{/name}","releases_url":"https://api.github.com/repos/szenzaro/SeaCloudsPlatform/releases{/id}","created_at":"2015-09-11T07:12:10Z","updated_at":"2015-09-11T07:12:12Z","pushed_at":"2015-11-03T09:07:48Z","git_url":"git://github.com/szenzaro/SeaCloudsPlatform.git","ssh_url":"git@github.com:szenzaro/SeaCloudsPlatform.git","clone_url":"https://github.com/szenzaro/SeaCloudsPlatform.git","svn_url":"https://github.com/szenzaro/SeaCloudsPlatform","homepage":"http://www.seaclouds-project.eu/","size":60618,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SeaCloudsEU:master","ref":"master","sha":"ca604a108ee06b67cdb31c125c78fbb1b10dd3dd","user":{"login":"SeaCloudsEU","id":6222853,"avatar_url":"https://avatars.githubusercontent.com/u/6222853?v=3","gravatar_id":"","url":"https://api.github.com/users/SeaCloudsEU","html_url":"https://github.com/SeaCloudsEU","followers_url":"https://api.github.com/users/SeaCloudsEU/followers","following_url":"https://api.github.com/users/SeaCloudsEU/following{/other_user}","gists_url":"https://api.github.com/users/SeaCloudsEU/gists{/gist_id}","starred_url":"https://api.github.com/users/SeaCloudsEU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeaCloudsEU/subscriptions","organizations_url":"https://api.github.com/users/SeaCloudsEU/orgs","repos_url":"https://api.github.com/users/SeaCloudsEU/repos","events_url":"https://api.github.com/users/SeaCloudsEU/events{/privacy}","received_events_url":"https://api.github.com/users/SeaCloudsEU/received_events","type":"Organization","site_admin":false},"repo":{"id":15312233,"name":"SeaCloudsPlatform","full_name":"SeaCloudsEU/SeaCloudsPlatform","owner":{"login":"SeaCloudsEU","id":6222853,"avatar_url":"https://avatars.githubusercontent.com/u/6222853?v=3","gravatar_id":"","url":"https://api.github.com/users/SeaCloudsEU","html_url":"https://github.com/SeaCloudsEU","followers_url":"https://api.github.com/users/SeaCloudsEU/followers","following_url":"https://api.github.com/users/SeaCloudsEU/following{/other_user}","gists_url":"https://api.github.com/users/SeaCloudsEU/gists{/gist_id}","starred_url":"https://api.github.com/users/SeaCloudsEU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeaCloudsEU/subscriptions","organizations_url":"https://api.github.com/users/SeaCloudsEU/orgs","repos_url":"https://api.github.com/users/SeaCloudsEU/repos","events_url":"https://api.github.com/users/SeaCloudsEU/events{/privacy}","received_events_url":"https://api.github.com/users/SeaCloudsEU/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SeaCloudsEU/SeaCloudsPlatform","description":"Seamless adaptive multi-cloud management of service-based applications","fork":false,"url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform","forks_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/forks","keys_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/teams","hooks_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/hooks","issue_events_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/issues/events{/number}","events_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/events","assignees_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/assignees{/user}","branches_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/branches{/branch}","tags_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/tags","blobs_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/git/refs{/sha}","trees_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/statuses/{sha}","languages_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/languages","stargazers_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/stargazers","contributors_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/contributors","subscribers_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/subscribers","subscription_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/subscription","commits_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/commits{/sha}","git_commits_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/git/commits{/sha}","comments_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/comments{/number}","issue_comment_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/issues/comments{/number}","contents_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/contents/{+path}","compare_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/merges","archive_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/downloads","issues_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/issues{/number}","pulls_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/pulls{/number}","milestones_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/milestones{/number}","notifications_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/labels{/name}","releases_url":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/releases{/id}","created_at":"2013-12-19T13:23:54Z","updated_at":"2015-10-06T08:08:53Z","pushed_at":"2015-11-03T09:07:48Z","git_url":"git://github.com/SeaCloudsEU/SeaCloudsPlatform.git","ssh_url":"git@github.com:SeaCloudsEU/SeaCloudsPlatform.git","clone_url":"https://github.com/SeaCloudsEU/SeaCloudsPlatform.git","svn_url":"https://github.com/SeaCloudsEU/SeaCloudsPlatform","homepage":"http://www.seaclouds-project.eu/","size":123699,"stargazers_count":10,"watchers_count":10,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":9,"forks":16,"open_issues":9,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/pulls/139"},"html":{"href":"https://github.com/SeaCloudsEU/SeaCloudsPlatform/pull/139"},"issue":{"href":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/issues/139"},"comments":{"href":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/SeaCloudsEU/SeaCloudsPlatform/statuses/e7269238189e3c6815d311cb1c9fbdce96f73138"}}}}