{"action":"created","comment":{"url":"https://api.github.com/repos/18F/laptop/pulls/comments/91568811","pull_request_review_id":12078781,"id":91568811,"diff_hunk":"@@ -0,0 +1,89 @@\n+#!/usr/bin/env bats\n+#\n+# bats test file for testing git seekrets and\n+# seekrets rulesets\n+#\n+# Prerequisites:\n+#     * git seekrets is installed (cf. seekrets-install)\n+#\n+# Installation:\n+#     * Use the laptop script via ~/.laptop.local\n+#\n+#              echo 'bats' >> ~/.laptop.local\n+#\n+#     * homebrew method\n+#\n+#              brew install bats\n+#\n+# Running Tests:\n+#\n+#              bats seekrets.bat\n+\n+load test_helper\n+\n+@test \"no args gives usage instructions\" {\n+    run git-seekret\n+    [ $status -eq 0 ]\n+    [ $(expr \"${lines[2]}\" : \"USAGE:\") -ne 0 ]\n+}\n+\n+@test \"option --version prints version number\" {\n+    run git-seekret --version\n+    [ $status -eq 0 ]\n+    [ $(expr \"$output\" : \"git-seekret version [0-9][0-9.]*\") -ne 0 ]\n+}\n+\n+@test \"config command with no options shows config\" {\n+    run git-seekret rules\n+    [ $status -eq 0 ]\n+    [ $(expr \"${lines[0]}\" : \"List of rules:\") -ne 0 ]\n+}\n+\n+@test \"rules command with no options gives a listing of rules\" {\n+    run git-seekret rules\n+    [ $status -eq 0 ]\n+    [ $(expr \"${lines[0]}\" : \"List of rules:\") -ne 0 ]\n+}\n+\n+@test \"git-seekrets does find aws secrets in test repo\" {\n+    run addFileWithAwsSecrets\n+    [ $status -gt 0 ]\n+}\n+\n+@test \"git-seekrets does find aws accounts in test repo\" {\n+    run addFileWithAwsAccounts\n+    [ $status -gt 0 ]\n+}\n+\n+@test \"git-seekrets does find newrelic secrets in test repo\" {\n+    run addFileWithNewRelicSecrets\n+    [ $status -gt 0 ]\n+}\n+\n+@test \"git-seekrets does not find newrelic false positives in test repo\" {\n+    run addFileWithFalseNewrelicSecrets\n+    [ $(expr \"${lines[1]}\" : \"Found Secrets: 0\") -eq 0 ]","path":"test/seekrets.bats","position":65,"original_position":65,"commit_id":"f951d752bc068aca4ae7f2c66354ca540223b489","original_commit_id":"f951d752bc068aca4ae7f2c66354ca540223b489","user":{"login":"LinuxBozo","id":723420,"avatar_url":"https://avatars.githubusercontent.com/u/723420?v=3","gravatar_id":"","url":"https://api.github.com/users/LinuxBozo","html_url":"https://github.com/LinuxBozo","followers_url":"https://api.github.com/users/LinuxBozo/followers","following_url":"https://api.github.com/users/LinuxBozo/following{/other_user}","gists_url":"https://api.github.com/users/LinuxBozo/gists{/gist_id}","starred_url":"https://api.github.com/users/LinuxBozo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinuxBozo/subscriptions","organizations_url":"https://api.github.com/users/LinuxBozo/orgs","repos_url":"https://api.github.com/users/LinuxBozo/repos","events_url":"https://api.github.com/users/LinuxBozo/events{/privacy}","received_events_url":"https://api.github.com/users/LinuxBozo/received_events","type":"User","site_admin":false},"body":"This test fails. Going by previous tests, shouldn't this be `-ne 0`?","created_at":"2016-12-08T17:54:56Z","updated_at":"2016-12-08T17:56:07Z","html_url":"https://github.com/18F/laptop/pull/87#discussion_r91568811","pull_request_url":"https://api.github.com/repos/18F/laptop/pulls/87","_links":{"self":{"href":"https://api.github.com/repos/18F/laptop/pulls/comments/91568811"},"html":{"href":"https://github.com/18F/laptop/pull/87#discussion_r91568811"},"pull_request":{"href":"https://api.github.com/repos/18F/laptop/pulls/87"}}},"pull_request":{"url":"https://api.github.com/repos/18F/laptop/pulls/87","id":93018104,"html_url":"https://github.com/18F/laptop/pull/87","diff_url":"https://github.com/18F/laptop/pull/87.diff","patch_url":"https://github.com/18F/laptop/pull/87.patch","issue_url":"https://api.github.com/repos/18F/laptop/issues/87","number":87,"state":"open","locked":false,"title":"#74: Testing of seekrets rulesets using bats","user":{"login":"rogeruiz","id":706004,"avatar_url":"https://avatars.githubusercontent.com/u/706004?v=3","gravatar_id":"","url":"https://api.github.com/users/rogeruiz","html_url":"https://github.com/rogeruiz","followers_url":"https://api.github.com/users/rogeruiz/followers","following_url":"https://api.github.com/users/rogeruiz/following{/other_user}","gists_url":"https://api.github.com/users/rogeruiz/gists{/gist_id}","starred_url":"https://api.github.com/users/rogeruiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogeruiz/subscriptions","organizations_url":"https://api.github.com/users/rogeruiz/orgs","repos_url":"https://api.github.com/users/rogeruiz/repos","events_url":"https://api.github.com/users/rogeruiz/events{/privacy}","received_events_url":"https://api.github.com/users/rogeruiz/received_events","type":"User","site_admin":false},"body":"* basic functional tests for git-seekrets","created_at":"2016-11-09T18:53:29Z","updated_at":"2016-12-08T17:56:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a87f484309c852c938b1edc27c730ef538d20100","assignee":{"login":"alain-hoang","id":20934414,"avatar_url":"https://avatars.githubusercontent.com/u/20934414?v=3","gravatar_id":"","url":"https://api.github.com/users/alain-hoang","html_url":"https://github.com/alain-hoang","followers_url":"https://api.github.com/users/alain-hoang/followers","following_url":"https://api.github.com/users/alain-hoang/following{/other_user}","gists_url":"https://api.github.com/users/alain-hoang/gists{/gist_id}","starred_url":"https://api.github.com/users/alain-hoang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alain-hoang/subscriptions","organizations_url":"https://api.github.com/users/alain-hoang/orgs","repos_url":"https://api.github.com/users/alain-hoang/repos","events_url":"https://api.github.com/users/alain-hoang/events{/privacy}","received_events_url":"https://api.github.com/users/alain-hoang/received_events","type":"User","site_admin":false},"assignees":[{"login":"alain-hoang","id":20934414,"avatar_url":"https://avatars.githubusercontent.com/u/20934414?v=3","gravatar_id":"","url":"https://api.github.com/users/alain-hoang","html_url":"https://github.com/alain-hoang","followers_url":"https://api.github.com/users/alain-hoang/followers","following_url":"https://api.github.com/users/alain-hoang/following{/other_user}","gists_url":"https://api.github.com/users/alain-hoang/gists{/gist_id}","starred_url":"https://api.github.com/users/alain-hoang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alain-hoang/subscriptions","organizations_url":"https://api.github.com/users/alain-hoang/orgs","repos_url":"https://api.github.com/users/alain-hoang/repos","events_url":"https://api.github.com/users/alain-hoang/events{/privacy}","received_events_url":"https://api.github.com/users/alain-hoang/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/18F/laptop/pulls/87/commits","review_comments_url":"https://api.github.com/repos/18F/laptop/pulls/87/comments","review_comment_url":"https://api.github.com/repos/18F/laptop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/18F/laptop/issues/87/comments","statuses_url":"https://api.github.com/repos/18F/laptop/statuses/f951d752bc068aca4ae7f2c66354ca540223b489","head":{"label":"18F:seekrets-bats","ref":"seekrets-bats","sha":"f951d752bc068aca4ae7f2c66354ca540223b489","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":31439762,"name":"laptop","full_name":"18F/laptop","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/laptop","description":"A shell script which turns your Mac into an awesome web development machine.","fork":false,"url":"https://api.github.com/repos/18F/laptop","forks_url":"https://api.github.com/repos/18F/laptop/forks","keys_url":"https://api.github.com/repos/18F/laptop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/laptop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/laptop/teams","hooks_url":"https://api.github.com/repos/18F/laptop/hooks","issue_events_url":"https://api.github.com/repos/18F/laptop/issues/events{/number}","events_url":"https://api.github.com/repos/18F/laptop/events","assignees_url":"https://api.github.com/repos/18F/laptop/assignees{/user}","branches_url":"https://api.github.com/repos/18F/laptop/branches{/branch}","tags_url":"https://api.github.com/repos/18F/laptop/tags","blobs_url":"https://api.github.com/repos/18F/laptop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/laptop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/laptop/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/laptop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/laptop/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/laptop/languages","stargazers_url":"https://api.github.com/repos/18F/laptop/stargazers","contributors_url":"https://api.github.com/repos/18F/laptop/contributors","subscribers_url":"https://api.github.com/repos/18F/laptop/subscribers","subscription_url":"https://api.github.com/repos/18F/laptop/subscription","commits_url":"https://api.github.com/repos/18F/laptop/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/laptop/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/laptop/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/laptop/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/laptop/contents/{+path}","compare_url":"https://api.github.com/repos/18F/laptop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/laptop/merges","archive_url":"https://api.github.com/repos/18F/laptop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/laptop/downloads","issues_url":"https://api.github.com/repos/18F/laptop/issues{/number}","pulls_url":"https://api.github.com/repos/18F/laptop/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/laptop/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/laptop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/laptop/labels{/name}","releases_url":"https://api.github.com/repos/18F/laptop/releases{/id}","deployments_url":"https://api.github.com/repos/18F/laptop/deployments","created_at":"2015-02-27T21:23:51Z","updated_at":"2016-11-27T19:57:21Z","pushed_at":"2016-12-08T16:53:42Z","git_url":"git://github.com/18F/laptop.git","ssh_url":"git@github.com:18F/laptop.git","clone_url":"https://github.com/18F/laptop.git","svn_url":"https://github.com/18F/laptop","homepage":null,"size":148,"stargazers_count":163,"watchers_count":163,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":45,"mirror_url":null,"open_issues_count":20,"forks":45,"open_issues":20,"watchers":163,"default_branch":"master"}},"base":{"label":"18F:seekret","ref":"seekret","sha":"786415c53bed13d5be901d1a93dea5503196b7c8","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":31439762,"name":"laptop","full_name":"18F/laptop","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/laptop","description":"A shell script which turns your Mac into an awesome web development machine.","fork":false,"url":"https://api.github.com/repos/18F/laptop","forks_url":"https://api.github.com/repos/18F/laptop/forks","keys_url":"https://api.github.com/repos/18F/laptop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/laptop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/laptop/teams","hooks_url":"https://api.github.com/repos/18F/laptop/hooks","issue_events_url":"https://api.github.com/repos/18F/laptop/issues/events{/number}","events_url":"https://api.github.com/repos/18F/laptop/events","assignees_url":"https://api.github.com/repos/18F/laptop/assignees{/user}","branches_url":"https://api.github.com/repos/18F/laptop/branches{/branch}","tags_url":"https://api.github.com/repos/18F/laptop/tags","blobs_url":"https://api.github.com/repos/18F/laptop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/laptop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/laptop/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/laptop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/laptop/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/laptop/languages","stargazers_url":"https://api.github.com/repos/18F/laptop/stargazers","contributors_url":"https://api.github.com/repos/18F/laptop/contributors","subscribers_url":"https://api.github.com/repos/18F/laptop/subscribers","subscription_url":"https://api.github.com/repos/18F/laptop/subscription","commits_url":"https://api.github.com/repos/18F/laptop/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/laptop/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/laptop/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/laptop/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/laptop/contents/{+path}","compare_url":"https://api.github.com/repos/18F/laptop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/laptop/merges","archive_url":"https://api.github.com/repos/18F/laptop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/laptop/downloads","issues_url":"https://api.github.com/repos/18F/laptop/issues{/number}","pulls_url":"https://api.github.com/repos/18F/laptop/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/laptop/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/laptop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/laptop/labels{/name}","releases_url":"https://api.github.com/repos/18F/laptop/releases{/id}","deployments_url":"https://api.github.com/repos/18F/laptop/deployments","created_at":"2015-02-27T21:23:51Z","updated_at":"2016-11-27T19:57:21Z","pushed_at":"2016-12-08T16:53:42Z","git_url":"git://github.com/18F/laptop.git","ssh_url":"git@github.com:18F/laptop.git","clone_url":"https://github.com/18F/laptop.git","svn_url":"https://github.com/18F/laptop","homepage":null,"size":148,"stargazers_count":163,"watchers_count":163,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":45,"mirror_url":null,"open_issues_count":20,"forks":45,"open_issues":20,"watchers":163,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/18F/laptop/pulls/87"},"html":{"href":"https://github.com/18F/laptop/pull/87"},"issue":{"href":"https://api.github.com/repos/18F/laptop/issues/87"},"comments":{"href":"https://api.github.com/repos/18F/laptop/issues/87/comments"},"review_comments":{"href":"https://api.github.com/repos/18F/laptop/pulls/87/comments"},"review_comment":{"href":"https://api.github.com/repos/18F/laptop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/18F/laptop/pulls/87/commits"},"statuses":{"href":"https://api.github.com/repos/18F/laptop/statuses/f951d752bc068aca4ae7f2c66354ca540223b489"}}}}
{"actor":{"display_login":"LinuxBozo"}}