{"action":"created","comment":{"url":"https://api.github.com/repos/snapcore/snapd/pulls/comments/93202531","pull_request_review_id":13723746,"id":93202531,"diff_hunk":"@@ -15,57 +19,63 @@ EOF\n     systemctl start snapd.socket\n }\n \n+setup_staging_store(){\n+    _configure_store_backends \"SNAPPY_USE_STAGING_STORE=1\"\n+}\n+\n+teardown_staging_store(){\n+    if systemctl status snapd.socket; then\n+        systemctl stop snapd.socket\n+    fi\n+    rm -rf $STORE_CONFIG\n+    systemctl daemon-reload\n+    systemctl start snapd.socket\n+}\n+\n+init_fakestore(){","path":"tests/lib/store.sh","position":null,"original_position":32,"commit_id":"8b1cac81ebd59e4fc24d58454267e915bb5b9c48","original_commit_id":"278fe7ebbd38b52f8d5a37fd89521fae3757db99","user":{"login":"fgimenez","id":70376,"avatar_url":"https://avatars.githubusercontent.com/u/70376?v=3","gravatar_id":"","url":"https://api.github.com/users/fgimenez","html_url":"https://github.com/fgimenez","followers_url":"https://api.github.com/users/fgimenez/followers","following_url":"https://api.github.com/users/fgimenez/following{/other_user}","gists_url":"https://api.github.com/users/fgimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/fgimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgimenez/subscriptions","organizations_url":"https://api.github.com/users/fgimenez/orgs","repos_url":"https://api.github.com/users/fgimenez/repos","events_url":"https://api.github.com/users/fgimenez/events{/privacy}","received_events_url":"https://api.github.com/users/fgimenez/received_events","type":"User","site_admin":false},"body":"sure, done","created_at":"2016-12-20T09:49:51Z","updated_at":"2016-12-20T09:49:51Z","html_url":"https://github.com/snapcore/snapd/pull/2368#discussion_r93202531","pull_request_url":"https://api.github.com/repos/snapcore/snapd/pulls/2368","_links":{"self":{"href":"https://api.github.com/repos/snapcore/snapd/pulls/comments/93202531"},"html":{"href":"https://github.com/snapcore/snapd/pull/2368#discussion_r93202531"},"pull_request":{"href":"https://api.github.com/repos/snapcore/snapd/pulls/2368"}}},"pull_request":{"url":"https://api.github.com/repos/snapcore/snapd/pulls/2368","id":95545286,"html_url":"https://github.com/snapcore/snapd/pull/2368","diff_url":"https://github.com/snapcore/snapd/pull/2368.diff","patch_url":"https://github.com/snapcore/snapd/pull/2368.patch","issue_url":"https://api.github.com/repos/snapcore/snapd/issues/2368","number":2368,"state":"open","locked":false,"title":"tests: parameterize remote store","user":{"login":"fgimenez","id":70376,"avatar_url":"https://avatars.githubusercontent.com/u/70376?v=3","gravatar_id":"","url":"https://api.github.com/users/fgimenez","html_url":"https://github.com/fgimenez","followers_url":"https://api.github.com/users/fgimenez/followers","following_url":"https://api.github.com/users/fgimenez/following{/other_user}","gists_url":"https://api.github.com/users/fgimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/fgimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgimenez/subscriptions","organizations_url":"https://api.github.com/users/fgimenez/orgs","repos_url":"https://api.github.com/users/fgimenez/repos","events_url":"https://api.github.com/users/fgimenez/events{/privacy}","received_events_url":"https://api.github.com/users/fgimenez/received_events","type":"User","site_admin":false},"body":"The remote store to be used (currently production or staging) is defined by an external environment variable `SPREAD_REMOTE_STORE` (defaults to production). Also, the store variants for production have been renamed to remote.","created_at":"2016-11-28T17:46:26Z","updated_at":"2016-12-20T09:49:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"057ba2e0b3cb4e77e19f3ed5db35b10d2801aafc","assignee":{"login":"pedronis","id":975757,"avatar_url":"https://avatars.githubusercontent.com/u/975757?v=3","gravatar_id":"","url":"https://api.github.com/users/pedronis","html_url":"https://github.com/pedronis","followers_url":"https://api.github.com/users/pedronis/followers","following_url":"https://api.github.com/users/pedronis/following{/other_user}","gists_url":"https://api.github.com/users/pedronis/gists{/gist_id}","starred_url":"https://api.github.com/users/pedronis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedronis/subscriptions","organizations_url":"https://api.github.com/users/pedronis/orgs","repos_url":"https://api.github.com/users/pedronis/repos","events_url":"https://api.github.com/users/pedronis/events{/privacy}","received_events_url":"https://api.github.com/users/pedronis/received_events","type":"User","site_admin":false},"assignees":[{"login":"pedronis","id":975757,"avatar_url":"https://avatars.githubusercontent.com/u/975757?v=3","gravatar_id":"","url":"https://api.github.com/users/pedronis","html_url":"https://github.com/pedronis","followers_url":"https://api.github.com/users/pedronis/followers","following_url":"https://api.github.com/users/pedronis/following{/other_user}","gists_url":"https://api.github.com/users/pedronis/gists{/gist_id}","starred_url":"https://api.github.com/users/pedronis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedronis/subscriptions","organizations_url":"https://api.github.com/users/pedronis/orgs","repos_url":"https://api.github.com/users/pedronis/repos","events_url":"https://api.github.com/users/pedronis/events{/privacy}","received_events_url":"https://api.github.com/users/pedronis/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/snapcore/snapd/pulls/2368/commits","review_comments_url":"https://api.github.com/repos/snapcore/snapd/pulls/2368/comments","review_comment_url":"https://api.github.com/repos/snapcore/snapd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/snapcore/snapd/issues/2368/comments","statuses_url":"https://api.github.com/repos/snapcore/snapd/statuses/8b1cac81ebd59e4fc24d58454267e915bb5b9c48","head":{"label":"fgimenez:parameterized-remote-store","ref":"parameterized-remote-store","sha":"8b1cac81ebd59e4fc24d58454267e915bb5b9c48","user":{"login":"fgimenez","id":70376,"avatar_url":"https://avatars.githubusercontent.com/u/70376?v=3","gravatar_id":"","url":"https://api.github.com/users/fgimenez","html_url":"https://github.com/fgimenez","followers_url":"https://api.github.com/users/fgimenez/followers","following_url":"https://api.github.com/users/fgimenez/following{/other_user}","gists_url":"https://api.github.com/users/fgimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/fgimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgimenez/subscriptions","organizations_url":"https://api.github.com/users/fgimenez/orgs","repos_url":"https://api.github.com/users/fgimenez/repos","events_url":"https://api.github.com/users/fgimenez/events{/privacy}","received_events_url":"https://api.github.com/users/fgimenez/received_events","type":"User","site_admin":false},"repo":{"id":45098487,"name":"snappy","full_name":"fgimenez/snappy","owner":{"login":"fgimenez","id":70376,"avatar_url":"https://avatars.githubusercontent.com/u/70376?v=3","gravatar_id":"","url":"https://api.github.com/users/fgimenez","html_url":"https://github.com/fgimenez","followers_url":"https://api.github.com/users/fgimenez/followers","following_url":"https://api.github.com/users/fgimenez/following{/other_user}","gists_url":"https://api.github.com/users/fgimenez/gists{/gist_id}","starred_url":"https://api.github.com/users/fgimenez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgimenez/subscriptions","organizations_url":"https://api.github.com/users/fgimenez/orgs","repos_url":"https://api.github.com/users/fgimenez/repos","events_url":"https://api.github.com/users/fgimenez/events{/privacy}","received_events_url":"https://api.github.com/users/fgimenez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fgimenez/snappy","description":"Snappy is the software at the heart of Ubuntu Core.","fork":true,"url":"https://api.github.com/repos/fgimenez/snappy","forks_url":"https://api.github.com/repos/fgimenez/snappy/forks","keys_url":"https://api.github.com/repos/fgimenez/snappy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fgimenez/snappy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fgimenez/snappy/teams","hooks_url":"https://api.github.com/repos/fgimenez/snappy/hooks","issue_events_url":"https://api.github.com/repos/fgimenez/snappy/issues/events{/number}","events_url":"https://api.github.com/repos/fgimenez/snappy/events","assignees_url":"https://api.github.com/repos/fgimenez/snappy/assignees{/user}","branches_url":"https://api.github.com/repos/fgimenez/snappy/branches{/branch}","tags_url":"https://api.github.com/repos/fgimenez/snappy/tags","blobs_url":"https://api.github.com/repos/fgimenez/snappy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fgimenez/snappy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fgimenez/snappy/git/refs{/sha}","trees_url":"https://api.github.com/repos/fgimenez/snappy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fgimenez/snappy/statuses/{sha}","languages_url":"https://api.github.com/repos/fgimenez/snappy/languages","stargazers_url":"https://api.github.com/repos/fgimenez/snappy/stargazers","contributors_url":"https://api.github.com/repos/fgimenez/snappy/contributors","subscribers_url":"https://api.github.com/repos/fgimenez/snappy/subscribers","subscription_url":"https://api.github.com/repos/fgimenez/snappy/subscription","commits_url":"https://api.github.com/repos/fgimenez/snappy/commits{/sha}","git_commits_url":"https://api.github.com/repos/fgimenez/snappy/git/commits{/sha}","comments_url":"https://api.github.com/repos/fgimenez/snappy/comments{/number}","issue_comment_url":"https://api.github.com/repos/fgimenez/snappy/issues/comments{/number}","contents_url":"https://api.github.com/repos/fgimenez/snappy/contents/{+path}","compare_url":"https://api.github.com/repos/fgimenez/snappy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fgimenez/snappy/merges","archive_url":"https://api.github.com/repos/fgimenez/snappy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fgimenez/snappy/downloads","issues_url":"https://api.github.com/repos/fgimenez/snappy/issues{/number}","pulls_url":"https://api.github.com/repos/fgimenez/snappy/pulls{/number}","milestones_url":"https://api.github.com/repos/fgimenez/snappy/milestones{/number}","notifications_url":"https://api.github.com/repos/fgimenez/snappy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fgimenez/snappy/labels{/name}","releases_url":"https://api.github.com/repos/fgimenez/snappy/releases{/id}","deployments_url":"https://api.github.com/repos/fgimenez/snappy/deployments","created_at":"2015-10-28T08:23:58Z","updated_at":"2016-01-14T08:49:44Z","pushed_at":"2016-12-20T09:49:11Z","git_url":"git://github.com/fgimenez/snappy.git","ssh_url":"git@github.com:fgimenez/snappy.git","clone_url":"https://github.com/fgimenez/snappy.git","svn_url":"https://github.com/fgimenez/snappy","homepage":null,"size":41606,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"snapcore:master","ref":"master","sha":"c6148d41308c0d52ac78091ee29fc844ee54ffc7","user":{"login":"snapcore","id":19532717,"avatar_url":"https://avatars.githubusercontent.com/u/19532717?v=3","gravatar_id":"","url":"https://api.github.com/users/snapcore","html_url":"https://github.com/snapcore","followers_url":"https://api.github.com/users/snapcore/followers","following_url":"https://api.github.com/users/snapcore/following{/other_user}","gists_url":"https://api.github.com/users/snapcore/gists{/gist_id}","starred_url":"https://api.github.com/users/snapcore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snapcore/subscriptions","organizations_url":"https://api.github.com/users/snapcore/orgs","repos_url":"https://api.github.com/users/snapcore/repos","events_url":"https://api.github.com/users/snapcore/events{/privacy}","received_events_url":"https://api.github.com/users/snapcore/received_events","type":"Organization","site_admin":false},"repo":{"id":44672744,"name":"snapd","full_name":"snapcore/snapd","owner":{"login":"snapcore","id":19532717,"avatar_url":"https://avatars.githubusercontent.com/u/19532717?v=3","gravatar_id":"","url":"https://api.github.com/users/snapcore","html_url":"https://github.com/snapcore","followers_url":"https://api.github.com/users/snapcore/followers","following_url":"https://api.github.com/users/snapcore/following{/other_user}","gists_url":"https://api.github.com/users/snapcore/gists{/gist_id}","starred_url":"https://api.github.com/users/snapcore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snapcore/subscriptions","organizations_url":"https://api.github.com/users/snapcore/orgs","repos_url":"https://api.github.com/users/snapcore/repos","events_url":"https://api.github.com/users/snapcore/events{/privacy}","received_events_url":"https://api.github.com/users/snapcore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/snapcore/snapd","description":"The snapd and snap tools enable systems to work with .snap files.","fork":false,"url":"https://api.github.com/repos/snapcore/snapd","forks_url":"https://api.github.com/repos/snapcore/snapd/forks","keys_url":"https://api.github.com/repos/snapcore/snapd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snapcore/snapd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snapcore/snapd/teams","hooks_url":"https://api.github.com/repos/snapcore/snapd/hooks","issue_events_url":"https://api.github.com/repos/snapcore/snapd/issues/events{/number}","events_url":"https://api.github.com/repos/snapcore/snapd/events","assignees_url":"https://api.github.com/repos/snapcore/snapd/assignees{/user}","branches_url":"https://api.github.com/repos/snapcore/snapd/branches{/branch}","tags_url":"https://api.github.com/repos/snapcore/snapd/tags","blobs_url":"https://api.github.com/repos/snapcore/snapd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snapcore/snapd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snapcore/snapd/git/refs{/sha}","trees_url":"https://api.github.com/repos/snapcore/snapd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snapcore/snapd/statuses/{sha}","languages_url":"https://api.github.com/repos/snapcore/snapd/languages","stargazers_url":"https://api.github.com/repos/snapcore/snapd/stargazers","contributors_url":"https://api.github.com/repos/snapcore/snapd/contributors","subscribers_url":"https://api.github.com/repos/snapcore/snapd/subscribers","subscription_url":"https://api.github.com/repos/snapcore/snapd/subscription","commits_url":"https://api.github.com/repos/snapcore/snapd/commits{/sha}","git_commits_url":"https://api.github.com/repos/snapcore/snapd/git/commits{/sha}","comments_url":"https://api.github.com/repos/snapcore/snapd/comments{/number}","issue_comment_url":"https://api.github.com/repos/snapcore/snapd/issues/comments{/number}","contents_url":"https://api.github.com/repos/snapcore/snapd/contents/{+path}","compare_url":"https://api.github.com/repos/snapcore/snapd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snapcore/snapd/merges","archive_url":"https://api.github.com/repos/snapcore/snapd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snapcore/snapd/downloads","issues_url":"https://api.github.com/repos/snapcore/snapd/issues{/number}","pulls_url":"https://api.github.com/repos/snapcore/snapd/pulls{/number}","milestones_url":"https://api.github.com/repos/snapcore/snapd/milestones{/number}","notifications_url":"https://api.github.com/repos/snapcore/snapd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snapcore/snapd/labels{/name}","releases_url":"https://api.github.com/repos/snapcore/snapd/releases{/id}","deployments_url":"https://api.github.com/repos/snapcore/snapd/deployments","created_at":"2015-10-21T11:51:46Z","updated_at":"2016-12-19T02:39:56Z","pushed_at":"2016-12-20T09:49:13Z","git_url":"git://github.com/snapcore/snapd.git","ssh_url":"git@github.com:snapcore/snapd.git","clone_url":"https://github.com/snapcore/snapd.git","svn_url":"https://github.com/snapcore/snapd","homepage":"","size":41552,"stargazers_count":460,"watchers_count":460,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":137,"mirror_url":null,"open_issues_count":53,"forks":137,"open_issues":53,"watchers":460,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/snapcore/snapd/pulls/2368"},"html":{"href":"https://github.com/snapcore/snapd/pull/2368"},"issue":{"href":"https://api.github.com/repos/snapcore/snapd/issues/2368"},"comments":{"href":"https://api.github.com/repos/snapcore/snapd/issues/2368/comments"},"review_comments":{"href":"https://api.github.com/repos/snapcore/snapd/pulls/2368/comments"},"review_comment":{"href":"https://api.github.com/repos/snapcore/snapd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/snapcore/snapd/pulls/2368/commits"},"statuses":{"href":"https://api.github.com/repos/snapcore/snapd/statuses/8b1cac81ebd59e4fc24d58454267e915bb5b9c48"}}}}
{"actor":{"display_login":"fgimenez"}}