{"action":"created","comment":{"url":"https://api.github.com/repos/strongloop/strong-oracle/pulls/comments/35154912","id":35154912,"diff_hunk":"@@ -0,0 +1,47 @@\n+var async = require('async');\n+var fs = require('fs');\n+var settings = require('./tests-settings.js');\n+var oracle = require(\"./\")(settings);\n+var assert = require('assert');\n+\n+var raw = fs.readFileSync('./test/test.sql').toString('utf8');\n+var statements = [];\n+var stmt = '';\n+// split test/test.sql file into statements, but strip any trailing ;s unless\n+// they are at the end of an indented line, wich indicates a substatement.\n+raw.split('\\n').forEach(function(line) {\n+  if (/\\//.test(line) || /^\\s+$/.test(line)) {\n+    return;\n+  }\n+  if (/^\\S+.*;$/.test(line)) {\n+    if (!/^end;$/i.test(line)) {\n+      stmt += line.slice(0, line.length - 1);","path":"pretest.js","position":18,"original_position":18,"commit_id":"a03e6d472eb595a68eefb37dc50281922d4c2e47","original_commit_id":"a03e6d472eb595a68eefb37dc50281922d4c2e47","user":{"login":"bnoordhuis","id":275871,"avatar_url":"https://avatars.githubusercontent.com/u/275871?v=3","gravatar_id":"","url":"https://api.github.com/users/bnoordhuis","html_url":"https://github.com/bnoordhuis","followers_url":"https://api.github.com/users/bnoordhuis/followers","following_url":"https://api.github.com/users/bnoordhuis/following{/other_user}","gists_url":"https://api.github.com/users/bnoordhuis/gists{/gist_id}","starred_url":"https://api.github.com/users/bnoordhuis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnoordhuis/subscriptions","organizations_url":"https://api.github.com/users/bnoordhuis/orgs","repos_url":"https://api.github.com/users/bnoordhuis/repos","events_url":"https://api.github.com/users/bnoordhuis/events{/privacy}","received_events_url":"https://api.github.com/users/bnoordhuis/received_events","type":"User","site_admin":false},"body":"`.slice(0, -1)`?","created_at":"2015-07-21T21:09:28Z","updated_at":"2015-07-21T21:09:28Z","html_url":"https://github.com/strongloop/strong-oracle/pull/43#discussion_r35154912","pull_request_url":"https://api.github.com/repos/strongloop/strong-oracle/pulls/43","_links":{"self":{"href":"https://api.github.com/repos/strongloop/strong-oracle/pulls/comments/35154912"},"html":{"href":"https://github.com/strongloop/strong-oracle/pull/43#discussion_r35154912"},"pull_request":{"href":"https://api.github.com/repos/strongloop/strong-oracle/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/strongloop/strong-oracle/pulls/43","id":40496427,"html_url":"https://github.com/strongloop/strong-oracle/pull/43","diff_url":"https://github.com/strongloop/strong-oracle/pull/43.diff","patch_url":"https://github.com/strongloop/strong-oracle/pull/43.patch","issue_url":"https://api.github.com/repos/strongloop/strong-oracle/issues/43","number":43,"state":"open","locked":false,"title":"test: allow tests to use CI provided DB","user":{"login":"rmg","id":17978,"avatar_url":"https://avatars.githubusercontent.com/u/17978?v=3","gravatar_id":"","url":"https://api.github.com/users/rmg","html_url":"https://github.com/rmg","followers_url":"https://api.github.com/users/rmg/followers","following_url":"https://api.github.com/users/rmg/following{/other_user}","gists_url":"https://api.github.com/users/rmg/gists{/gist_id}","starred_url":"https://api.github.com/users/rmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmg/subscriptions","organizations_url":"https://api.github.com/users/rmg/orgs","repos_url":"https://api.github.com/users/rmg/repos","events_url":"https://api.github.com/users/rmg/events{/privacy}","received_events_url":"https://api.github.com/users/rmg/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-21T19:44:11Z","updated_at":"2015-07-21T21:09:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"376c96db39625a0132bec0f7ad3ff9fd90b508b8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/strongloop/strong-oracle/pulls/43/commits","review_comments_url":"https://api.github.com/repos/strongloop/strong-oracle/pulls/43/comments","review_comment_url":"https://api.github.com/repos/strongloop/strong-oracle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strongloop/strong-oracle/issues/43/comments","statuses_url":"https://api.github.com/repos/strongloop/strong-oracle/statuses/a03e6d472eb595a68eefb37dc50281922d4c2e47","head":{"label":"strongloop:non-local-tests","ref":"non-local-tests","sha":"a03e6d472eb595a68eefb37dc50281922d4c2e47","user":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"repo":{"id":17257750,"name":"strong-oracle","full_name":"strongloop/strong-oracle","owner":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongloop/strong-oracle","description":"Node.js Driver for Oracle databases","fork":false,"url":"https://api.github.com/repos/strongloop/strong-oracle","forks_url":"https://api.github.com/repos/strongloop/strong-oracle/forks","keys_url":"https://api.github.com/repos/strongloop/strong-oracle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/strong-oracle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/strong-oracle/teams","hooks_url":"https://api.github.com/repos/strongloop/strong-oracle/hooks","issue_events_url":"https://api.github.com/repos/strongloop/strong-oracle/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/strong-oracle/events","assignees_url":"https://api.github.com/repos/strongloop/strong-oracle/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/strong-oracle/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/strong-oracle/tags","blobs_url":"https://api.github.com/repos/strongloop/strong-oracle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/strong-oracle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/strong-oracle/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/strong-oracle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/strong-oracle/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/strong-oracle/languages","stargazers_url":"https://api.github.com/repos/strongloop/strong-oracle/stargazers","contributors_url":"https://api.github.com/repos/strongloop/strong-oracle/contributors","subscribers_url":"https://api.github.com/repos/strongloop/strong-oracle/subscribers","subscription_url":"https://api.github.com/repos/strongloop/strong-oracle/subscription","commits_url":"https://api.github.com/repos/strongloop/strong-oracle/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/strong-oracle/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/strong-oracle/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/strong-oracle/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/strong-oracle/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/strong-oracle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/strong-oracle/merges","archive_url":"https://api.github.com/repos/strongloop/strong-oracle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/strong-oracle/downloads","issues_url":"https://api.github.com/repos/strongloop/strong-oracle/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/strong-oracle/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/strong-oracle/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/strong-oracle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/strong-oracle/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/strong-oracle/releases{/id}","created_at":"2014-02-27T17:35:41Z","updated_at":"2015-07-02T07:00:14Z","pushed_at":"2015-07-21T21:04:27Z","git_url":"git://github.com/strongloop/strong-oracle.git","ssh_url":"git@github.com:strongloop/strong-oracle.git","clone_url":"https://github.com/strongloop/strong-oracle.git","svn_url":"https://github.com/strongloop/strong-oracle","homepage":null,"size":1002,"stargazers_count":26,"watchers_count":26,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":8,"forks":14,"open_issues":8,"watchers":26,"default_branch":"master"}},"base":{"label":"strongloop:master","ref":"master","sha":"1cab23ea2b20078b6f447246c6895876851b17a8","user":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"repo":{"id":17257750,"name":"strong-oracle","full_name":"strongloop/strong-oracle","owner":{"login":"strongloop","id":3020012,"avatar_url":"https://avatars.githubusercontent.com/u/3020012?v=3","gravatar_id":"","url":"https://api.github.com/users/strongloop","html_url":"https://github.com/strongloop","followers_url":"https://api.github.com/users/strongloop/followers","following_url":"https://api.github.com/users/strongloop/following{/other_user}","gists_url":"https://api.github.com/users/strongloop/gists{/gist_id}","starred_url":"https://api.github.com/users/strongloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strongloop/subscriptions","organizations_url":"https://api.github.com/users/strongloop/orgs","repos_url":"https://api.github.com/users/strongloop/repos","events_url":"https://api.github.com/users/strongloop/events{/privacy}","received_events_url":"https://api.github.com/users/strongloop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strongloop/strong-oracle","description":"Node.js Driver for Oracle databases","fork":false,"url":"https://api.github.com/repos/strongloop/strong-oracle","forks_url":"https://api.github.com/repos/strongloop/strong-oracle/forks","keys_url":"https://api.github.com/repos/strongloop/strong-oracle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strongloop/strong-oracle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strongloop/strong-oracle/teams","hooks_url":"https://api.github.com/repos/strongloop/strong-oracle/hooks","issue_events_url":"https://api.github.com/repos/strongloop/strong-oracle/issues/events{/number}","events_url":"https://api.github.com/repos/strongloop/strong-oracle/events","assignees_url":"https://api.github.com/repos/strongloop/strong-oracle/assignees{/user}","branches_url":"https://api.github.com/repos/strongloop/strong-oracle/branches{/branch}","tags_url":"https://api.github.com/repos/strongloop/strong-oracle/tags","blobs_url":"https://api.github.com/repos/strongloop/strong-oracle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strongloop/strong-oracle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strongloop/strong-oracle/git/refs{/sha}","trees_url":"https://api.github.com/repos/strongloop/strong-oracle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strongloop/strong-oracle/statuses/{sha}","languages_url":"https://api.github.com/repos/strongloop/strong-oracle/languages","stargazers_url":"https://api.github.com/repos/strongloop/strong-oracle/stargazers","contributors_url":"https://api.github.com/repos/strongloop/strong-oracle/contributors","subscribers_url":"https://api.github.com/repos/strongloop/strong-oracle/subscribers","subscription_url":"https://api.github.com/repos/strongloop/strong-oracle/subscription","commits_url":"https://api.github.com/repos/strongloop/strong-oracle/commits{/sha}","git_commits_url":"https://api.github.com/repos/strongloop/strong-oracle/git/commits{/sha}","comments_url":"https://api.github.com/repos/strongloop/strong-oracle/comments{/number}","issue_comment_url":"https://api.github.com/repos/strongloop/strong-oracle/issues/comments{/number}","contents_url":"https://api.github.com/repos/strongloop/strong-oracle/contents/{+path}","compare_url":"https://api.github.com/repos/strongloop/strong-oracle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strongloop/strong-oracle/merges","archive_url":"https://api.github.com/repos/strongloop/strong-oracle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strongloop/strong-oracle/downloads","issues_url":"https://api.github.com/repos/strongloop/strong-oracle/issues{/number}","pulls_url":"https://api.github.com/repos/strongloop/strong-oracle/pulls{/number}","milestones_url":"https://api.github.com/repos/strongloop/strong-oracle/milestones{/number}","notifications_url":"https://api.github.com/repos/strongloop/strong-oracle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strongloop/strong-oracle/labels{/name}","releases_url":"https://api.github.com/repos/strongloop/strong-oracle/releases{/id}","created_at":"2014-02-27T17:35:41Z","updated_at":"2015-07-02T07:00:14Z","pushed_at":"2015-07-21T21:04:27Z","git_url":"git://github.com/strongloop/strong-oracle.git","ssh_url":"git@github.com:strongloop/strong-oracle.git","clone_url":"https://github.com/strongloop/strong-oracle.git","svn_url":"https://github.com/strongloop/strong-oracle","homepage":null,"size":1002,"stargazers_count":26,"watchers_count":26,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":8,"forks":14,"open_issues":8,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strongloop/strong-oracle/pulls/43"},"html":{"href":"https://github.com/strongloop/strong-oracle/pull/43"},"issue":{"href":"https://api.github.com/repos/strongloop/strong-oracle/issues/43"},"comments":{"href":"https://api.github.com/repos/strongloop/strong-oracle/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/strongloop/strong-oracle/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/strongloop/strong-oracle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strongloop/strong-oracle/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/strongloop/strong-oracle/statuses/a03e6d472eb595a68eefb37dc50281922d4c2e47"}}}}