{"action":"created","comment":{"url":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/comments/47704683","id":47704683,"diff_hunk":"@@ -0,0 +1,115 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one or more\n+ * contributor license agreements.  See the NOTICE file distributed with\n+ * this work for additional information regarding copyright ownership.\n+ * The ASF licenses this file to You under the Apache License, Version 2.0\n+ * (the \"License\"); you may not use this file except in compliance with\n+ * the License.  You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+package org.apache.jclouds.profitbricks.rest.features;\n+\n+import com.squareup.okhttp.mockwebserver.MockResponse;\n+import java.util.List;\n+import org.apache.jclouds.profitbricks.rest.domain.DataCenter;\n+import org.apache.jclouds.profitbricks.rest.domain.Location;\n+import org.apache.jclouds.profitbricks.rest.domain.options.DepthOptions;\n+import org.apache.jclouds.profitbricks.rest.internal.BaseProfitBricksApiMockTest;\n+import static org.testng.Assert.assertEquals;\n+import static org.testng.Assert.assertNotNull;\n+import static org.testng.Assert.assertTrue;\n+import org.testng.annotations.Test;\n+\n+@Test(groups = \"unit\", testName = \"DataCenterApiMockTest\", singleThreaded = true)\n+public class DataCenterApiMockTest extends BaseProfitBricksApiMockTest {\n+   \n+   @Test\n+   public void testGetList() {\n+      server.enqueue(\n+         new MockResponse().setBody(stringFromResource(\"/datacenter/list.json\"))\n+      );\n+      \n+      List<DataCenter> list = dataCenterApi().list(new DepthOptions().depth(1));\n+      \n+      assertNotNull(list);\n+      assertEquals(list.size(), 3);\n+      assertEquals(list.get(0).properties().name(), \"vea\");","path":"profitbricks-rest/src/test/java/org/apache/jclouds/profitbricks/rest/features/DataCenterApiMockTest.java","position":43,"original_position":43,"commit_id":"6bb08b44e8edd6cd1a55cdf4180b9896ccae3d0d","original_commit_id":"6bb08b44e8edd6cd1a55cdf4180b9896ccae3d0d","user":{"login":"nacx","id":446705,"avatar_url":"https://avatars.githubusercontent.com/u/446705?v=3","gravatar_id":"","url":"https://api.github.com/users/nacx","html_url":"https://github.com/nacx","followers_url":"https://api.github.com/users/nacx/followers","following_url":"https://api.github.com/users/nacx/following{/other_user}","gists_url":"https://api.github.com/users/nacx/gists{/gist_id}","starred_url":"https://api.github.com/users/nacx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nacx/subscriptions","organizations_url":"https://api.github.com/users/nacx/orgs","repos_url":"https://api.github.com/users/nacx/repos","events_url":"https://api.github.com/users/nacx/events{/privacy}","received_events_url":"https://api.github.com/users/nacx/received_events","type":"User","site_admin":false},"body":"You need to verify the recorded request. MockWebServer will return each enqueued request upon *any* request. You need to verify that the generated request is the expected one: expected request uri, method, headers and body.\r\n\r\nThe same must be applied in all methods in this class.","created_at":"2015-12-15T21:54:10Z","updated_at":"2015-12-15T21:54:10Z","html_url":"https://github.com/jclouds/jclouds-labs/pull/225#discussion_r47704683","pull_request_url":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/225","_links":{"self":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/comments/47704683"},"html":{"href":"https://github.com/jclouds/jclouds-labs/pull/225#discussion_r47704683"},"pull_request":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/225"}}},"pull_request":{"url":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/225","id":53395697,"html_url":"https://github.com/jclouds/jclouds-labs/pull/225","diff_url":"https://github.com/jclouds/jclouds-labs/pull/225.diff","patch_url":"https://github.com/jclouds/jclouds-labs/pull/225.patch","issue_url":"https://api.github.com/repos/jclouds/jclouds-labs/issues/225","number":225,"state":"open","locked":false,"title":"Profitbricks REST -  Datacenter ","user":{"login":"jasminSPC","id":8327751,"avatar_url":"https://avatars.githubusercontent.com/u/8327751?v=3","gravatar_id":"","url":"https://api.github.com/users/jasminSPC","html_url":"https://github.com/jasminSPC","followers_url":"https://api.github.com/users/jasminSPC/followers","following_url":"https://api.github.com/users/jasminSPC/following{/other_user}","gists_url":"https://api.github.com/users/jasminSPC/gists{/gist_id}","starred_url":"https://api.github.com/users/jasminSPC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasminSPC/subscriptions","organizations_url":"https://api.github.com/users/jasminSPC/orgs","repos_url":"https://api.github.com/users/jasminSPC/repos","events_url":"https://api.github.com/users/jasminSPC/events{/privacy}","received_events_url":"https://api.github.com/users/jasminSPC/received_events","type":"User","site_admin":false},"body":"Thanks @mirza-spc","created_at":"2015-12-11T14:02:51Z","updated_at":"2015-12-15T21:54:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1137d2fd911ba30f53b14eac727634e0893de194","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/225/commits","review_comments_url":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/225/comments","review_comment_url":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jclouds/jclouds-labs/issues/225/comments","statuses_url":"https://api.github.com/repos/jclouds/jclouds-labs/statuses/6bb08b44e8edd6cd1a55cdf4180b9896ccae3d0d","head":{"label":"StackPointCloud:profitbricks-datacenter-rest","ref":"profitbricks-datacenter-rest","sha":"6bb08b44e8edd6cd1a55cdf4180b9896ccae3d0d","user":{"login":"StackPointCloud","id":7716957,"avatar_url":"https://avatars.githubusercontent.com/u/7716957?v=3","gravatar_id":"","url":"https://api.github.com/users/StackPointCloud","html_url":"https://github.com/StackPointCloud","followers_url":"https://api.github.com/users/StackPointCloud/followers","following_url":"https://api.github.com/users/StackPointCloud/following{/other_user}","gists_url":"https://api.github.com/users/StackPointCloud/gists{/gist_id}","starred_url":"https://api.github.com/users/StackPointCloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackPointCloud/subscriptions","organizations_url":"https://api.github.com/users/StackPointCloud/orgs","repos_url":"https://api.github.com/users/StackPointCloud/repos","events_url":"https://api.github.com/users/StackPointCloud/events{/privacy}","received_events_url":"https://api.github.com/users/StackPointCloud/received_events","type":"Organization","site_admin":false},"repo":{"id":30977988,"name":"jclouds-labs","full_name":"StackPointCloud/jclouds-labs","owner":{"login":"StackPointCloud","id":7716957,"avatar_url":"https://avatars.githubusercontent.com/u/7716957?v=3","gravatar_id":"","url":"https://api.github.com/users/StackPointCloud","html_url":"https://github.com/StackPointCloud","followers_url":"https://api.github.com/users/StackPointCloud/followers","following_url":"https://api.github.com/users/StackPointCloud/following{/other_user}","gists_url":"https://api.github.com/users/StackPointCloud/gists{/gist_id}","starred_url":"https://api.github.com/users/StackPointCloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackPointCloud/subscriptions","organizations_url":"https://api.github.com/users/StackPointCloud/orgs","repos_url":"https://api.github.com/users/StackPointCloud/repos","events_url":"https://api.github.com/users/StackPointCloud/events{/privacy}","received_events_url":"https://api.github.com/users/StackPointCloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StackPointCloud/jclouds-labs","description":"Read-only mirror of ASF Git Repo for jclouds labs","fork":true,"url":"https://api.github.com/repos/StackPointCloud/jclouds-labs","forks_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/forks","keys_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/teams","hooks_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/hooks","issue_events_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/issues/events{/number}","events_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/events","assignees_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/assignees{/user}","branches_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/branches{/branch}","tags_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/tags","blobs_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/git/refs{/sha}","trees_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/statuses/{sha}","languages_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/languages","stargazers_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/stargazers","contributors_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/contributors","subscribers_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/subscribers","subscription_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/subscription","commits_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/commits{/sha}","git_commits_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/git/commits{/sha}","comments_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/comments{/number}","issue_comment_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/issues/comments{/number}","contents_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/contents/{+path}","compare_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/merges","archive_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/downloads","issues_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/issues{/number}","pulls_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/pulls{/number}","milestones_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/milestones{/number}","notifications_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/labels{/name}","releases_url":"https://api.github.com/repos/StackPointCloud/jclouds-labs/releases{/id}","created_at":"2015-02-18T17:50:37Z","updated_at":"2015-03-31T21:37:24Z","pushed_at":"2015-12-14T14:00:09Z","git_url":"git://github.com/StackPointCloud/jclouds-labs.git","ssh_url":"git@github.com:StackPointCloud/jclouds-labs.git","clone_url":"https://github.com/StackPointCloud/jclouds-labs.git","svn_url":"https://github.com/StackPointCloud/jclouds-labs","homepage":null,"size":20485,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jclouds:master","ref":"master","sha":"516db713d993ff0d38b76e048507ce34869aa319","user":{"login":"jclouds","id":108982,"avatar_url":"https://avatars.githubusercontent.com/u/108982?v=3","gravatar_id":"","url":"https://api.github.com/users/jclouds","html_url":"https://github.com/jclouds","followers_url":"https://api.github.com/users/jclouds/followers","following_url":"https://api.github.com/users/jclouds/following{/other_user}","gists_url":"https://api.github.com/users/jclouds/gists{/gist_id}","starred_url":"https://api.github.com/users/jclouds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jclouds/subscriptions","organizations_url":"https://api.github.com/users/jclouds/orgs","repos_url":"https://api.github.com/users/jclouds/repos","events_url":"https://api.github.com/users/jclouds/events{/privacy}","received_events_url":"https://api.github.com/users/jclouds/received_events","type":"Organization","site_admin":false},"repo":{"id":10040970,"name":"jclouds-labs","full_name":"jclouds/jclouds-labs","owner":{"login":"jclouds","id":108982,"avatar_url":"https://avatars.githubusercontent.com/u/108982?v=3","gravatar_id":"","url":"https://api.github.com/users/jclouds","html_url":"https://github.com/jclouds","followers_url":"https://api.github.com/users/jclouds/followers","following_url":"https://api.github.com/users/jclouds/following{/other_user}","gists_url":"https://api.github.com/users/jclouds/gists{/gist_id}","starred_url":"https://api.github.com/users/jclouds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jclouds/subscriptions","organizations_url":"https://api.github.com/users/jclouds/orgs","repos_url":"https://api.github.com/users/jclouds/repos","events_url":"https://api.github.com/users/jclouds/events{/privacy}","received_events_url":"https://api.github.com/users/jclouds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jclouds/jclouds-labs","description":"Read-only mirror of ASF Git Repo for jclouds labs","fork":false,"url":"https://api.github.com/repos/jclouds/jclouds-labs","forks_url":"https://api.github.com/repos/jclouds/jclouds-labs/forks","keys_url":"https://api.github.com/repos/jclouds/jclouds-labs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jclouds/jclouds-labs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jclouds/jclouds-labs/teams","hooks_url":"https://api.github.com/repos/jclouds/jclouds-labs/hooks","issue_events_url":"https://api.github.com/repos/jclouds/jclouds-labs/issues/events{/number}","events_url":"https://api.github.com/repos/jclouds/jclouds-labs/events","assignees_url":"https://api.github.com/repos/jclouds/jclouds-labs/assignees{/user}","branches_url":"https://api.github.com/repos/jclouds/jclouds-labs/branches{/branch}","tags_url":"https://api.github.com/repos/jclouds/jclouds-labs/tags","blobs_url":"https://api.github.com/repos/jclouds/jclouds-labs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jclouds/jclouds-labs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jclouds/jclouds-labs/git/refs{/sha}","trees_url":"https://api.github.com/repos/jclouds/jclouds-labs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jclouds/jclouds-labs/statuses/{sha}","languages_url":"https://api.github.com/repos/jclouds/jclouds-labs/languages","stargazers_url":"https://api.github.com/repos/jclouds/jclouds-labs/stargazers","contributors_url":"https://api.github.com/repos/jclouds/jclouds-labs/contributors","subscribers_url":"https://api.github.com/repos/jclouds/jclouds-labs/subscribers","subscription_url":"https://api.github.com/repos/jclouds/jclouds-labs/subscription","commits_url":"https://api.github.com/repos/jclouds/jclouds-labs/commits{/sha}","git_commits_url":"https://api.github.com/repos/jclouds/jclouds-labs/git/commits{/sha}","comments_url":"https://api.github.com/repos/jclouds/jclouds-labs/comments{/number}","issue_comment_url":"https://api.github.com/repos/jclouds/jclouds-labs/issues/comments{/number}","contents_url":"https://api.github.com/repos/jclouds/jclouds-labs/contents/{+path}","compare_url":"https://api.github.com/repos/jclouds/jclouds-labs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jclouds/jclouds-labs/merges","archive_url":"https://api.github.com/repos/jclouds/jclouds-labs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jclouds/jclouds-labs/downloads","issues_url":"https://api.github.com/repos/jclouds/jclouds-labs/issues{/number}","pulls_url":"https://api.github.com/repos/jclouds/jclouds-labs/pulls{/number}","milestones_url":"https://api.github.com/repos/jclouds/jclouds-labs/milestones{/number}","notifications_url":"https://api.github.com/repos/jclouds/jclouds-labs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jclouds/jclouds-labs/labels{/name}","releases_url":"https://api.github.com/repos/jclouds/jclouds-labs/releases{/id}","created_at":"2013-05-13T20:47:47Z","updated_at":"2015-12-11T00:07:53Z","pushed_at":"2015-12-15T08:32:50Z","git_url":"git://github.com/jclouds/jclouds-labs.git","ssh_url":"git@github.com:jclouds/jclouds-labs.git","clone_url":"https://github.com/jclouds/jclouds-labs.git","svn_url":"https://github.com/jclouds/jclouds-labs","homepage":null,"size":23504,"stargazers_count":26,"watchers_count":26,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":74,"mirror_url":null,"open_issues_count":7,"forks":74,"open_issues":7,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/225"},"html":{"href":"https://github.com/jclouds/jclouds-labs/pull/225"},"issue":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/issues/225"},"comments":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/issues/225/comments"},"review_comments":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/225/comments"},"review_comment":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/pulls/225/commits"},"statuses":{"href":"https://api.github.com/repos/jclouds/jclouds-labs/statuses/6bb08b44e8edd6cd1a55cdf4180b9896ccae3d0d"}}}}