{"action":"created","comment":{"url":"https://api.github.com/repos/spinnaker/fiat/pulls/comments/79670648","id":79670648,"diff_hunk":"@@ -0,0 +1,75 @@\n+/*\n+ * Copyright 2016 Google, Inc.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\")\n+ * you may not use this file except in compliance with the License.\n+ * 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+\n+package com.netflix.spinnaker.fiat.shared\n+\n+import com.netflix.spinnaker.fiat.model.resources.ResourceType\n+import org.springframework.security.core.Authentication\n+import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken\n+import retrofit.RetrofitError\n+import retrofit.client.Response\n+import spock.lang.Specification\n+import spock.lang.Unroll\n+\n+class FiatPermissionEvaluatorSpec extends Specification {\n+\n+  @Unroll\n+  def \"should parse application name\"() {\n+    setup:","path":"fiat-api/src/test/groovy/com/netflix/spinnaker/fiat/shared/FiatPermissionEvaluatorSpec.groovy","position":31,"original_position":31,"commit_id":"cd39619f7b11a9952ef1ca7cd4e09fb949a471dc","original_commit_id":"aa443fe4cae70e5672cd6b478c31ab0d100acb4f","user":{"login":"ttomsu","id":13141550,"avatar_url":"https://avatars.githubusercontent.com/u/13141550?v=3","gravatar_id":"","url":"https://api.github.com/users/ttomsu","html_url":"https://github.com/ttomsu","followers_url":"https://api.github.com/users/ttomsu/followers","following_url":"https://api.github.com/users/ttomsu/following{/other_user}","gists_url":"https://api.github.com/users/ttomsu/gists{/gist_id}","starred_url":"https://api.github.com/users/ttomsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttomsu/subscriptions","organizations_url":"https://api.github.com/users/ttomsu/orgs","repos_url":"https://api.github.com/users/ttomsu/repos","events_url":"https://api.github.com/users/ttomsu/events{/privacy}","received_events_url":"https://api.github.com/users/ttomsu/received_events","type":"User","site_admin":false},"body":"I would prefer them to be indented, but @ajordens told me to keep them unindented.","created_at":"2016-09-20T17:46:18Z","updated_at":"2016-09-20T17:49:58Z","html_url":"https://github.com/spinnaker/fiat/pull/64#discussion_r79670648","pull_request_url":"https://api.github.com/repos/spinnaker/fiat/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/spinnaker/fiat/pulls/comments/79670648"},"html":{"href":"https://github.com/spinnaker/fiat/pull/64#discussion_r79670648"},"pull_request":{"href":"https://api.github.com/repos/spinnaker/fiat/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/spinnaker/fiat/pulls/64","id":85995782,"html_url":"https://github.com/spinnaker/fiat/pull/64","diff_url":"https://github.com/spinnaker/fiat/pull/64.diff","patch_url":"https://github.com/spinnaker/fiat/pull/64.patch","issue_url":"https://api.github.com/repos/spinnaker/fiat/issues/64","number":64,"state":"open","locked":false,"title":"Adds Frigga name parsing if the specified resource is an application.…","user":{"login":"ttomsu","id":13141550,"avatar_url":"https://avatars.githubusercontent.com/u/13141550?v=3","gravatar_id":"","url":"https://api.github.com/users/ttomsu","html_url":"https://github.com/ttomsu","followers_url":"https://api.github.com/users/ttomsu/followers","following_url":"https://api.github.com/users/ttomsu/following{/other_user}","gists_url":"https://api.github.com/users/ttomsu/gists{/gist_id}","starred_url":"https://api.github.com/users/ttomsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttomsu/subscriptions","organizations_url":"https://api.github.com/users/ttomsu/orgs","repos_url":"https://api.github.com/users/ttomsu/repos","events_url":"https://api.github.com/users/ttomsu/events{/privacy}","received_events_url":"https://api.github.com/users/ttomsu/received_events","type":"User","site_admin":false},"body":"… This helps when authorizing other objects that conform to the naming convention (namely load balancers, server groups, and instances).\r\n\r\n@jtk54 @duftler @cfieber @ajordens PTAL\r\n\r\nSupports https://github.com/spinnaker/fiat/issues/38","created_at":"2016-09-20T15:12:05Z","updated_at":"2016-09-20T17:49:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea008f93b130919e53ad27e0a482ab80cd444dd0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/spinnaker/fiat/pulls/64/commits","review_comments_url":"https://api.github.com/repos/spinnaker/fiat/pulls/64/comments","review_comment_url":"https://api.github.com/repos/spinnaker/fiat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spinnaker/fiat/issues/64/comments","statuses_url":"https://api.github.com/repos/spinnaker/fiat/statuses/cd39619f7b11a9952ef1ca7cd4e09fb949a471dc","head":{"label":"ttomsu:google-parse-name","ref":"google-parse-name","sha":"cd39619f7b11a9952ef1ca7cd4e09fb949a471dc","user":{"login":"ttomsu","id":13141550,"avatar_url":"https://avatars.githubusercontent.com/u/13141550?v=3","gravatar_id":"","url":"https://api.github.com/users/ttomsu","html_url":"https://github.com/ttomsu","followers_url":"https://api.github.com/users/ttomsu/followers","following_url":"https://api.github.com/users/ttomsu/following{/other_user}","gists_url":"https://api.github.com/users/ttomsu/gists{/gist_id}","starred_url":"https://api.github.com/users/ttomsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttomsu/subscriptions","organizations_url":"https://api.github.com/users/ttomsu/orgs","repos_url":"https://api.github.com/users/ttomsu/repos","events_url":"https://api.github.com/users/ttomsu/events{/privacy}","received_events_url":"https://api.github.com/users/ttomsu/received_events","type":"User","site_admin":false},"repo":{"id":62735000,"name":"fiat","full_name":"ttomsu/fiat","owner":{"login":"ttomsu","id":13141550,"avatar_url":"https://avatars.githubusercontent.com/u/13141550?v=3","gravatar_id":"","url":"https://api.github.com/users/ttomsu","html_url":"https://github.com/ttomsu","followers_url":"https://api.github.com/users/ttomsu/followers","following_url":"https://api.github.com/users/ttomsu/following{/other_user}","gists_url":"https://api.github.com/users/ttomsu/gists{/gist_id}","starred_url":"https://api.github.com/users/ttomsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttomsu/subscriptions","organizations_url":"https://api.github.com/users/ttomsu/orgs","repos_url":"https://api.github.com/users/ttomsu/repos","events_url":"https://api.github.com/users/ttomsu/events{/privacy}","received_events_url":"https://api.github.com/users/ttomsu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ttomsu/fiat","description":"Spinnaker auth service","fork":true,"url":"https://api.github.com/repos/ttomsu/fiat","forks_url":"https://api.github.com/repos/ttomsu/fiat/forks","keys_url":"https://api.github.com/repos/ttomsu/fiat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ttomsu/fiat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ttomsu/fiat/teams","hooks_url":"https://api.github.com/repos/ttomsu/fiat/hooks","issue_events_url":"https://api.github.com/repos/ttomsu/fiat/issues/events{/number}","events_url":"https://api.github.com/repos/ttomsu/fiat/events","assignees_url":"https://api.github.com/repos/ttomsu/fiat/assignees{/user}","branches_url":"https://api.github.com/repos/ttomsu/fiat/branches{/branch}","tags_url":"https://api.github.com/repos/ttomsu/fiat/tags","blobs_url":"https://api.github.com/repos/ttomsu/fiat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ttomsu/fiat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ttomsu/fiat/git/refs{/sha}","trees_url":"https://api.github.com/repos/ttomsu/fiat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ttomsu/fiat/statuses/{sha}","languages_url":"https://api.github.com/repos/ttomsu/fiat/languages","stargazers_url":"https://api.github.com/repos/ttomsu/fiat/stargazers","contributors_url":"https://api.github.com/repos/ttomsu/fiat/contributors","subscribers_url":"https://api.github.com/repos/ttomsu/fiat/subscribers","subscription_url":"https://api.github.com/repos/ttomsu/fiat/subscription","commits_url":"https://api.github.com/repos/ttomsu/fiat/commits{/sha}","git_commits_url":"https://api.github.com/repos/ttomsu/fiat/git/commits{/sha}","comments_url":"https://api.github.com/repos/ttomsu/fiat/comments{/number}","issue_comment_url":"https://api.github.com/repos/ttomsu/fiat/issues/comments{/number}","contents_url":"https://api.github.com/repos/ttomsu/fiat/contents/{+path}","compare_url":"https://api.github.com/repos/ttomsu/fiat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ttomsu/fiat/merges","archive_url":"https://api.github.com/repos/ttomsu/fiat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ttomsu/fiat/downloads","issues_url":"https://api.github.com/repos/ttomsu/fiat/issues{/number}","pulls_url":"https://api.github.com/repos/ttomsu/fiat/pulls{/number}","milestones_url":"https://api.github.com/repos/ttomsu/fiat/milestones{/number}","notifications_url":"https://api.github.com/repos/ttomsu/fiat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ttomsu/fiat/labels{/name}","releases_url":"https://api.github.com/repos/ttomsu/fiat/releases{/id}","deployments_url":"https://api.github.com/repos/ttomsu/fiat/deployments","created_at":"2016-07-06T16:06:48Z","updated_at":"2016-07-15T13:48:59Z","pushed_at":"2016-09-20T17:49:17Z","git_url":"git://github.com/ttomsu/fiat.git","ssh_url":"git@github.com:ttomsu/fiat.git","clone_url":"https://github.com/ttomsu/fiat.git","svn_url":"https://github.com/ttomsu/fiat","homepage":null,"size":255,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"spinnaker:master","ref":"master","sha":"de158b3945155dd0c9ee846756bbf59e4bb9daba","user":{"login":"spinnaker","id":7634182,"avatar_url":"https://avatars.githubusercontent.com/u/7634182?v=3","gravatar_id":"","url":"https://api.github.com/users/spinnaker","html_url":"https://github.com/spinnaker","followers_url":"https://api.github.com/users/spinnaker/followers","following_url":"https://api.github.com/users/spinnaker/following{/other_user}","gists_url":"https://api.github.com/users/spinnaker/gists{/gist_id}","starred_url":"https://api.github.com/users/spinnaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinnaker/subscriptions","organizations_url":"https://api.github.com/users/spinnaker/orgs","repos_url":"https://api.github.com/users/spinnaker/repos","events_url":"https://api.github.com/users/spinnaker/events{/privacy}","received_events_url":"https://api.github.com/users/spinnaker/received_events","type":"Organization","site_admin":false},"repo":{"id":61139592,"name":"fiat","full_name":"spinnaker/fiat","owner":{"login":"spinnaker","id":7634182,"avatar_url":"https://avatars.githubusercontent.com/u/7634182?v=3","gravatar_id":"","url":"https://api.github.com/users/spinnaker","html_url":"https://github.com/spinnaker","followers_url":"https://api.github.com/users/spinnaker/followers","following_url":"https://api.github.com/users/spinnaker/following{/other_user}","gists_url":"https://api.github.com/users/spinnaker/gists{/gist_id}","starred_url":"https://api.github.com/users/spinnaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spinnaker/subscriptions","organizations_url":"https://api.github.com/users/spinnaker/orgs","repos_url":"https://api.github.com/users/spinnaker/repos","events_url":"https://api.github.com/users/spinnaker/events{/privacy}","received_events_url":"https://api.github.com/users/spinnaker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spinnaker/fiat","description":"Spinnaker auth service","fork":false,"url":"https://api.github.com/repos/spinnaker/fiat","forks_url":"https://api.github.com/repos/spinnaker/fiat/forks","keys_url":"https://api.github.com/repos/spinnaker/fiat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spinnaker/fiat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spinnaker/fiat/teams","hooks_url":"https://api.github.com/repos/spinnaker/fiat/hooks","issue_events_url":"https://api.github.com/repos/spinnaker/fiat/issues/events{/number}","events_url":"https://api.github.com/repos/spinnaker/fiat/events","assignees_url":"https://api.github.com/repos/spinnaker/fiat/assignees{/user}","branches_url":"https://api.github.com/repos/spinnaker/fiat/branches{/branch}","tags_url":"https://api.github.com/repos/spinnaker/fiat/tags","blobs_url":"https://api.github.com/repos/spinnaker/fiat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spinnaker/fiat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spinnaker/fiat/git/refs{/sha}","trees_url":"https://api.github.com/repos/spinnaker/fiat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spinnaker/fiat/statuses/{sha}","languages_url":"https://api.github.com/repos/spinnaker/fiat/languages","stargazers_url":"https://api.github.com/repos/spinnaker/fiat/stargazers","contributors_url":"https://api.github.com/repos/spinnaker/fiat/contributors","subscribers_url":"https://api.github.com/repos/spinnaker/fiat/subscribers","subscription_url":"https://api.github.com/repos/spinnaker/fiat/subscription","commits_url":"https://api.github.com/repos/spinnaker/fiat/commits{/sha}","git_commits_url":"https://api.github.com/repos/spinnaker/fiat/git/commits{/sha}","comments_url":"https://api.github.com/repos/spinnaker/fiat/comments{/number}","issue_comment_url":"https://api.github.com/repos/spinnaker/fiat/issues/comments{/number}","contents_url":"https://api.github.com/repos/spinnaker/fiat/contents/{+path}","compare_url":"https://api.github.com/repos/spinnaker/fiat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spinnaker/fiat/merges","archive_url":"https://api.github.com/repos/spinnaker/fiat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spinnaker/fiat/downloads","issues_url":"https://api.github.com/repos/spinnaker/fiat/issues{/number}","pulls_url":"https://api.github.com/repos/spinnaker/fiat/pulls{/number}","milestones_url":"https://api.github.com/repos/spinnaker/fiat/milestones{/number}","notifications_url":"https://api.github.com/repos/spinnaker/fiat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spinnaker/fiat/labels{/name}","releases_url":"https://api.github.com/repos/spinnaker/fiat/releases{/id}","deployments_url":"https://api.github.com/repos/spinnaker/fiat/deployments","created_at":"2016-06-14T16:44:56Z","updated_at":"2016-09-19T20:28:45Z","pushed_at":"2016-09-20T17:49:18Z","git_url":"git://github.com/spinnaker/fiat.git","ssh_url":"git@github.com:spinnaker/fiat.git","clone_url":"https://github.com/spinnaker/fiat.git","svn_url":"https://github.com/spinnaker/fiat","homepage":null,"size":278,"stargazers_count":9,"watchers_count":9,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":18,"forks":7,"open_issues":18,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spinnaker/fiat/pulls/64"},"html":{"href":"https://github.com/spinnaker/fiat/pull/64"},"issue":{"href":"https://api.github.com/repos/spinnaker/fiat/issues/64"},"comments":{"href":"https://api.github.com/repos/spinnaker/fiat/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/spinnaker/fiat/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/spinnaker/fiat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spinnaker/fiat/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/spinnaker/fiat/statuses/cd39619f7b11a9952ef1ca7cd4e09fb949a471dc"}}}}
{"actor":{"display_login":"ttomsu"}}