{"action":"created","comment":{"url":"https://api.github.com/repos/jclouds/jclouds/pulls/comments/85667675","pull_request_review_id":6370065,"id":85667675,"diff_hunk":"@@ -0,0 +1,67 @@\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.jclouds.aws.ec2.features;\n+\n+import static org.testng.Assert.assertFalse;\n+import static org.testng.Assert.assertNotNull;\n+import static org.testng.Assert.assertTrue;\n+\n+import org.jclouds.aws.ec2.domain.VPC;\n+import org.jclouds.aws.ec2.internal.BaseAWSEC2ApiMockTest;\n+import org.jclouds.aws.ec2.options.CreateVpcOptions;\n+import org.testng.annotations.Test;\n+\n+import com.google.common.collect.FluentIterable;\n+\n+@Test(groups = \"unit\", testName = \"VPCApiMockTest\", singleThreaded = true)\n+public class VPCApiMockTest extends BaseAWSEC2ApiMockTest {\n+\n+   public void create() throws Exception {\n+      enqueueRegions(DEFAULT_REGION);\n+      enqueueXml(DEFAULT_REGION, \"/create_vpc.xml\");\n+      VPC result = vpcApi().createVpc(DEFAULT_REGION, \"10.0.0.0/16\", CreateVpcOptions.NONE);\n+\n+      assertNotNull(result);\n+      \n+      assertPosted(DEFAULT_REGION, \"Action=DescribeRegions\");\n+      assertPosted(DEFAULT_REGION, \"Action=CreateVpc&CidrBlock=10.0.0.0/16\");\n+   }\n+   \n+   public void describeVpcsInRegion() throws Exception {\n+      enqueueRegions(DEFAULT_REGION);\n+      enqueueXml(DEFAULT_REGION, \"/describe_vpcs.xml\");\n+      FluentIterable<VPC> result = vpcApi().describeVpcsInRegion(DEFAULT_REGION);\n+\n+      assertFalse(result.isEmpty());\n+      assertPosted(DEFAULT_REGION, \"Action=DescribeRegions\");\n+      assertPosted(DEFAULT_REGION, \"Action=DescribeVpcs\");\n+   }","path":"providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/features/VPCApiMockTest.java","position":52,"original_position":52,"commit_id":"55c205a2c08959e97ce079f9c2f2d901d57ea524","original_commit_id":"55c205a2c08959e97ce079f9c2f2d901d57ea524","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":"Add tests to exercise all defined fallbacks.","created_at":"2016-10-30T19:56:05Z","updated_at":"2016-10-30T19:57:04Z","html_url":"https://github.com/jclouds/jclouds/pull/1032#discussion_r85667675","pull_request_url":"https://api.github.com/repos/jclouds/jclouds/pulls/1032","_links":{"self":{"href":"https://api.github.com/repos/jclouds/jclouds/pulls/comments/85667675"},"html":{"href":"https://github.com/jclouds/jclouds/pull/1032#discussion_r85667675"},"pull_request":{"href":"https://api.github.com/repos/jclouds/jclouds/pulls/1032"}}},"pull_request":{"url":"https://api.github.com/repos/jclouds/jclouds/pulls/1032","id":91487833,"html_url":"https://github.com/jclouds/jclouds/pull/1032","diff_url":"https://github.com/jclouds/jclouds/pull/1032.diff","patch_url":"https://github.com/jclouds/jclouds/pull/1032.patch","issue_url":"https://api.github.com/repos/jclouds/jclouds/issues/1032","number":1032,"state":"open","locked":false,"title":"[aws-ec2] Add CRUD for VPC","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":"/cc @nacx ","created_at":"2016-10-29T12:31:22Z","updated_at":"2016-10-30T19:57:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a27defabb909a467a3d66e0b43a55761f703823","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jclouds/jclouds/pulls/1032/commits","review_comments_url":"https://api.github.com/repos/jclouds/jclouds/pulls/1032/comments","review_comment_url":"https://api.github.com/repos/jclouds/jclouds/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jclouds/jclouds/issues/1032/comments","statuses_url":"https://api.github.com/repos/jclouds/jclouds/statuses/55c205a2c08959e97ce079f9c2f2d901d57ea524","head":{"label":"andreaturli:feature/aws-ec2-vpc","ref":"feature/aws-ec2-vpc","sha":"55c205a2c08959e97ce079f9c2f2d901d57ea524","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},"repo":{"id":11770834,"name":"jclouds","full_name":"andreaturli/jclouds","owner":{"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},"private":false,"html_url":"https://github.com/andreaturli/jclouds","description":"Read-only mirror of ASF Git Repo for jclouds","fork":true,"url":"https://api.github.com/repos/andreaturli/jclouds","forks_url":"https://api.github.com/repos/andreaturli/jclouds/forks","keys_url":"https://api.github.com/repos/andreaturli/jclouds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreaturli/jclouds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreaturli/jclouds/teams","hooks_url":"https://api.github.com/repos/andreaturli/jclouds/hooks","issue_events_url":"https://api.github.com/repos/andreaturli/jclouds/issues/events{/number}","events_url":"https://api.github.com/repos/andreaturli/jclouds/events","assignees_url":"https://api.github.com/repos/andreaturli/jclouds/assignees{/user}","branches_url":"https://api.github.com/repos/andreaturli/jclouds/branches{/branch}","tags_url":"https://api.github.com/repos/andreaturli/jclouds/tags","blobs_url":"https://api.github.com/repos/andreaturli/jclouds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreaturli/jclouds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreaturli/jclouds/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreaturli/jclouds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreaturli/jclouds/statuses/{sha}","languages_url":"https://api.github.com/repos/andreaturli/jclouds/languages","stargazers_url":"https://api.github.com/repos/andreaturli/jclouds/stargazers","contributors_url":"https://api.github.com/repos/andreaturli/jclouds/contributors","subscribers_url":"https://api.github.com/repos/andreaturli/jclouds/subscribers","subscription_url":"https://api.github.com/repos/andreaturli/jclouds/subscription","commits_url":"https://api.github.com/repos/andreaturli/jclouds/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreaturli/jclouds/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreaturli/jclouds/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreaturli/jclouds/issues/comments{/number}","contents_url":"https://api.github.com/repos/andreaturli/jclouds/contents/{+path}","compare_url":"https://api.github.com/repos/andreaturli/jclouds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreaturli/jclouds/merges","archive_url":"https://api.github.com/repos/andreaturli/jclouds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreaturli/jclouds/downloads","issues_url":"https://api.github.com/repos/andreaturli/jclouds/issues{/number}","pulls_url":"https://api.github.com/repos/andreaturli/jclouds/pulls{/number}","milestones_url":"https://api.github.com/repos/andreaturli/jclouds/milestones{/number}","notifications_url":"https://api.github.com/repos/andreaturli/jclouds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreaturli/jclouds/labels{/name}","releases_url":"https://api.github.com/repos/andreaturli/jclouds/releases{/id}","deployments_url":"https://api.github.com/repos/andreaturli/jclouds/deployments","created_at":"2013-07-30T17:20:40Z","updated_at":"2016-10-28T15:30:26Z","pushed_at":"2016-10-29T12:30:26Z","git_url":"git://github.com/andreaturli/jclouds.git","ssh_url":"git@github.com:andreaturli/jclouds.git","clone_url":"https://github.com/andreaturli/jclouds.git","svn_url":"https://github.com/andreaturli/jclouds","homepage":null,"size":86495,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"jclouds:master","ref":"master","sha":"9b3e6d91bff99b39699a333eec798d1f2cd5cded","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":10040960,"name":"jclouds","full_name":"jclouds/jclouds","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","description":"Read-only mirror of ASF Git Repo for jclouds","fork":false,"url":"https://api.github.com/repos/jclouds/jclouds","forks_url":"https://api.github.com/repos/jclouds/jclouds/forks","keys_url":"https://api.github.com/repos/jclouds/jclouds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jclouds/jclouds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jclouds/jclouds/teams","hooks_url":"https://api.github.com/repos/jclouds/jclouds/hooks","issue_events_url":"https://api.github.com/repos/jclouds/jclouds/issues/events{/number}","events_url":"https://api.github.com/repos/jclouds/jclouds/events","assignees_url":"https://api.github.com/repos/jclouds/jclouds/assignees{/user}","branches_url":"https://api.github.com/repos/jclouds/jclouds/branches{/branch}","tags_url":"https://api.github.com/repos/jclouds/jclouds/tags","blobs_url":"https://api.github.com/repos/jclouds/jclouds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jclouds/jclouds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jclouds/jclouds/git/refs{/sha}","trees_url":"https://api.github.com/repos/jclouds/jclouds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jclouds/jclouds/statuses/{sha}","languages_url":"https://api.github.com/repos/jclouds/jclouds/languages","stargazers_url":"https://api.github.com/repos/jclouds/jclouds/stargazers","contributors_url":"https://api.github.com/repos/jclouds/jclouds/contributors","subscribers_url":"https://api.github.com/repos/jclouds/jclouds/subscribers","subscription_url":"https://api.github.com/repos/jclouds/jclouds/subscription","commits_url":"https://api.github.com/repos/jclouds/jclouds/commits{/sha}","git_commits_url":"https://api.github.com/repos/jclouds/jclouds/git/commits{/sha}","comments_url":"https://api.github.com/repos/jclouds/jclouds/comments{/number}","issue_comment_url":"https://api.github.com/repos/jclouds/jclouds/issues/comments{/number}","contents_url":"https://api.github.com/repos/jclouds/jclouds/contents/{+path}","compare_url":"https://api.github.com/repos/jclouds/jclouds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jclouds/jclouds/merges","archive_url":"https://api.github.com/repos/jclouds/jclouds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jclouds/jclouds/downloads","issues_url":"https://api.github.com/repos/jclouds/jclouds/issues{/number}","pulls_url":"https://api.github.com/repos/jclouds/jclouds/pulls{/number}","milestones_url":"https://api.github.com/repos/jclouds/jclouds/milestones{/number}","notifications_url":"https://api.github.com/repos/jclouds/jclouds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jclouds/jclouds/labels{/name}","releases_url":"https://api.github.com/repos/jclouds/jclouds/releases{/id}","deployments_url":"https://api.github.com/repos/jclouds/jclouds/deployments","created_at":"2013-05-13T20:47:29Z","updated_at":"2016-10-25T01:24:40Z","pushed_at":"2016-10-29T12:31:22Z","git_url":"git://github.com/jclouds/jclouds.git","ssh_url":"git@github.com:jclouds/jclouds.git","clone_url":"https://github.com/jclouds/jclouds.git","svn_url":"https://github.com/jclouds/jclouds","homepage":"http://jclouds.apache.org/","size":100514,"stargazers_count":275,"watchers_count":275,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":405,"mirror_url":null,"open_issues_count":15,"forks":405,"open_issues":15,"watchers":275,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jclouds/jclouds/pulls/1032"},"html":{"href":"https://github.com/jclouds/jclouds/pull/1032"},"issue":{"href":"https://api.github.com/repos/jclouds/jclouds/issues/1032"},"comments":{"href":"https://api.github.com/repos/jclouds/jclouds/issues/1032/comments"},"review_comments":{"href":"https://api.github.com/repos/jclouds/jclouds/pulls/1032/comments"},"review_comment":{"href":"https://api.github.com/repos/jclouds/jclouds/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jclouds/jclouds/pulls/1032/commits"},"statuses":{"href":"https://api.github.com/repos/jclouds/jclouds/statuses/55c205a2c08959e97ce079f9c2f2d901d57ea524"}}}}
{"actor":{"display_login":"nacx"}}