{"action":"created","comment":{"url":"https://api.github.com/repos/cloud-elements/churros/pulls/comments/178460687","pull_request_review_id":108521110,"id":178460687,"diff_hunk":"@@ -0,0 +1,29 @@\n+'use strict';\n+\n+const suite = require('core/suite');\n+const tools = require('core/tools');\n+const cloud = require('core/cloud');\n+const expect = require('chakram').expect;\n+const payload = tools.requirePayload(`${__dirname}/assets/custom-objects.json`);\n+\n+suite.forElement('marketing', 'custom-objects', { payload: payload }, (test) => {\n+  let customObjectName = 'afrinCustom_c', id;\n+  it('should allow R for /custom-objects, /custom-fields-templates and CRUD for /custom-objects{customObjectName}/custom-fields', () => {\n+    return cloud.get(test.api)\n+\t.then(r => cloud.get(`${test.api}/${customObjectName}/custom-fields-templates`))\n+\t.then(r => cloud.post(`${test.api}/${customObjectName}/custom-fields`, payload))\n+\t.then(r => id = r.body[0].marketoGUID)\n+\t.then(r => cloud.patch(`${test.api}/${customObjectName}/custom-fields/${id}`, payload))\n+\t.then(r => cloud.delete(`${test.api}/${customObjectName}/custom-fields/${id}`));\n+  });\n+  \n+  it('should allow S and cursor pagination for /custom-objects{customObjectName}/custom-fields', () => {","path":"src/test/elements/marketo/custom-objects.js","position":20,"original_position":20,"commit_id":"c28a96aaa726ad0d1922ab4737808b2f1a675a80","original_commit_id":"c28a96aaa726ad0d1922ab4737808b2f1a675a80","user":{"login":"AfrinChakure-GSLab","id":20634723,"avatar_url":"https://avatars2.githubusercontent.com/u/20634723?v=4","gravatar_id":"","url":"https://api.github.com/users/AfrinChakure-GSLab","html_url":"https://github.com/AfrinChakure-GSLab","followers_url":"https://api.github.com/users/AfrinChakure-GSLab/followers","following_url":"https://api.github.com/users/AfrinChakure-GSLab/following{/other_user}","gists_url":"https://api.github.com/users/AfrinChakure-GSLab/gists{/gist_id}","starred_url":"https://api.github.com/users/AfrinChakure-GSLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AfrinChakure-GSLab/subscriptions","organizations_url":"https://api.github.com/users/AfrinChakure-GSLab/orgs","repos_url":"https://api.github.com/users/AfrinChakure-GSLab/repos","events_url":"https://api.github.com/users/AfrinChakure-GSLab/events{/privacy}","received_events_url":"https://api.github.com/users/AfrinChakure-GSLab/received_events","type":"User","site_admin":false},"body":"For `test.should.supportNextPagePagination(1)` - it tests pagination on Parent resource i.e `/custom-objects` and not for `/custom-objects/{customObjectName}/custom-fields`. I need to do it for latter and not former. Hence I have kept the earlier implementation for testing pagination and did separate tests for S and pagination. Let me know your thoughts on this. Thank you.","created_at":"2018-04-01T15:10:19Z","updated_at":"2018-04-01T15:10:19Z","html_url":"https://github.com/cloud-elements/churros/pull/1513#discussion_r178460687","pull_request_url":"https://api.github.com/repos/cloud-elements/churros/pulls/1513","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/cloud-elements/churros/pulls/comments/178460687"},"html":{"href":"https://github.com/cloud-elements/churros/pull/1513#discussion_r178460687"},"pull_request":{"href":"https://api.github.com/repos/cloud-elements/churros/pulls/1513"}},"in_reply_to_id":178306234},"pull_request":{"url":"https://api.github.com/repos/cloud-elements/churros/pulls/1513","id":177740606,"html_url":"https://github.com/cloud-elements/churros/pull/1513","diff_url":"https://github.com/cloud-elements/churros/pull/1513.diff","patch_url":"https://github.com/cloud-elements/churros/pull/1513.patch","issue_url":"https://api.github.com/repos/cloud-elements/churros/issues/1513","number":1513,"state":"open","locked":false,"title":"Marketo : Added new APIs for Custom-objects ","user":{"login":"AfrinChakure-GSLab","id":20634723,"avatar_url":"https://avatars2.githubusercontent.com/u/20634723?v=4","gravatar_id":"","url":"https://api.github.com/users/AfrinChakure-GSLab","html_url":"https://github.com/AfrinChakure-GSLab","followers_url":"https://api.github.com/users/AfrinChakure-GSLab/followers","following_url":"https://api.github.com/users/AfrinChakure-GSLab/following{/other_user}","gists_url":"https://api.github.com/users/AfrinChakure-GSLab/gists{/gist_id}","starred_url":"https://api.github.com/users/AfrinChakure-GSLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AfrinChakure-GSLab/subscriptions","organizations_url":"https://api.github.com/users/AfrinChakure-GSLab/orgs","repos_url":"https://api.github.com/users/AfrinChakure-GSLab/repos","events_url":"https://api.github.com/users/AfrinChakure-GSLab/events{/privacy}","received_events_url":"https://api.github.com/users/AfrinChakure-GSLab/received_events","type":"User","site_admin":false},"body":"## Highlights\r\n Following APIs are supported for CustomObjects : \r\n- `GET /custom-objects`\r\n- `GET /custom-objects/{customObjectName}/custom-fields` \r\n- `GET /custom-objects/{customObjectName}/custom-fields-templates` \r\n- `POST /custom-objects/{customObjectName}/custom-fields` \r\n- `GET /custom-objects/{customObjectName}/custom-fields/{id}` \r\n- `PATCH /custom-objects/{customObjectName}/custom-fields/{id}` \r\n- `DELETE /custom-objects/{customObjectName}/custom-fields/{id}` \r\n\r\nPlease note that `afrinCustom_c` is a custom-object and `dedupeFieldafrin` is a custom-field, defined only via Marketo UI.\r\n\r\n## Screenshot\r\n![churros-2](https://user-images.githubusercontent.com/20634723/37970289-bf75bcca-31f0-11e8-896d-8f58e2709782.PNG)\r\n\r\n\r\n## Reference\r\n* [SOBA](https://github.com/cloud-elements/soba/pull/8344)\r\n\r\n## Closes\r\n* [US10078](https://rally1.rallydev.com/#/144349237612ud/detail/userstory/203863314560)\r\n* [US10553](https://rally1.rallydev.com/#/144349237612ud/detail/userstory/207973634500)\r\n","created_at":"2018-03-27T13:30:31Z","updated_at":"2018-04-01T15:10:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"56cd0df56d36f3fdf3a4555c2e6b0e98d0e13854","assignee":{"login":"AfrinChakure-GSLab","id":20634723,"avatar_url":"https://avatars2.githubusercontent.com/u/20634723?v=4","gravatar_id":"","url":"https://api.github.com/users/AfrinChakure-GSLab","html_url":"https://github.com/AfrinChakure-GSLab","followers_url":"https://api.github.com/users/AfrinChakure-GSLab/followers","following_url":"https://api.github.com/users/AfrinChakure-GSLab/following{/other_user}","gists_url":"https://api.github.com/users/AfrinChakure-GSLab/gists{/gist_id}","starred_url":"https://api.github.com/users/AfrinChakure-GSLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AfrinChakure-GSLab/subscriptions","organizations_url":"https://api.github.com/users/AfrinChakure-GSLab/orgs","repos_url":"https://api.github.com/users/AfrinChakure-GSLab/repos","events_url":"https://api.github.com/users/AfrinChakure-GSLab/events{/privacy}","received_events_url":"https://api.github.com/users/AfrinChakure-GSLab/received_events","type":"User","site_admin":false},"assignees":[{"login":"AfrinChakure-GSLab","id":20634723,"avatar_url":"https://avatars2.githubusercontent.com/u/20634723?v=4","gravatar_id":"","url":"https://api.github.com/users/AfrinChakure-GSLab","html_url":"https://github.com/AfrinChakure-GSLab","followers_url":"https://api.github.com/users/AfrinChakure-GSLab/followers","following_url":"https://api.github.com/users/AfrinChakure-GSLab/following{/other_user}","gists_url":"https://api.github.com/users/AfrinChakure-GSLab/gists{/gist_id}","starred_url":"https://api.github.com/users/AfrinChakure-GSLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AfrinChakure-GSLab/subscriptions","organizations_url":"https://api.github.com/users/AfrinChakure-GSLab/orgs","repos_url":"https://api.github.com/users/AfrinChakure-GSLab/repos","events_url":"https://api.github.com/users/AfrinChakure-GSLab/events{/privacy}","received_events_url":"https://api.github.com/users/AfrinChakure-GSLab/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cloud-elements/churros/pulls/1513/commits","review_comments_url":"https://api.github.com/repos/cloud-elements/churros/pulls/1513/comments","review_comment_url":"https://api.github.com/repos/cloud-elements/churros/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloud-elements/churros/issues/1513/comments","statuses_url":"https://api.github.com/repos/cloud-elements/churros/statuses/c28a96aaa726ad0d1922ab4737808b2f1a675a80","head":{"label":"cloud-elements:Marketo_custom","ref":"Marketo_custom","sha":"c28a96aaa726ad0d1922ab4737808b2f1a675a80","user":{"login":"cloud-elements","id":4693153,"avatar_url":"https://avatars1.githubusercontent.com/u/4693153?v=4","gravatar_id":"","url":"https://api.github.com/users/cloud-elements","html_url":"https://github.com/cloud-elements","followers_url":"https://api.github.com/users/cloud-elements/followers","following_url":"https://api.github.com/users/cloud-elements/following{/other_user}","gists_url":"https://api.github.com/users/cloud-elements/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-elements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-elements/subscriptions","organizations_url":"https://api.github.com/users/cloud-elements/orgs","repos_url":"https://api.github.com/users/cloud-elements/repos","events_url":"https://api.github.com/users/cloud-elements/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-elements/received_events","type":"Organization","site_admin":false},"repo":{"id":46356335,"name":"churros","full_name":"cloud-elements/churros","owner":{"login":"cloud-elements","id":4693153,"avatar_url":"https://avatars1.githubusercontent.com/u/4693153?v=4","gravatar_id":"","url":"https://api.github.com/users/cloud-elements","html_url":"https://github.com/cloud-elements","followers_url":"https://api.github.com/users/cloud-elements/followers","following_url":"https://api.github.com/users/cloud-elements/following{/other_user}","gists_url":"https://api.github.com/users/cloud-elements/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-elements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-elements/subscriptions","organizations_url":"https://api.github.com/users/cloud-elements/orgs","repos_url":"https://api.github.com/users/cloud-elements/repos","events_url":"https://api.github.com/users/cloud-elements/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-elements/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloud-elements/churros","description":":cop: Cloud Elements API testing framework","fork":false,"url":"https://api.github.com/repos/cloud-elements/churros","forks_url":"https://api.github.com/repos/cloud-elements/churros/forks","keys_url":"https://api.github.com/repos/cloud-elements/churros/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloud-elements/churros/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloud-elements/churros/teams","hooks_url":"https://api.github.com/repos/cloud-elements/churros/hooks","issue_events_url":"https://api.github.com/repos/cloud-elements/churros/issues/events{/number}","events_url":"https://api.github.com/repos/cloud-elements/churros/events","assignees_url":"https://api.github.com/repos/cloud-elements/churros/assignees{/user}","branches_url":"https://api.github.com/repos/cloud-elements/churros/branches{/branch}","tags_url":"https://api.github.com/repos/cloud-elements/churros/tags","blobs_url":"https://api.github.com/repos/cloud-elements/churros/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloud-elements/churros/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloud-elements/churros/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloud-elements/churros/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloud-elements/churros/statuses/{sha}","languages_url":"https://api.github.com/repos/cloud-elements/churros/languages","stargazers_url":"https://api.github.com/repos/cloud-elements/churros/stargazers","contributors_url":"https://api.github.com/repos/cloud-elements/churros/contributors","subscribers_url":"https://api.github.com/repos/cloud-elements/churros/subscribers","subscription_url":"https://api.github.com/repos/cloud-elements/churros/subscription","commits_url":"https://api.github.com/repos/cloud-elements/churros/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloud-elements/churros/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloud-elements/churros/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloud-elements/churros/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloud-elements/churros/contents/{+path}","compare_url":"https://api.github.com/repos/cloud-elements/churros/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloud-elements/churros/merges","archive_url":"https://api.github.com/repos/cloud-elements/churros/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloud-elements/churros/downloads","issues_url":"https://api.github.com/repos/cloud-elements/churros/issues{/number}","pulls_url":"https://api.github.com/repos/cloud-elements/churros/pulls{/number}","milestones_url":"https://api.github.com/repos/cloud-elements/churros/milestones{/number}","notifications_url":"https://api.github.com/repos/cloud-elements/churros/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloud-elements/churros/labels{/name}","releases_url":"https://api.github.com/repos/cloud-elements/churros/releases{/id}","deployments_url":"https://api.github.com/repos/cloud-elements/churros/deployments","created_at":"2015-11-17T15:32:22Z","updated_at":"2018-03-30T23:14:05Z","pushed_at":"2018-03-30T23:16:24Z","git_url":"git://github.com/cloud-elements/churros.git","ssh_url":"git@github.com:cloud-elements/churros.git","clone_url":"https://github.com/cloud-elements/churros.git","svn_url":"https://github.com/cloud-elements/churros","homepage":"","size":13783,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":131,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":5,"open_issues":131,"watchers":9,"default_branch":"master"}},"base":{"label":"cloud-elements:master","ref":"master","sha":"c30f11a60f6c319e4cb8e2f9e00ff07b86f8b26e","user":{"login":"cloud-elements","id":4693153,"avatar_url":"https://avatars1.githubusercontent.com/u/4693153?v=4","gravatar_id":"","url":"https://api.github.com/users/cloud-elements","html_url":"https://github.com/cloud-elements","followers_url":"https://api.github.com/users/cloud-elements/followers","following_url":"https://api.github.com/users/cloud-elements/following{/other_user}","gists_url":"https://api.github.com/users/cloud-elements/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-elements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-elements/subscriptions","organizations_url":"https://api.github.com/users/cloud-elements/orgs","repos_url":"https://api.github.com/users/cloud-elements/repos","events_url":"https://api.github.com/users/cloud-elements/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-elements/received_events","type":"Organization","site_admin":false},"repo":{"id":46356335,"name":"churros","full_name":"cloud-elements/churros","owner":{"login":"cloud-elements","id":4693153,"avatar_url":"https://avatars1.githubusercontent.com/u/4693153?v=4","gravatar_id":"","url":"https://api.github.com/users/cloud-elements","html_url":"https://github.com/cloud-elements","followers_url":"https://api.github.com/users/cloud-elements/followers","following_url":"https://api.github.com/users/cloud-elements/following{/other_user}","gists_url":"https://api.github.com/users/cloud-elements/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-elements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-elements/subscriptions","organizations_url":"https://api.github.com/users/cloud-elements/orgs","repos_url":"https://api.github.com/users/cloud-elements/repos","events_url":"https://api.github.com/users/cloud-elements/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-elements/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloud-elements/churros","description":":cop: Cloud Elements API testing framework","fork":false,"url":"https://api.github.com/repos/cloud-elements/churros","forks_url":"https://api.github.com/repos/cloud-elements/churros/forks","keys_url":"https://api.github.com/repos/cloud-elements/churros/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloud-elements/churros/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloud-elements/churros/teams","hooks_url":"https://api.github.com/repos/cloud-elements/churros/hooks","issue_events_url":"https://api.github.com/repos/cloud-elements/churros/issues/events{/number}","events_url":"https://api.github.com/repos/cloud-elements/churros/events","assignees_url":"https://api.github.com/repos/cloud-elements/churros/assignees{/user}","branches_url":"https://api.github.com/repos/cloud-elements/churros/branches{/branch}","tags_url":"https://api.github.com/repos/cloud-elements/churros/tags","blobs_url":"https://api.github.com/repos/cloud-elements/churros/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloud-elements/churros/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloud-elements/churros/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloud-elements/churros/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloud-elements/churros/statuses/{sha}","languages_url":"https://api.github.com/repos/cloud-elements/churros/languages","stargazers_url":"https://api.github.com/repos/cloud-elements/churros/stargazers","contributors_url":"https://api.github.com/repos/cloud-elements/churros/contributors","subscribers_url":"https://api.github.com/repos/cloud-elements/churros/subscribers","subscription_url":"https://api.github.com/repos/cloud-elements/churros/subscription","commits_url":"https://api.github.com/repos/cloud-elements/churros/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloud-elements/churros/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloud-elements/churros/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloud-elements/churros/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloud-elements/churros/contents/{+path}","compare_url":"https://api.github.com/repos/cloud-elements/churros/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloud-elements/churros/merges","archive_url":"https://api.github.com/repos/cloud-elements/churros/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloud-elements/churros/downloads","issues_url":"https://api.github.com/repos/cloud-elements/churros/issues{/number}","pulls_url":"https://api.github.com/repos/cloud-elements/churros/pulls{/number}","milestones_url":"https://api.github.com/repos/cloud-elements/churros/milestones{/number}","notifications_url":"https://api.github.com/repos/cloud-elements/churros/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloud-elements/churros/labels{/name}","releases_url":"https://api.github.com/repos/cloud-elements/churros/releases{/id}","deployments_url":"https://api.github.com/repos/cloud-elements/churros/deployments","created_at":"2015-11-17T15:32:22Z","updated_at":"2018-03-30T23:14:05Z","pushed_at":"2018-03-30T23:16:24Z","git_url":"git://github.com/cloud-elements/churros.git","ssh_url":"git@github.com:cloud-elements/churros.git","clone_url":"https://github.com/cloud-elements/churros.git","svn_url":"https://github.com/cloud-elements/churros","homepage":"","size":13783,"stargazers_count":9,"watchers_count":9,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":131,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":5,"open_issues":131,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloud-elements/churros/pulls/1513"},"html":{"href":"https://github.com/cloud-elements/churros/pull/1513"},"issue":{"href":"https://api.github.com/repos/cloud-elements/churros/issues/1513"},"comments":{"href":"https://api.github.com/repos/cloud-elements/churros/issues/1513/comments"},"review_comments":{"href":"https://api.github.com/repos/cloud-elements/churros/pulls/1513/comments"},"review_comment":{"href":"https://api.github.com/repos/cloud-elements/churros/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloud-elements/churros/pulls/1513/commits"},"statuses":{"href":"https://api.github.com/repos/cloud-elements/churros/statuses/c28a96aaa726ad0d1922ab4737808b2f1a675a80"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"AfrinChakure-GSLab"}}