{"action":"created","comment":{"url":"https://api.github.com/repos/googleapis/gapic-showcase/pulls/comments/232362451","pull_request_review_id":173551464,"id":232362451,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjM2MjQ1MQ==","diff_hunk":"@@ -0,0 +1,363 @@\n+// Copyright 2018 Google LLC\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+//     https://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 server\n+\n+import (\n+\t\"context\"\n+\t\"encoding/base64\"\n+\t\"sync\"\n+\t\"testing\"\n+\n+\t\"github.com/golang/protobuf/proto\"\n+\tpb \"github.com/googleapis/gapic-showcase/server/genproto\"\n+\t\"google.golang.org/genproto/protobuf/field_mask\"\n+\t\"google.golang.org/grpc/codes\"\n+\t\"google.golang.org/grpc/status\"\n+)\n+\n+func Test_User_lifecycle(t *testing.T) {\n+\ts := NewIdentityServer()\n+\n+\tfirst, err := s.CreateUser(\n+\t\tcontext.Background(),\n+\t\t&pb.CreateUserRequest{\n+\t\t\tUser: &pb.User{DisplayName: \"ekkodog\", Email: \"ekko@google.com\"},\n+\t\t})\n+\tif err != nil {\n+\t\tt.Errorf(\"Create: unexpected err %+v\", err)\n+\t}\n+\n+\tdelete, err := s.CreateUser(\n+\t\tcontext.Background(),\n+\t\t&pb.CreateUserRequest{\n+\t\t\tUser: &pb.User{DisplayName: \"mishacat\", Email: \"misha@google.com\"},\n+\t\t})\n+\tif err != nil {\n+\t\tt.Errorf(\"Create: unexpected err %+v\", err)\n+\t}\n+\n+\t_, err = s.DeleteUser(\n+\t\tcontext.Background(),\n+\t\t&pb.DeleteUserRequest{Name: delete.Name})\n+\tif err != nil {\n+\t\tt.Errorf(\"Create: unexpected err %+v\", err)","path":"server/identity_service_test.go","position":null,"original_position":55,"commit_id":"e7d96bc155cfa731eecdff7d2dbac3146bd547ae","original_commit_id":"1cd009a3bac8e9174d9d4acc87195d582ab7dcf3","user":{"login":"landrito","id":8572251,"node_id":"MDQ6VXNlcjg1NzIyNTE=","avatar_url":"https://avatars0.githubusercontent.com/u/8572251?v=4","gravatar_id":"","url":"https://api.github.com/users/landrito","html_url":"https://github.com/landrito","followers_url":"https://api.github.com/users/landrito/followers","following_url":"https://api.github.com/users/landrito/following{/other_user}","gists_url":"https://api.github.com/users/landrito/gists{/gist_id}","starred_url":"https://api.github.com/users/landrito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landrito/subscriptions","organizations_url":"https://api.github.com/users/landrito/orgs","repos_url":"https://api.github.com/users/landrito/repos","events_url":"https://api.github.com/users/landrito/events{/privacy}","received_events_url":"https://api.github.com/users/landrito/received_events","type":"User","site_admin":false},"body":"Done\r\n","created_at":"2018-11-09T19:13:29Z","updated_at":"2018-11-09T19:13:29Z","html_url":"https://github.com/googleapis/gapic-showcase/pull/45#discussion_r232362451","pull_request_url":"https://api.github.com/repos/googleapis/gapic-showcase/pulls/45","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/googleapis/gapic-showcase/pulls/comments/232362451"},"html":{"href":"https://github.com/googleapis/gapic-showcase/pull/45#discussion_r232362451"},"pull_request":{"href":"https://api.github.com/repos/googleapis/gapic-showcase/pulls/45"}},"in_reply_to_id":232335586},"pull_request":{"url":"https://api.github.com/repos/googleapis/gapic-showcase/pulls/45","id":229626513,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5NjI2NTEz","html_url":"https://github.com/googleapis/gapic-showcase/pull/45","diff_url":"https://github.com/googleapis/gapic-showcase/pull/45.diff","patch_url":"https://github.com/googleapis/gapic-showcase/pull/45.patch","issue_url":"https://api.github.com/repos/googleapis/gapic-showcase/issues/45","number":45,"state":"open","locked":false,"title":"Identity Server Implemetation","user":{"login":"landrito","id":8572251,"node_id":"MDQ6VXNlcjg1NzIyNTE=","avatar_url":"https://avatars0.githubusercontent.com/u/8572251?v=4","gravatar_id":"","url":"https://api.github.com/users/landrito","html_url":"https://github.com/landrito","followers_url":"https://api.github.com/users/landrito/followers","following_url":"https://api.github.com/users/landrito/following{/other_user}","gists_url":"https://api.github.com/users/landrito/gists{/gist_id}","starred_url":"https://api.github.com/users/landrito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landrito/subscriptions","organizations_url":"https://api.github.com/users/landrito/orgs","repos_url":"https://api.github.com/users/landrito/repos","events_url":"https://api.github.com/users/landrito/events{/privacy}","received_events_url":"https://api.github.com/users/landrito/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-09T08:57:10Z","updated_at":"2018-11-09T19:13:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd06b10957ff53b8d25e9d8850bbdb4203c0f048","assignee":null,"assignees":[],"requested_reviewers":[{"login":"pongad","id":1617025,"node_id":"MDQ6VXNlcjE2MTcwMjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1617025?v=4","gravatar_id":"","url":"https://api.github.com/users/pongad","html_url":"https://github.com/pongad","followers_url":"https://api.github.com/users/pongad/followers","following_url":"https://api.github.com/users/pongad/following{/other_user}","gists_url":"https://api.github.com/users/pongad/gists{/gist_id}","starred_url":"https://api.github.com/users/pongad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pongad/subscriptions","organizations_url":"https://api.github.com/users/pongad/orgs","repos_url":"https://api.github.com/users/pongad/repos","events_url":"https://api.github.com/users/pongad/events{/privacy}","received_events_url":"https://api.github.com/users/pongad/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/googleapis/gapic-showcase/pulls/45/commits","review_comments_url":"https://api.github.com/repos/googleapis/gapic-showcase/pulls/45/comments","review_comment_url":"https://api.github.com/repos/googleapis/gapic-showcase/pulls/comments{/number}","comments_url":"https://api.github.com/repos/googleapis/gapic-showcase/issues/45/comments","statuses_url":"https://api.github.com/repos/googleapis/gapic-showcase/statuses/e7d96bc155cfa731eecdff7d2dbac3146bd547ae","head":{"label":"googleapis:identity-impl","ref":"identity-impl","sha":"e7d96bc155cfa731eecdff7d2dbac3146bd547ae","user":{"login":"googleapis","id":16785467,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2Nzg1NDY3","avatar_url":"https://avatars3.githubusercontent.com/u/16785467?v=4","gravatar_id":"","url":"https://api.github.com/users/googleapis","html_url":"https://github.com/googleapis","followers_url":"https://api.github.com/users/googleapis/followers","following_url":"https://api.github.com/users/googleapis/following{/other_user}","gists_url":"https://api.github.com/users/googleapis/gists{/gist_id}","starred_url":"https://api.github.com/users/googleapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleapis/subscriptions","organizations_url":"https://api.github.com/users/googleapis/orgs","repos_url":"https://api.github.com/users/googleapis/repos","events_url":"https://api.github.com/users/googleapis/events{/privacy}","received_events_url":"https://api.github.com/users/googleapis/received_events","type":"Organization","site_admin":false},"repo":{"id":135312418,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUzMTI0MTg=","name":"gapic-showcase","full_name":"googleapis/gapic-showcase","private":false,"owner":{"login":"googleapis","id":16785467,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2Nzg1NDY3","avatar_url":"https://avatars3.githubusercontent.com/u/16785467?v=4","gravatar_id":"","url":"https://api.github.com/users/googleapis","html_url":"https://github.com/googleapis","followers_url":"https://api.github.com/users/googleapis/followers","following_url":"https://api.github.com/users/googleapis/following{/other_user}","gists_url":"https://api.github.com/users/googleapis/gists{/gist_id}","starred_url":"https://api.github.com/users/googleapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleapis/subscriptions","organizations_url":"https://api.github.com/users/googleapis/orgs","repos_url":"https://api.github.com/users/googleapis/repos","events_url":"https://api.github.com/users/googleapis/events{/privacy}","received_events_url":"https://api.github.com/users/googleapis/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/googleapis/gapic-showcase","description":"An API that demonstrates Generated API Client (GAPIC) features and common API patterns used by Google.","fork":false,"url":"https://api.github.com/repos/googleapis/gapic-showcase","forks_url":"https://api.github.com/repos/googleapis/gapic-showcase/forks","keys_url":"https://api.github.com/repos/googleapis/gapic-showcase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/googleapis/gapic-showcase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/googleapis/gapic-showcase/teams","hooks_url":"https://api.github.com/repos/googleapis/gapic-showcase/hooks","issue_events_url":"https://api.github.com/repos/googleapis/gapic-showcase/issues/events{/number}","events_url":"https://api.github.com/repos/googleapis/gapic-showcase/events","assignees_url":"https://api.github.com/repos/googleapis/gapic-showcase/assignees{/user}","branches_url":"https://api.github.com/repos/googleapis/gapic-showcase/branches{/branch}","tags_url":"https://api.github.com/repos/googleapis/gapic-showcase/tags","blobs_url":"https://api.github.com/repos/googleapis/gapic-showcase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/googleapis/gapic-showcase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/googleapis/gapic-showcase/git/refs{/sha}","trees_url":"https://api.github.com/repos/googleapis/gapic-showcase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/googleapis/gapic-showcase/statuses/{sha}","languages_url":"https://api.github.com/repos/googleapis/gapic-showcase/languages","stargazers_url":"https://api.github.com/repos/googleapis/gapic-showcase/stargazers","contributors_url":"https://api.github.com/repos/googleapis/gapic-showcase/contributors","subscribers_url":"https://api.github.com/repos/googleapis/gapic-showcase/subscribers","subscription_url":"https://api.github.com/repos/googleapis/gapic-showcase/subscription","commits_url":"https://api.github.com/repos/googleapis/gapic-showcase/commits{/sha}","git_commits_url":"https://api.github.com/repos/googleapis/gapic-showcase/git/commits{/sha}","comments_url":"https://api.github.com/repos/googleapis/gapic-showcase/comments{/number}","issue_comment_url":"https://api.github.com/repos/googleapis/gapic-showcase/issues/comments{/number}","contents_url":"https://api.github.com/repos/googleapis/gapic-showcase/contents/{+path}","compare_url":"https://api.github.com/repos/googleapis/gapic-showcase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/googleapis/gapic-showcase/merges","archive_url":"https://api.github.com/repos/googleapis/gapic-showcase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/googleapis/gapic-showcase/downloads","issues_url":"https://api.github.com/repos/googleapis/gapic-showcase/issues{/number}","pulls_url":"https://api.github.com/repos/googleapis/gapic-showcase/pulls{/number}","milestones_url":"https://api.github.com/repos/googleapis/gapic-showcase/milestones{/number}","notifications_url":"https://api.github.com/repos/googleapis/gapic-showcase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/googleapis/gapic-showcase/labels{/name}","releases_url":"https://api.github.com/repos/googleapis/gapic-showcase/releases{/id}","deployments_url":"https://api.github.com/repos/googleapis/gapic-showcase/deployments","created_at":"2018-05-29T14:57:46Z","updated_at":"2018-11-09T05:45:38Z","pushed_at":"2018-11-09T19:12:46Z","git_url":"git://github.com/googleapis/gapic-showcase.git","ssh_url":"git@github.com:googleapis/gapic-showcase.git","clone_url":"https://github.com/googleapis/gapic-showcase.git","svn_url":"https://github.com/googleapis/gapic-showcase","homepage":"","size":232,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":8,"open_issues":5,"watchers":3,"default_branch":"master"}},"base":{"label":"googleapis:master","ref":"master","sha":"f8a174b64bee41d037bdded0682b1a16a7f62254","user":{"login":"googleapis","id":16785467,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2Nzg1NDY3","avatar_url":"https://avatars3.githubusercontent.com/u/16785467?v=4","gravatar_id":"","url":"https://api.github.com/users/googleapis","html_url":"https://github.com/googleapis","followers_url":"https://api.github.com/users/googleapis/followers","following_url":"https://api.github.com/users/googleapis/following{/other_user}","gists_url":"https://api.github.com/users/googleapis/gists{/gist_id}","starred_url":"https://api.github.com/users/googleapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleapis/subscriptions","organizations_url":"https://api.github.com/users/googleapis/orgs","repos_url":"https://api.github.com/users/googleapis/repos","events_url":"https://api.github.com/users/googleapis/events{/privacy}","received_events_url":"https://api.github.com/users/googleapis/received_events","type":"Organization","site_admin":false},"repo":{"id":135312418,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUzMTI0MTg=","name":"gapic-showcase","full_name":"googleapis/gapic-showcase","private":false,"owner":{"login":"googleapis","id":16785467,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2Nzg1NDY3","avatar_url":"https://avatars3.githubusercontent.com/u/16785467?v=4","gravatar_id":"","url":"https://api.github.com/users/googleapis","html_url":"https://github.com/googleapis","followers_url":"https://api.github.com/users/googleapis/followers","following_url":"https://api.github.com/users/googleapis/following{/other_user}","gists_url":"https://api.github.com/users/googleapis/gists{/gist_id}","starred_url":"https://api.github.com/users/googleapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googleapis/subscriptions","organizations_url":"https://api.github.com/users/googleapis/orgs","repos_url":"https://api.github.com/users/googleapis/repos","events_url":"https://api.github.com/users/googleapis/events{/privacy}","received_events_url":"https://api.github.com/users/googleapis/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/googleapis/gapic-showcase","description":"An API that demonstrates Generated API Client (GAPIC) features and common API patterns used by Google.","fork":false,"url":"https://api.github.com/repos/googleapis/gapic-showcase","forks_url":"https://api.github.com/repos/googleapis/gapic-showcase/forks","keys_url":"https://api.github.com/repos/googleapis/gapic-showcase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/googleapis/gapic-showcase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/googleapis/gapic-showcase/teams","hooks_url":"https://api.github.com/repos/googleapis/gapic-showcase/hooks","issue_events_url":"https://api.github.com/repos/googleapis/gapic-showcase/issues/events{/number}","events_url":"https://api.github.com/repos/googleapis/gapic-showcase/events","assignees_url":"https://api.github.com/repos/googleapis/gapic-showcase/assignees{/user}","branches_url":"https://api.github.com/repos/googleapis/gapic-showcase/branches{/branch}","tags_url":"https://api.github.com/repos/googleapis/gapic-showcase/tags","blobs_url":"https://api.github.com/repos/googleapis/gapic-showcase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/googleapis/gapic-showcase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/googleapis/gapic-showcase/git/refs{/sha}","trees_url":"https://api.github.com/repos/googleapis/gapic-showcase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/googleapis/gapic-showcase/statuses/{sha}","languages_url":"https://api.github.com/repos/googleapis/gapic-showcase/languages","stargazers_url":"https://api.github.com/repos/googleapis/gapic-showcase/stargazers","contributors_url":"https://api.github.com/repos/googleapis/gapic-showcase/contributors","subscribers_url":"https://api.github.com/repos/googleapis/gapic-showcase/subscribers","subscription_url":"https://api.github.com/repos/googleapis/gapic-showcase/subscription","commits_url":"https://api.github.com/repos/googleapis/gapic-showcase/commits{/sha}","git_commits_url":"https://api.github.com/repos/googleapis/gapic-showcase/git/commits{/sha}","comments_url":"https://api.github.com/repos/googleapis/gapic-showcase/comments{/number}","issue_comment_url":"https://api.github.com/repos/googleapis/gapic-showcase/issues/comments{/number}","contents_url":"https://api.github.com/repos/googleapis/gapic-showcase/contents/{+path}","compare_url":"https://api.github.com/repos/googleapis/gapic-showcase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/googleapis/gapic-showcase/merges","archive_url":"https://api.github.com/repos/googleapis/gapic-showcase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/googleapis/gapic-showcase/downloads","issues_url":"https://api.github.com/repos/googleapis/gapic-showcase/issues{/number}","pulls_url":"https://api.github.com/repos/googleapis/gapic-showcase/pulls{/number}","milestones_url":"https://api.github.com/repos/googleapis/gapic-showcase/milestones{/number}","notifications_url":"https://api.github.com/repos/googleapis/gapic-showcase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/googleapis/gapic-showcase/labels{/name}","releases_url":"https://api.github.com/repos/googleapis/gapic-showcase/releases{/id}","deployments_url":"https://api.github.com/repos/googleapis/gapic-showcase/deployments","created_at":"2018-05-29T14:57:46Z","updated_at":"2018-11-09T05:45:38Z","pushed_at":"2018-11-09T19:12:46Z","git_url":"git://github.com/googleapis/gapic-showcase.git","ssh_url":"git@github.com:googleapis/gapic-showcase.git","clone_url":"https://github.com/googleapis/gapic-showcase.git","svn_url":"https://github.com/googleapis/gapic-showcase","homepage":"","size":232,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":8,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/googleapis/gapic-showcase/pulls/45"},"html":{"href":"https://github.com/googleapis/gapic-showcase/pull/45"},"issue":{"href":"https://api.github.com/repos/googleapis/gapic-showcase/issues/45"},"comments":{"href":"https://api.github.com/repos/googleapis/gapic-showcase/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/googleapis/gapic-showcase/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/googleapis/gapic-showcase/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/googleapis/gapic-showcase/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/googleapis/gapic-showcase/statuses/e7d96bc155cfa731eecdff7d2dbac3146bd547ae"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"landrito"}}