{"action":"created","comment":{"url":"https://api.github.com/repos/wikimedia/restbase/pulls/comments/23949930","id":23949930,"diff_hunk":"@@ -76,22 +76,41 @@ function findSpecs() {\n }\n \n function x2y(spec) {\n-    function test() {\n-        return preq.post({\n-            uri: server.config.baseURL + '/transform/' + spec.from.format + '/to/' + spec.to.format,\n-            headers: { 'content-type': 'application/json' },\n-            body: readFile(spec.from.src)\n-        })\n-        .then(function(res) {\n-            assert.deepEqual(res.status, 200);\n-            assert.deepEqual(res.body, readFile(spec.to.src));\n-        });\n+\n+    function test(bodyOnly) {\n+        return function () {\n+            var uri = server.config.baseURL + '/transform/' + spec.from.format +\n+                      '/to/' + spec.to.format + (bodyOnly ? '?bodyOnly' : '');\n+            return preq.post({\n+                uri: uri,\n+                headers: { 'content-type': 'application/json' },\n+                body: readFile(spec.from.src)\n+            })\n+            .then(function(res) {\n+                assert.deepEqual(res.status, 200);\n+                if (bodyOnly) {\n+                    assert.ok(/^<body>/.test(res.body));","path":"test/features/parsoid/transform.js","position":27,"original_position":27,"commit_id":"8f67c9f58ec63a888579c7e9b76e3ce27392a851","original_commit_id":"8f67c9f58ec63a888579c7e9b76e3ce27392a851","user":{"login":"gwicke","id":1225898,"avatar_url":"https://avatars.githubusercontent.com/u/1225898?v=3","gravatar_id":"","url":"https://api.github.com/users/gwicke","html_url":"https://github.com/gwicke","followers_url":"https://api.github.com/users/gwicke/followers","following_url":"https://api.github.com/users/gwicke/following{/other_user}","gists_url":"https://api.github.com/users/gwicke/gists{/gist_id}","starred_url":"https://api.github.com/users/gwicke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwicke/subscriptions","organizations_url":"https://api.github.com/users/gwicke/orgs","repos_url":"https://api.github.com/users/gwicke/repos","events_url":"https://api.github.com/users/gwicke/events{/privacy}","received_events_url":"https://api.github.com/users/gwicke/received_events","type":"User","site_admin":false},"body":"Similar here.","created_at":"2015-02-02T19:20:28Z","updated_at":"2015-02-02T19:20:28Z","html_url":"https://github.com/wikimedia/restbase/pull/153#discussion_r23949930","pull_request_url":"https://api.github.com/repos/wikimedia/restbase/pulls/153","_links":{"self":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/comments/23949930"},"html":{"href":"https://github.com/wikimedia/restbase/pull/153#discussion_r23949930"},"pull_request":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/153"}}},"pull_request":{"url":"https://api.github.com/repos/wikimedia/restbase/pulls/153","id":28492264,"html_url":"https://github.com/wikimedia/restbase/pull/153","diff_url":"https://github.com/wikimedia/restbase/pull/153.diff","patch_url":"https://github.com/wikimedia/restbase/pull/153.patch","issue_url":"https://api.github.com/repos/wikimedia/restbase/issues/153","number":153,"state":"open","locked":false,"title":"Add tests for bodyOnly field","user":{"login":"earldouglas","id":424946,"avatar_url":"https://avatars.githubusercontent.com/u/424946?v=3","gravatar_id":"","url":"https://api.github.com/users/earldouglas","html_url":"https://github.com/earldouglas","followers_url":"https://api.github.com/users/earldouglas/followers","following_url":"https://api.github.com/users/earldouglas/following{/other_user}","gists_url":"https://api.github.com/users/earldouglas/gists{/gist_id}","starred_url":"https://api.github.com/users/earldouglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/earldouglas/subscriptions","organizations_url":"https://api.github.com/users/earldouglas/orgs","repos_url":"https://api.github.com/users/earldouglas/repos","events_url":"https://api.github.com/users/earldouglas/events{/privacy}","received_events_url":"https://api.github.com/users/earldouglas/received_events","type":"User","site_admin":false},"body":"Candidate tests to cover the *allow an optional bodyOnly field* requirement from https://phabricator.wikimedia.org/T75955.\r\n\r\nNote: test failure is expected, as these tests are to-be-resolved in the TDD workflow.","created_at":"2015-02-02T18:47:17Z","updated_at":"2015-02-02T19:20:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8d649628d399a3070e135ef070cb56772cf5e9f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wikimedia/restbase/pulls/153/commits","review_comments_url":"https://api.github.com/repos/wikimedia/restbase/pulls/153/comments","review_comment_url":"https://api.github.com/repos/wikimedia/restbase/pulls/comments/{number}","comments_url":"https://api.github.com/repos/wikimedia/restbase/issues/153/comments","statuses_url":"https://api.github.com/repos/wikimedia/restbase/statuses/8f67c9f58ec63a888579c7e9b76e3ce27392a851","head":{"label":"earldouglas:phabriactor/T75955","ref":"phabriactor/T75955","sha":"8f67c9f58ec63a888579c7e9b76e3ce27392a851","user":{"login":"earldouglas","id":424946,"avatar_url":"https://avatars.githubusercontent.com/u/424946?v=3","gravatar_id":"","url":"https://api.github.com/users/earldouglas","html_url":"https://github.com/earldouglas","followers_url":"https://api.github.com/users/earldouglas/followers","following_url":"https://api.github.com/users/earldouglas/following{/other_user}","gists_url":"https://api.github.com/users/earldouglas/gists{/gist_id}","starred_url":"https://api.github.com/users/earldouglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/earldouglas/subscriptions","organizations_url":"https://api.github.com/users/earldouglas/orgs","repos_url":"https://api.github.com/users/earldouglas/repos","events_url":"https://api.github.com/users/earldouglas/events{/privacy}","received_events_url":"https://api.github.com/users/earldouglas/received_events","type":"User","site_admin":false},"repo":{"id":28698574,"name":"restbase","full_name":"earldouglas/restbase","owner":{"login":"earldouglas","id":424946,"avatar_url":"https://avatars.githubusercontent.com/u/424946?v=3","gravatar_id":"","url":"https://api.github.com/users/earldouglas","html_url":"https://github.com/earldouglas","followers_url":"https://api.github.com/users/earldouglas/followers","following_url":"https://api.github.com/users/earldouglas/following{/other_user}","gists_url":"https://api.github.com/users/earldouglas/gists{/gist_id}","starred_url":"https://api.github.com/users/earldouglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/earldouglas/subscriptions","organizations_url":"https://api.github.com/users/earldouglas/orgs","repos_url":"https://api.github.com/users/earldouglas/repos","events_url":"https://api.github.com/users/earldouglas/events{/privacy}","received_events_url":"https://api.github.com/users/earldouglas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/earldouglas/restbase","description":"Distributed storage with REST API & dispatcher for backend services","fork":true,"url":"https://api.github.com/repos/earldouglas/restbase","forks_url":"https://api.github.com/repos/earldouglas/restbase/forks","keys_url":"https://api.github.com/repos/earldouglas/restbase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/earldouglas/restbase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/earldouglas/restbase/teams","hooks_url":"https://api.github.com/repos/earldouglas/restbase/hooks","issue_events_url":"https://api.github.com/repos/earldouglas/restbase/issues/events{/number}","events_url":"https://api.github.com/repos/earldouglas/restbase/events","assignees_url":"https://api.github.com/repos/earldouglas/restbase/assignees{/user}","branches_url":"https://api.github.com/repos/earldouglas/restbase/branches{/branch}","tags_url":"https://api.github.com/repos/earldouglas/restbase/tags","blobs_url":"https://api.github.com/repos/earldouglas/restbase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/earldouglas/restbase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/earldouglas/restbase/git/refs{/sha}","trees_url":"https://api.github.com/repos/earldouglas/restbase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/earldouglas/restbase/statuses/{sha}","languages_url":"https://api.github.com/repos/earldouglas/restbase/languages","stargazers_url":"https://api.github.com/repos/earldouglas/restbase/stargazers","contributors_url":"https://api.github.com/repos/earldouglas/restbase/contributors","subscribers_url":"https://api.github.com/repos/earldouglas/restbase/subscribers","subscription_url":"https://api.github.com/repos/earldouglas/restbase/subscription","commits_url":"https://api.github.com/repos/earldouglas/restbase/commits{/sha}","git_commits_url":"https://api.github.com/repos/earldouglas/restbase/git/commits{/sha}","comments_url":"https://api.github.com/repos/earldouglas/restbase/comments{/number}","issue_comment_url":"https://api.github.com/repos/earldouglas/restbase/issues/comments/{number}","contents_url":"https://api.github.com/repos/earldouglas/restbase/contents/{+path}","compare_url":"https://api.github.com/repos/earldouglas/restbase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/earldouglas/restbase/merges","archive_url":"https://api.github.com/repos/earldouglas/restbase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/earldouglas/restbase/downloads","issues_url":"https://api.github.com/repos/earldouglas/restbase/issues{/number}","pulls_url":"https://api.github.com/repos/earldouglas/restbase/pulls{/number}","milestones_url":"https://api.github.com/repos/earldouglas/restbase/milestones{/number}","notifications_url":"https://api.github.com/repos/earldouglas/restbase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/earldouglas/restbase/labels{/name}","releases_url":"https://api.github.com/repos/earldouglas/restbase/releases{/id}","created_at":"2015-01-01T23:40:44Z","updated_at":"2015-01-27T05:38:35Z","pushed_at":"2015-02-02T19:08:14Z","git_url":"git://github.com/earldouglas/restbase.git","ssh_url":"git@github.com:earldouglas/restbase.git","clone_url":"https://github.com/earldouglas/restbase.git","svn_url":"https://github.com/earldouglas/restbase","homepage":"","size":1607,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wikimedia:features/parsoid","ref":"features/parsoid","sha":"09f9bc384047b336148cc39173cc5155fc38e767","user":{"login":"wikimedia","id":56668,"avatar_url":"https://avatars.githubusercontent.com/u/56668?v=3","gravatar_id":"","url":"https://api.github.com/users/wikimedia","html_url":"https://github.com/wikimedia","followers_url":"https://api.github.com/users/wikimedia/followers","following_url":"https://api.github.com/users/wikimedia/following{/other_user}","gists_url":"https://api.github.com/users/wikimedia/gists{/gist_id}","starred_url":"https://api.github.com/users/wikimedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wikimedia/subscriptions","organizations_url":"https://api.github.com/users/wikimedia/orgs","repos_url":"https://api.github.com/users/wikimedia/repos","events_url":"https://api.github.com/users/wikimedia/events{/privacy}","received_events_url":"https://api.github.com/users/wikimedia/received_events","type":"Organization","site_admin":false},"repo":{"id":19002414,"name":"restbase","full_name":"wikimedia/restbase","owner":{"login":"wikimedia","id":56668,"avatar_url":"https://avatars.githubusercontent.com/u/56668?v=3","gravatar_id":"","url":"https://api.github.com/users/wikimedia","html_url":"https://github.com/wikimedia","followers_url":"https://api.github.com/users/wikimedia/followers","following_url":"https://api.github.com/users/wikimedia/following{/other_user}","gists_url":"https://api.github.com/users/wikimedia/gists{/gist_id}","starred_url":"https://api.github.com/users/wikimedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wikimedia/subscriptions","organizations_url":"https://api.github.com/users/wikimedia/orgs","repos_url":"https://api.github.com/users/wikimedia/repos","events_url":"https://api.github.com/users/wikimedia/events{/privacy}","received_events_url":"https://api.github.com/users/wikimedia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wikimedia/restbase","description":"Distributed storage with REST API & dispatcher for backend services","fork":false,"url":"https://api.github.com/repos/wikimedia/restbase","forks_url":"https://api.github.com/repos/wikimedia/restbase/forks","keys_url":"https://api.github.com/repos/wikimedia/restbase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wikimedia/restbase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wikimedia/restbase/teams","hooks_url":"https://api.github.com/repos/wikimedia/restbase/hooks","issue_events_url":"https://api.github.com/repos/wikimedia/restbase/issues/events{/number}","events_url":"https://api.github.com/repos/wikimedia/restbase/events","assignees_url":"https://api.github.com/repos/wikimedia/restbase/assignees{/user}","branches_url":"https://api.github.com/repos/wikimedia/restbase/branches{/branch}","tags_url":"https://api.github.com/repos/wikimedia/restbase/tags","blobs_url":"https://api.github.com/repos/wikimedia/restbase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wikimedia/restbase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wikimedia/restbase/git/refs{/sha}","trees_url":"https://api.github.com/repos/wikimedia/restbase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wikimedia/restbase/statuses/{sha}","languages_url":"https://api.github.com/repos/wikimedia/restbase/languages","stargazers_url":"https://api.github.com/repos/wikimedia/restbase/stargazers","contributors_url":"https://api.github.com/repos/wikimedia/restbase/contributors","subscribers_url":"https://api.github.com/repos/wikimedia/restbase/subscribers","subscription_url":"https://api.github.com/repos/wikimedia/restbase/subscription","commits_url":"https://api.github.com/repos/wikimedia/restbase/commits{/sha}","git_commits_url":"https://api.github.com/repos/wikimedia/restbase/git/commits{/sha}","comments_url":"https://api.github.com/repos/wikimedia/restbase/comments{/number}","issue_comment_url":"https://api.github.com/repos/wikimedia/restbase/issues/comments/{number}","contents_url":"https://api.github.com/repos/wikimedia/restbase/contents/{+path}","compare_url":"https://api.github.com/repos/wikimedia/restbase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wikimedia/restbase/merges","archive_url":"https://api.github.com/repos/wikimedia/restbase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wikimedia/restbase/downloads","issues_url":"https://api.github.com/repos/wikimedia/restbase/issues{/number}","pulls_url":"https://api.github.com/repos/wikimedia/restbase/pulls{/number}","milestones_url":"https://api.github.com/repos/wikimedia/restbase/milestones{/number}","notifications_url":"https://api.github.com/repos/wikimedia/restbase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wikimedia/restbase/labels{/name}","releases_url":"https://api.github.com/repos/wikimedia/restbase/releases{/id}","created_at":"2014-04-21T18:35:00Z","updated_at":"2015-01-30T23:47:31Z","pushed_at":"2015-02-02T18:45:51Z","git_url":"git://github.com/wikimedia/restbase.git","ssh_url":"git@github.com:wikimedia/restbase.git","clone_url":"https://github.com/wikimedia/restbase.git","svn_url":"https://github.com/wikimedia/restbase","homepage":"","size":4099,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"open_issues_count":2,"forks":10,"open_issues":2,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/153"},"html":{"href":"https://github.com/wikimedia/restbase/pull/153"},"issue":{"href":"https://api.github.com/repos/wikimedia/restbase/issues/153"},"comments":{"href":"https://api.github.com/repos/wikimedia/restbase/issues/153/comments"},"review_comments":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/153/comments"},"review_comment":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/153/commits"},"statuses":{"href":"https://api.github.com/repos/wikimedia/restbase/statuses/8f67c9f58ec63a888579c7e9b76e3ce27392a851"}}}}