{"action":"created","comment":{"url":"https://api.github.com/repos/chef/oc-chef-pedant/pulls/comments/25806346","id":25806346,"diff_hunk":"@@ -132,6 +272,255 @@ def clients\n       requestor_cache.values.select { |r| Pedant::Client === r }\n     end\n \n+\n+    def dummy_client(h)\n+      Pedant::Client.new(h[:name], bogus_key, platform: self, preexisting: false, bogus: true)\n+    end\n+\n+    # Normalize timestamps used in Pedant\n+    # In tests, you can access this with:\n+    # let(:timestamp) { platform.now }\n+    def timestamp\n+      Time.now.utc\n+    end\n+\n+    alias now timestamp\n+\n+    # Global timestamp marking the beginning of the run\n+    # Use this for things like generating unique names\n+    def pedant_run_timestamp\n+      @_pedant_run_timestamp ||= self.timestamp\n+    end\n+\n+    # TODO: Expose entire payload as an input parameter","path":"lib/pedant/platform.rb","position":243,"original_position":243,"commit_id":"9c06a99bbd24a839a2ed719cfbb469a185b7c464","original_commit_id":"9c06a99bbd24a839a2ed719cfbb469a185b7c464","user":{"login":"marcparadise","id":1130204,"avatar_url":"https://avatars.githubusercontent.com/u/1130204?v=3","gravatar_id":"","url":"https://api.github.com/users/marcparadise","html_url":"https://github.com/marcparadise","followers_url":"https://api.github.com/users/marcparadise/followers","following_url":"https://api.github.com/users/marcparadise/following{/other_user}","gists_url":"https://api.github.com/users/marcparadise/gists{/gist_id}","starred_url":"https://api.github.com/users/marcparadise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcparadise/subscriptions","organizations_url":"https://api.github.com/users/marcparadise/orgs","repos_url":"https://api.github.com/users/marcparadise/repos","events_url":"https://api.github.com/users/marcparadise/events{/privacy}","received_events_url":"https://api.github.com/users/marcparadise/received_events","type":"User","site_admin":false},"body":"Note the painstaking effort I went to to preserve even the smallest tidbits, even existing TODOs when I merged in from multitenant platform!","created_at":"2015-03-04T19:40:19Z","updated_at":"2015-03-04T19:40:19Z","html_url":"https://github.com/chef/oc-chef-pedant/pull/97#discussion_r25806346","pull_request_url":"https://api.github.com/repos/chef/oc-chef-pedant/pulls/97","_links":{"self":{"href":"https://api.github.com/repos/chef/oc-chef-pedant/pulls/comments/25806346"},"html":{"href":"https://github.com/chef/oc-chef-pedant/pull/97#discussion_r25806346"},"pull_request":{"href":"https://api.github.com/repos/chef/oc-chef-pedant/pulls/97"}}},"pull_request":{"url":"https://api.github.com/repos/chef/oc-chef-pedant/pulls/97","id":30494813,"html_url":"https://github.com/chef/oc-chef-pedant/pull/97","diff_url":"https://github.com/chef/oc-chef-pedant/pull/97.diff","patch_url":"https://github.com/chef/oc-chef-pedant/pull/97.patch","issue_url":"https://api.github.com/repos/chef/oc-chef-pedant/issues/97","number":97,"state":"open","locked":false,"title":"merge oc-chef-pedant and chef-pedant","user":{"login":"marcparadise","id":1130204,"avatar_url":"https://avatars.githubusercontent.com/u/1130204?v=3","gravatar_id":"","url":"https://api.github.com/users/marcparadise","html_url":"https://github.com/marcparadise","followers_url":"https://api.github.com/users/marcparadise/followers","following_url":"https://api.github.com/users/marcparadise/following{/other_user}","gists_url":"https://api.github.com/users/marcparadise/gists{/gist_id}","starred_url":"https://api.github.com/users/marcparadise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcparadise/subscriptions","organizations_url":"https://api.github.com/users/marcparadise/orgs","repos_url":"https://api.github.com/users/marcparadise/repos","events_url":"https://api.github.com/users/marcparadise/events{/privacy}","received_events_url":"https://api.github.com/users/marcparadise/received_events","type":"User","site_admin":false},"body":"This PR is a slightly more reviewable version of  https://github.com/chef/oc-chef-pedant/pull/95\r\n\r\nI'll add some inline annotations where things might still be unclear,  as some several deleted files were actually merged from chef-pedant -> into their counterparts in oc-chef-pedant - no way to easily capture the changes from the original in the merged sections. \r\n\r\nping @chef/lob \r\n\r\nThis branch was built based off 'mp/merge-pedants-comparable' in which most changes consisted of copying in files from chef-pedant, and gemfile stuff.   To show history, I've made this PR against that branch, though it will go to master.  There's some squashing to be done, but for now this best preserves history for review. \r\n\r\n","created_at":"2015-03-04T19:14:44Z","updated_at":"2015-03-04T19:40:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72498147bcee67ebc747aaa6a61809464958c398","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chef/oc-chef-pedant/pulls/97/commits","review_comments_url":"https://api.github.com/repos/chef/oc-chef-pedant/pulls/97/comments","review_comment_url":"https://api.github.com/repos/chef/oc-chef-pedant/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chef/oc-chef-pedant/issues/97/comments","statuses_url":"https://api.github.com/repos/chef/oc-chef-pedant/statuses/9c06a99bbd24a839a2ed719cfbb469a185b7c464","head":{"label":"chef:mp/merge-pedants-comparable","ref":"mp/merge-pedants-comparable","sha":"9c06a99bbd24a839a2ed719cfbb469a185b7c464","user":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"repo":{"id":5127030,"name":"oc-chef-pedant","full_name":"chef/oc-chef-pedant","owner":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef/oc-chef-pedant","description":"Multi-tenancy and RBAC API tests for Chef Server","fork":false,"url":"https://api.github.com/repos/chef/oc-chef-pedant","forks_url":"https://api.github.com/repos/chef/oc-chef-pedant/forks","keys_url":"https://api.github.com/repos/chef/oc-chef-pedant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef/oc-chef-pedant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef/oc-chef-pedant/teams","hooks_url":"https://api.github.com/repos/chef/oc-chef-pedant/hooks","issue_events_url":"https://api.github.com/repos/chef/oc-chef-pedant/issues/events{/number}","events_url":"https://api.github.com/repos/chef/oc-chef-pedant/events","assignees_url":"https://api.github.com/repos/chef/oc-chef-pedant/assignees{/user}","branches_url":"https://api.github.com/repos/chef/oc-chef-pedant/branches{/branch}","tags_url":"https://api.github.com/repos/chef/oc-chef-pedant/tags","blobs_url":"https://api.github.com/repos/chef/oc-chef-pedant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef/oc-chef-pedant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef/oc-chef-pedant/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef/oc-chef-pedant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef/oc-chef-pedant/statuses/{sha}","languages_url":"https://api.github.com/repos/chef/oc-chef-pedant/languages","stargazers_url":"https://api.github.com/repos/chef/oc-chef-pedant/stargazers","contributors_url":"https://api.github.com/repos/chef/oc-chef-pedant/contributors","subscribers_url":"https://api.github.com/repos/chef/oc-chef-pedant/subscribers","subscription_url":"https://api.github.com/repos/chef/oc-chef-pedant/subscription","commits_url":"https://api.github.com/repos/chef/oc-chef-pedant/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef/oc-chef-pedant/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef/oc-chef-pedant/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef/oc-chef-pedant/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef/oc-chef-pedant/contents/{+path}","compare_url":"https://api.github.com/repos/chef/oc-chef-pedant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef/oc-chef-pedant/merges","archive_url":"https://api.github.com/repos/chef/oc-chef-pedant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef/oc-chef-pedant/downloads","issues_url":"https://api.github.com/repos/chef/oc-chef-pedant/issues{/number}","pulls_url":"https://api.github.com/repos/chef/oc-chef-pedant/pulls{/number}","milestones_url":"https://api.github.com/repos/chef/oc-chef-pedant/milestones{/number}","notifications_url":"https://api.github.com/repos/chef/oc-chef-pedant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef/oc-chef-pedant/labels{/name}","releases_url":"https://api.github.com/repos/chef/oc-chef-pedant/releases{/id}","created_at":"2012-07-20T18:55:14Z","updated_at":"2015-02-25T21:57:35Z","pushed_at":"2015-03-04T19:39:07Z","git_url":"git://github.com/chef/oc-chef-pedant.git","ssh_url":"git@github.com:chef/oc-chef-pedant.git","clone_url":"https://github.com/chef/oc-chef-pedant.git","svn_url":"https://github.com/chef/oc-chef-pedant","homepage":"","size":2927,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":2,"default_branch":"master"}},"base":{"label":"chef:mp/merge-pedants-compare-base","ref":"mp/merge-pedants-compare-base","sha":"7b0c0e8d4fb928114395dbd2162f21d5d9abd9ea","user":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"repo":{"id":5127030,"name":"oc-chef-pedant","full_name":"chef/oc-chef-pedant","owner":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef/oc-chef-pedant","description":"Multi-tenancy and RBAC API tests for Chef Server","fork":false,"url":"https://api.github.com/repos/chef/oc-chef-pedant","forks_url":"https://api.github.com/repos/chef/oc-chef-pedant/forks","keys_url":"https://api.github.com/repos/chef/oc-chef-pedant/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef/oc-chef-pedant/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef/oc-chef-pedant/teams","hooks_url":"https://api.github.com/repos/chef/oc-chef-pedant/hooks","issue_events_url":"https://api.github.com/repos/chef/oc-chef-pedant/issues/events{/number}","events_url":"https://api.github.com/repos/chef/oc-chef-pedant/events","assignees_url":"https://api.github.com/repos/chef/oc-chef-pedant/assignees{/user}","branches_url":"https://api.github.com/repos/chef/oc-chef-pedant/branches{/branch}","tags_url":"https://api.github.com/repos/chef/oc-chef-pedant/tags","blobs_url":"https://api.github.com/repos/chef/oc-chef-pedant/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef/oc-chef-pedant/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef/oc-chef-pedant/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef/oc-chef-pedant/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef/oc-chef-pedant/statuses/{sha}","languages_url":"https://api.github.com/repos/chef/oc-chef-pedant/languages","stargazers_url":"https://api.github.com/repos/chef/oc-chef-pedant/stargazers","contributors_url":"https://api.github.com/repos/chef/oc-chef-pedant/contributors","subscribers_url":"https://api.github.com/repos/chef/oc-chef-pedant/subscribers","subscription_url":"https://api.github.com/repos/chef/oc-chef-pedant/subscription","commits_url":"https://api.github.com/repos/chef/oc-chef-pedant/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef/oc-chef-pedant/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef/oc-chef-pedant/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef/oc-chef-pedant/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef/oc-chef-pedant/contents/{+path}","compare_url":"https://api.github.com/repos/chef/oc-chef-pedant/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef/oc-chef-pedant/merges","archive_url":"https://api.github.com/repos/chef/oc-chef-pedant/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef/oc-chef-pedant/downloads","issues_url":"https://api.github.com/repos/chef/oc-chef-pedant/issues{/number}","pulls_url":"https://api.github.com/repos/chef/oc-chef-pedant/pulls{/number}","milestones_url":"https://api.github.com/repos/chef/oc-chef-pedant/milestones{/number}","notifications_url":"https://api.github.com/repos/chef/oc-chef-pedant/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef/oc-chef-pedant/labels{/name}","releases_url":"https://api.github.com/repos/chef/oc-chef-pedant/releases{/id}","created_at":"2012-07-20T18:55:14Z","updated_at":"2015-02-25T21:57:35Z","pushed_at":"2015-03-04T19:39:07Z","git_url":"git://github.com/chef/oc-chef-pedant.git","ssh_url":"git@github.com:chef/oc-chef-pedant.git","clone_url":"https://github.com/chef/oc-chef-pedant.git","svn_url":"https://github.com/chef/oc-chef-pedant","homepage":"","size":2927,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chef/oc-chef-pedant/pulls/97"},"html":{"href":"https://github.com/chef/oc-chef-pedant/pull/97"},"issue":{"href":"https://api.github.com/repos/chef/oc-chef-pedant/issues/97"},"comments":{"href":"https://api.github.com/repos/chef/oc-chef-pedant/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/chef/oc-chef-pedant/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/chef/oc-chef-pedant/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chef/oc-chef-pedant/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/chef/oc-chef-pedant/statuses/9c06a99bbd24a839a2ed719cfbb469a185b7c464"}}}}