{"action":"created","comment":{"url":"https://api.github.com/repos/restic/restic/pulls/comments/29996188","id":29996188,"diff_hunk":"@@ -25,10 +24,6 @@ func SetupBackend(t testing.TB) *server.Server {\n \tb, err := local.Create(filepath.Join(tempdir, \"repo\"))\n \tOK(t, err)\n \n-\t// set cache dir below temp dir\n-\terr = os.Setenv(\"RESTIC_CACHE\", filepath.Join(tempdir, \"cache\"))","path":"test/backend.go","position":13,"original_position":13,"commit_id":"c0eee479803f709b0d1212aadd007de9ba6a7b42","original_commit_id":"c0eee479803f709b0d1212aadd007de9ba6a7b42","user":{"login":"fw42","id":2072686,"avatar_url":"https://avatars.githubusercontent.com/u/2072686?v=3","gravatar_id":"","url":"https://api.github.com/users/fw42","html_url":"https://github.com/fw42","followers_url":"https://api.github.com/users/fw42/followers","following_url":"https://api.github.com/users/fw42/following{/other_user}","gists_url":"https://api.github.com/users/fw42/gists{/gist_id}","starred_url":"https://api.github.com/users/fw42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fw42/subscriptions","organizations_url":"https://api.github.com/users/fw42/orgs","repos_url":"https://api.github.com/users/fw42/repos","events_url":"https://api.github.com/users/fw42/events{/privacy}","received_events_url":"https://api.github.com/users/fw42/received_events","type":"User","site_admin":false},"body":"is this not needed anymore?","created_at":"2015-05-09T20:48:44Z","updated_at":"2015-05-09T20:48:44Z","html_url":"https://github.com/restic/restic/pull/179#discussion_r29996188","pull_request_url":"https://api.github.com/repos/restic/restic/pulls/179","_links":{"self":{"href":"https://api.github.com/repos/restic/restic/pulls/comments/29996188"},"html":{"href":"https://github.com/restic/restic/pull/179#discussion_r29996188"},"pull_request":{"href":"https://api.github.com/repos/restic/restic/pulls/179"}}},"pull_request":{"url":"https://api.github.com/repos/restic/restic/pulls/179","id":35066221,"html_url":"https://github.com/restic/restic/pull/179","diff_url":"https://github.com/restic/restic/pull/179.diff","patch_url":"https://github.com/restic/restic/pull/179.patch","issue_url":"https://api.github.com/repos/restic/restic/issues/179","number":179,"state":"open","locked":false,"title":"Add integration test with the go testing framework","user":{"login":"fd0","id":123276,"avatar_url":"https://avatars.githubusercontent.com/u/123276?v=3","gravatar_id":"","url":"https://api.github.com/users/fd0","html_url":"https://github.com/fd0","followers_url":"https://api.github.com/users/fd0/followers","following_url":"https://api.github.com/users/fd0/following{/other_user}","gists_url":"https://api.github.com/users/fd0/gists{/gist_id}","starred_url":"https://api.github.com/users/fd0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fd0/subscriptions","organizations_url":"https://api.github.com/users/fd0/orgs","repos_url":"https://api.github.com/users/fd0/repos","events_url":"https://api.github.com/users/fd0/events{/privacy}","received_events_url":"https://api.github.com/users/fd0/received_events","type":"User","site_admin":false},"body":"This is an example on how integration tests can be run with the Go testing framework. In order to run this test, run the following command in `cmd/restic`:\n\n    $ go test -v -tags integration -test.datafile ../../testsuite/fake-data.tar.gz\n\nSample output:\n\n    $ go test -v -tags integration -test.datafile ../../testsuite/fake-data.tar.gz\n    === RUN TestBackup-4                                                           \n    created restic backend 558fe89396 at /tmp/restic-test-358226688/repo\n    Please note that knowledge of your password is required to access the repository.\n    Losing your password means that your data is irrecoverably lost.\n    scan [/tmp/restic-test-358226688/testdata]\n    scanned 14 directories, 1224 files in 0:00\n    [0:00] 100.00%  0B/s  19.074 MiB / 19.074 MiB  1239 / 1238 items  0 errors  ETA 0:00 \n    duration: 0:00, 40.21MiB/s\n    snapshot b08fe909 saved\n    --- PASS: TestBackup-4 (2.54s)\n        integration_test.go:22: repository initialized at /tmp/restic-test-358226688/repo\n        integration_test.go:27: backing up [/tmp/restic-test-358226688/testdata]\n    PASS\n    ok      github.com/restic/restic/cmd/restic     2.549s\n\nWhat do you think? Is this the way to go for the integration tests?","created_at":"2015-05-09T12:48:19Z","updated_at":"2015-05-09T20:48:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"401149ec177096c3bddc280c4219e0d17c29e5b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/restic/restic/pulls/179/commits","review_comments_url":"https://api.github.com/repos/restic/restic/pulls/179/comments","review_comment_url":"https://api.github.com/repos/restic/restic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/restic/restic/issues/179/comments","statuses_url":"https://api.github.com/repos/restic/restic/statuses/c0eee479803f709b0d1212aadd007de9ba6a7b42","head":{"label":"restic:refactor-integration-tests","ref":"refactor-integration-tests","sha":"c0eee479803f709b0d1212aadd007de9ba6a7b42","user":{"login":"restic","id":10073512,"avatar_url":"https://avatars.githubusercontent.com/u/10073512?v=3","gravatar_id":"","url":"https://api.github.com/users/restic","html_url":"https://github.com/restic","followers_url":"https://api.github.com/users/restic/followers","following_url":"https://api.github.com/users/restic/following{/other_user}","gists_url":"https://api.github.com/users/restic/gists{/gist_id}","starred_url":"https://api.github.com/users/restic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/restic/subscriptions","organizations_url":"https://api.github.com/users/restic/orgs","repos_url":"https://api.github.com/users/restic/repos","events_url":"https://api.github.com/users/restic/events{/privacy}","received_events_url":"https://api.github.com/users/restic/received_events","type":"Organization","site_admin":false},"repo":{"id":19205896,"name":"restic","full_name":"restic/restic","owner":{"login":"restic","id":10073512,"avatar_url":"https://avatars.githubusercontent.com/u/10073512?v=3","gravatar_id":"","url":"https://api.github.com/users/restic","html_url":"https://github.com/restic","followers_url":"https://api.github.com/users/restic/followers","following_url":"https://api.github.com/users/restic/following{/other_user}","gists_url":"https://api.github.com/users/restic/gists{/gist_id}","starred_url":"https://api.github.com/users/restic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/restic/subscriptions","organizations_url":"https://api.github.com/users/restic/orgs","repos_url":"https://api.github.com/users/restic/repos","events_url":"https://api.github.com/users/restic/events{/privacy}","received_events_url":"https://api.github.com/users/restic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/restic/restic","description":"restic backup program","fork":false,"url":"https://api.github.com/repos/restic/restic","forks_url":"https://api.github.com/repos/restic/restic/forks","keys_url":"https://api.github.com/repos/restic/restic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/restic/restic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/restic/restic/teams","hooks_url":"https://api.github.com/repos/restic/restic/hooks","issue_events_url":"https://api.github.com/repos/restic/restic/issues/events{/number}","events_url":"https://api.github.com/repos/restic/restic/events","assignees_url":"https://api.github.com/repos/restic/restic/assignees{/user}","branches_url":"https://api.github.com/repos/restic/restic/branches{/branch}","tags_url":"https://api.github.com/repos/restic/restic/tags","blobs_url":"https://api.github.com/repos/restic/restic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/restic/restic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/restic/restic/git/refs{/sha}","trees_url":"https://api.github.com/repos/restic/restic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/restic/restic/statuses/{sha}","languages_url":"https://api.github.com/repos/restic/restic/languages","stargazers_url":"https://api.github.com/repos/restic/restic/stargazers","contributors_url":"https://api.github.com/repos/restic/restic/contributors","subscribers_url":"https://api.github.com/repos/restic/restic/subscribers","subscription_url":"https://api.github.com/repos/restic/restic/subscription","commits_url":"https://api.github.com/repos/restic/restic/commits{/sha}","git_commits_url":"https://api.github.com/repos/restic/restic/git/commits{/sha}","comments_url":"https://api.github.com/repos/restic/restic/comments{/number}","issue_comment_url":"https://api.github.com/repos/restic/restic/issues/comments{/number}","contents_url":"https://api.github.com/repos/restic/restic/contents/{+path}","compare_url":"https://api.github.com/repos/restic/restic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/restic/restic/merges","archive_url":"https://api.github.com/repos/restic/restic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/restic/restic/downloads","issues_url":"https://api.github.com/repos/restic/restic/issues{/number}","pulls_url":"https://api.github.com/repos/restic/restic/pulls{/number}","milestones_url":"https://api.github.com/repos/restic/restic/milestones{/number}","notifications_url":"https://api.github.com/repos/restic/restic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/restic/restic/labels{/name}","releases_url":"https://api.github.com/repos/restic/restic/releases{/id}","created_at":"2014-04-27T14:07:58Z","updated_at":"2015-05-06T21:43:46Z","pushed_at":"2015-05-09T20:30:39Z","git_url":"git://github.com/restic/restic.git","ssh_url":"git@github.com:restic/restic.git","clone_url":"https://github.com/restic/restic.git","svn_url":"https://github.com/restic/restic","homepage":"","size":4366,"stargazers_count":115,"watchers_count":115,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":69,"forks":13,"open_issues":69,"watchers":115,"default_branch":"master"}},"base":{"label":"restic:master","ref":"master","sha":"cbc61fffe897336ffe8451e437376cfd8e27763f","user":{"login":"restic","id":10073512,"avatar_url":"https://avatars.githubusercontent.com/u/10073512?v=3","gravatar_id":"","url":"https://api.github.com/users/restic","html_url":"https://github.com/restic","followers_url":"https://api.github.com/users/restic/followers","following_url":"https://api.github.com/users/restic/following{/other_user}","gists_url":"https://api.github.com/users/restic/gists{/gist_id}","starred_url":"https://api.github.com/users/restic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/restic/subscriptions","organizations_url":"https://api.github.com/users/restic/orgs","repos_url":"https://api.github.com/users/restic/repos","events_url":"https://api.github.com/users/restic/events{/privacy}","received_events_url":"https://api.github.com/users/restic/received_events","type":"Organization","site_admin":false},"repo":{"id":19205896,"name":"restic","full_name":"restic/restic","owner":{"login":"restic","id":10073512,"avatar_url":"https://avatars.githubusercontent.com/u/10073512?v=3","gravatar_id":"","url":"https://api.github.com/users/restic","html_url":"https://github.com/restic","followers_url":"https://api.github.com/users/restic/followers","following_url":"https://api.github.com/users/restic/following{/other_user}","gists_url":"https://api.github.com/users/restic/gists{/gist_id}","starred_url":"https://api.github.com/users/restic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/restic/subscriptions","organizations_url":"https://api.github.com/users/restic/orgs","repos_url":"https://api.github.com/users/restic/repos","events_url":"https://api.github.com/users/restic/events{/privacy}","received_events_url":"https://api.github.com/users/restic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/restic/restic","description":"restic backup program","fork":false,"url":"https://api.github.com/repos/restic/restic","forks_url":"https://api.github.com/repos/restic/restic/forks","keys_url":"https://api.github.com/repos/restic/restic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/restic/restic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/restic/restic/teams","hooks_url":"https://api.github.com/repos/restic/restic/hooks","issue_events_url":"https://api.github.com/repos/restic/restic/issues/events{/number}","events_url":"https://api.github.com/repos/restic/restic/events","assignees_url":"https://api.github.com/repos/restic/restic/assignees{/user}","branches_url":"https://api.github.com/repos/restic/restic/branches{/branch}","tags_url":"https://api.github.com/repos/restic/restic/tags","blobs_url":"https://api.github.com/repos/restic/restic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/restic/restic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/restic/restic/git/refs{/sha}","trees_url":"https://api.github.com/repos/restic/restic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/restic/restic/statuses/{sha}","languages_url":"https://api.github.com/repos/restic/restic/languages","stargazers_url":"https://api.github.com/repos/restic/restic/stargazers","contributors_url":"https://api.github.com/repos/restic/restic/contributors","subscribers_url":"https://api.github.com/repos/restic/restic/subscribers","subscription_url":"https://api.github.com/repos/restic/restic/subscription","commits_url":"https://api.github.com/repos/restic/restic/commits{/sha}","git_commits_url":"https://api.github.com/repos/restic/restic/git/commits{/sha}","comments_url":"https://api.github.com/repos/restic/restic/comments{/number}","issue_comment_url":"https://api.github.com/repos/restic/restic/issues/comments{/number}","contents_url":"https://api.github.com/repos/restic/restic/contents/{+path}","compare_url":"https://api.github.com/repos/restic/restic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/restic/restic/merges","archive_url":"https://api.github.com/repos/restic/restic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/restic/restic/downloads","issues_url":"https://api.github.com/repos/restic/restic/issues{/number}","pulls_url":"https://api.github.com/repos/restic/restic/pulls{/number}","milestones_url":"https://api.github.com/repos/restic/restic/milestones{/number}","notifications_url":"https://api.github.com/repos/restic/restic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/restic/restic/labels{/name}","releases_url":"https://api.github.com/repos/restic/restic/releases{/id}","created_at":"2014-04-27T14:07:58Z","updated_at":"2015-05-06T21:43:46Z","pushed_at":"2015-05-09T20:30:39Z","git_url":"git://github.com/restic/restic.git","ssh_url":"git@github.com:restic/restic.git","clone_url":"https://github.com/restic/restic.git","svn_url":"https://github.com/restic/restic","homepage":"","size":4366,"stargazers_count":115,"watchers_count":115,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":69,"forks":13,"open_issues":69,"watchers":115,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/restic/restic/pulls/179"},"html":{"href":"https://github.com/restic/restic/pull/179"},"issue":{"href":"https://api.github.com/repos/restic/restic/issues/179"},"comments":{"href":"https://api.github.com/repos/restic/restic/issues/179/comments"},"review_comments":{"href":"https://api.github.com/repos/restic/restic/pulls/179/comments"},"review_comment":{"href":"https://api.github.com/repos/restic/restic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/restic/restic/pulls/179/commits"},"statuses":{"href":"https://api.github.com/repos/restic/restic/statuses/c0eee479803f709b0d1212aadd007de9ba6a7b42"}}}}