{"action":"created","comment":{"url":"https://api.github.com/repos/RackHD/on-http/pulls/comments/47686637","id":47686637,"diff_hunk":"@@ -0,0 +1,96 @@\n+// Copyright 2015, EMC, Inc.\n+\n+'use strict';\n+\n+require('../../helper');\n+\n+describe(\"SKU Pack Service\", function() {\n+    var skuService;\n+    var fs;\n+\n+    before(function() {\n+        helper.setupInjector([\n+            helper.require(\"/lib/services/sku-pack-service\")\n+        ]);\n+\n+        skuService = helper.injector.get('Http.Services.SkuPack');\n+\n+        fs = helper.injector.get('fs');\n+        sinon.stub(fs, 'writeFileAsync');\n+        sinon.stub(fs, 'readFileAsync');\n+        sinon.stub(fs, 'readdirAsync');\n+        sinon.stub(fs, 'statAsync');\n+    });\n+\n+    beforeEach(function() {\n+        skuService.skuHandlers = {};\n+        fs.writeFileAsync.reset();\n+        fs.readFileAsync.reset();\n+        fs.readdirAsync.reset();\n+        fs.statAsync.reset();\n+    });\n+\n+    helper.after(function () {","path":"spec/lib/services/sku-pack-service-spec.js","position":33,"original_position":33,"commit_id":"2a4e0529a17ecd67da86cf78eea34ce3dc28117d","original_commit_id":"2a4e0529a17ecd67da86cf78eea34ce3dc28117d","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"'helper' is not defined.","created_at":"2015-12-15T19:37:07Z","updated_at":"2015-12-15T19:37:07Z","html_url":"https://github.com/RackHD/on-http/pull/69#discussion_r47686637","pull_request_url":"https://api.github.com/repos/RackHD/on-http/pulls/69","_links":{"self":{"href":"https://api.github.com/repos/RackHD/on-http/pulls/comments/47686637"},"html":{"href":"https://github.com/RackHD/on-http/pull/69#discussion_r47686637"},"pull_request":{"href":"https://api.github.com/repos/RackHD/on-http/pulls/69"}}},"pull_request":{"url":"https://api.github.com/repos/RackHD/on-http/pulls/69","id":53746456,"html_url":"https://github.com/RackHD/on-http/pull/69","diff_url":"https://github.com/RackHD/on-http/pull/69.diff","patch_url":"https://github.com/RackHD/on-http/pull/69.patch","issue_url":"https://api.github.com/repos/RackHD/on-http/issues/69","number":69,"state":"open","locked":false,"title":"GRIP-36: SKU Pack Support","user":{"login":"zyoung51","id":13998687,"avatar_url":"https://avatars.githubusercontent.com/u/13998687?v=3","gravatar_id":"","url":"https://api.github.com/users/zyoung51","html_url":"https://github.com/zyoung51","followers_url":"https://api.github.com/users/zyoung51/followers","following_url":"https://api.github.com/users/zyoung51/following{/other_user}","gists_url":"https://api.github.com/users/zyoung51/gists{/gist_id}","starred_url":"https://api.github.com/users/zyoung51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zyoung51/subscriptions","organizations_url":"https://api.github.com/users/zyoung51/orgs","repos_url":"https://api.github.com/users/zyoung51/repos","events_url":"https://api.github.com/users/zyoung51/events{/privacy}","received_events_url":"https://api.github.com/users/zyoung51/received_events","type":"User","site_admin":false},"body":"- Load sku pack configuration files from 'skuPackRoot'.  The config\r\n  files provide sku specific template/static directories that will\r\n  override the global directories if the node has a 'sku' value.\r\n- Modify on-http to get the 'sku' specific template if a 'sku' value\r\n  is defined for the nodeid attached to the requestor IP.\r\n- Modify on-http to serve the 'sku' specific static root if a 'sku'\r\n  value is defined for the nodeid attached to the requestor IP.\r\n- Changed the express chaining to store the IP and nodeID in the first\r\n  middleware function.","created_at":"2015-12-15T19:00:36Z","updated_at":"2015-12-15T19:37:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"75beccab2f065a805323b5e838a784ee1448778d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RackHD/on-http/pulls/69/commits","review_comments_url":"https://api.github.com/repos/RackHD/on-http/pulls/69/comments","review_comment_url":"https://api.github.com/repos/RackHD/on-http/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RackHD/on-http/issues/69/comments","statuses_url":"https://api.github.com/repos/RackHD/on-http/statuses/2a4e0529a17ecd67da86cf78eea34ce3dc28117d","head":{"label":"zyoung51:feature/sku-pack-support","ref":"feature/sku-pack-support","sha":"2a4e0529a17ecd67da86cf78eea34ce3dc28117d","user":{"login":"zyoung51","id":13998687,"avatar_url":"https://avatars.githubusercontent.com/u/13998687?v=3","gravatar_id":"","url":"https://api.github.com/users/zyoung51","html_url":"https://github.com/zyoung51","followers_url":"https://api.github.com/users/zyoung51/followers","following_url":"https://api.github.com/users/zyoung51/following{/other_user}","gists_url":"https://api.github.com/users/zyoung51/gists{/gist_id}","starred_url":"https://api.github.com/users/zyoung51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zyoung51/subscriptions","organizations_url":"https://api.github.com/users/zyoung51/orgs","repos_url":"https://api.github.com/users/zyoung51/repos","events_url":"https://api.github.com/users/zyoung51/events{/privacy}","received_events_url":"https://api.github.com/users/zyoung51/received_events","type":"User","site_admin":false},"repo":{"id":45706063,"name":"on-http","full_name":"zyoung51/on-http","owner":{"login":"zyoung51","id":13998687,"avatar_url":"https://avatars.githubusercontent.com/u/13998687?v=3","gravatar_id":"","url":"https://api.github.com/users/zyoung51","html_url":"https://github.com/zyoung51","followers_url":"https://api.github.com/users/zyoung51/followers","following_url":"https://api.github.com/users/zyoung51/following{/other_user}","gists_url":"https://api.github.com/users/zyoung51/gists{/gist_id}","starred_url":"https://api.github.com/users/zyoung51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zyoung51/subscriptions","organizations_url":"https://api.github.com/users/zyoung51/orgs","repos_url":"https://api.github.com/users/zyoung51/repos","events_url":"https://api.github.com/users/zyoung51/events{/privacy}","received_events_url":"https://api.github.com/users/zyoung51/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zyoung51/on-http","description":"","fork":true,"url":"https://api.github.com/repos/zyoung51/on-http","forks_url":"https://api.github.com/repos/zyoung51/on-http/forks","keys_url":"https://api.github.com/repos/zyoung51/on-http/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zyoung51/on-http/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zyoung51/on-http/teams","hooks_url":"https://api.github.com/repos/zyoung51/on-http/hooks","issue_events_url":"https://api.github.com/repos/zyoung51/on-http/issues/events{/number}","events_url":"https://api.github.com/repos/zyoung51/on-http/events","assignees_url":"https://api.github.com/repos/zyoung51/on-http/assignees{/user}","branches_url":"https://api.github.com/repos/zyoung51/on-http/branches{/branch}","tags_url":"https://api.github.com/repos/zyoung51/on-http/tags","blobs_url":"https://api.github.com/repos/zyoung51/on-http/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zyoung51/on-http/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zyoung51/on-http/git/refs{/sha}","trees_url":"https://api.github.com/repos/zyoung51/on-http/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zyoung51/on-http/statuses/{sha}","languages_url":"https://api.github.com/repos/zyoung51/on-http/languages","stargazers_url":"https://api.github.com/repos/zyoung51/on-http/stargazers","contributors_url":"https://api.github.com/repos/zyoung51/on-http/contributors","subscribers_url":"https://api.github.com/repos/zyoung51/on-http/subscribers","subscription_url":"https://api.github.com/repos/zyoung51/on-http/subscription","commits_url":"https://api.github.com/repos/zyoung51/on-http/commits{/sha}","git_commits_url":"https://api.github.com/repos/zyoung51/on-http/git/commits{/sha}","comments_url":"https://api.github.com/repos/zyoung51/on-http/comments{/number}","issue_comment_url":"https://api.github.com/repos/zyoung51/on-http/issues/comments{/number}","contents_url":"https://api.github.com/repos/zyoung51/on-http/contents/{+path}","compare_url":"https://api.github.com/repos/zyoung51/on-http/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zyoung51/on-http/merges","archive_url":"https://api.github.com/repos/zyoung51/on-http/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zyoung51/on-http/downloads","issues_url":"https://api.github.com/repos/zyoung51/on-http/issues{/number}","pulls_url":"https://api.github.com/repos/zyoung51/on-http/pulls{/number}","milestones_url":"https://api.github.com/repos/zyoung51/on-http/milestones{/number}","notifications_url":"https://api.github.com/repos/zyoung51/on-http/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zyoung51/on-http/labels{/name}","releases_url":"https://api.github.com/repos/zyoung51/on-http/releases{/id}","created_at":"2015-11-06T20:36:16Z","updated_at":"2015-11-06T20:36:17Z","pushed_at":"2015-12-15T19:36:58Z","git_url":"git://github.com/zyoung51/on-http.git","ssh_url":"git@github.com:zyoung51/on-http.git","clone_url":"https://github.com/zyoung51/on-http.git","svn_url":"https://github.com/zyoung51/on-http","homepage":null,"size":1399,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"RackHD:master","ref":"master","sha":"a5e49952f1faf9d34233e341557ea5ab9c82508d","user":{"login":"RackHD","id":13982662,"avatar_url":"https://avatars.githubusercontent.com/u/13982662?v=3","gravatar_id":"","url":"https://api.github.com/users/RackHD","html_url":"https://github.com/RackHD","followers_url":"https://api.github.com/users/RackHD/followers","following_url":"https://api.github.com/users/RackHD/following{/other_user}","gists_url":"https://api.github.com/users/RackHD/gists{/gist_id}","starred_url":"https://api.github.com/users/RackHD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RackHD/subscriptions","organizations_url":"https://api.github.com/users/RackHD/orgs","repos_url":"https://api.github.com/users/RackHD/repos","events_url":"https://api.github.com/users/RackHD/events{/privacy}","received_events_url":"https://api.github.com/users/RackHD/received_events","type":"Organization","site_admin":false},"repo":{"id":41690081,"name":"on-http","full_name":"RackHD/on-http","owner":{"login":"RackHD","id":13982662,"avatar_url":"https://avatars.githubusercontent.com/u/13982662?v=3","gravatar_id":"","url":"https://api.github.com/users/RackHD","html_url":"https://github.com/RackHD","followers_url":"https://api.github.com/users/RackHD/followers","following_url":"https://api.github.com/users/RackHD/following{/other_user}","gists_url":"https://api.github.com/users/RackHD/gists{/gist_id}","starred_url":"https://api.github.com/users/RackHD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RackHD/subscriptions","organizations_url":"https://api.github.com/users/RackHD/orgs","repos_url":"https://api.github.com/users/RackHD/repos","events_url":"https://api.github.com/users/RackHD/events{/privacy}","received_events_url":"https://api.github.com/users/RackHD/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RackHD/on-http","description":"","fork":false,"url":"https://api.github.com/repos/RackHD/on-http","forks_url":"https://api.github.com/repos/RackHD/on-http/forks","keys_url":"https://api.github.com/repos/RackHD/on-http/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RackHD/on-http/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RackHD/on-http/teams","hooks_url":"https://api.github.com/repos/RackHD/on-http/hooks","issue_events_url":"https://api.github.com/repos/RackHD/on-http/issues/events{/number}","events_url":"https://api.github.com/repos/RackHD/on-http/events","assignees_url":"https://api.github.com/repos/RackHD/on-http/assignees{/user}","branches_url":"https://api.github.com/repos/RackHD/on-http/branches{/branch}","tags_url":"https://api.github.com/repos/RackHD/on-http/tags","blobs_url":"https://api.github.com/repos/RackHD/on-http/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RackHD/on-http/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RackHD/on-http/git/refs{/sha}","trees_url":"https://api.github.com/repos/RackHD/on-http/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RackHD/on-http/statuses/{sha}","languages_url":"https://api.github.com/repos/RackHD/on-http/languages","stargazers_url":"https://api.github.com/repos/RackHD/on-http/stargazers","contributors_url":"https://api.github.com/repos/RackHD/on-http/contributors","subscribers_url":"https://api.github.com/repos/RackHD/on-http/subscribers","subscription_url":"https://api.github.com/repos/RackHD/on-http/subscription","commits_url":"https://api.github.com/repos/RackHD/on-http/commits{/sha}","git_commits_url":"https://api.github.com/repos/RackHD/on-http/git/commits{/sha}","comments_url":"https://api.github.com/repos/RackHD/on-http/comments{/number}","issue_comment_url":"https://api.github.com/repos/RackHD/on-http/issues/comments{/number}","contents_url":"https://api.github.com/repos/RackHD/on-http/contents/{+path}","compare_url":"https://api.github.com/repos/RackHD/on-http/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RackHD/on-http/merges","archive_url":"https://api.github.com/repos/RackHD/on-http/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RackHD/on-http/downloads","issues_url":"https://api.github.com/repos/RackHD/on-http/issues{/number}","pulls_url":"https://api.github.com/repos/RackHD/on-http/pulls{/number}","milestones_url":"https://api.github.com/repos/RackHD/on-http/milestones{/number}","notifications_url":"https://api.github.com/repos/RackHD/on-http/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RackHD/on-http/labels{/name}","releases_url":"https://api.github.com/repos/RackHD/on-http/releases{/id}","created_at":"2015-08-31T17:29:08Z","updated_at":"2015-12-13T17:21:54Z","pushed_at":"2015-12-15T19:36:58Z","git_url":"git://github.com/RackHD/on-http.git","ssh_url":"git@github.com:RackHD/on-http.git","clone_url":"https://github.com/RackHD/on-http.git","svn_url":"https://github.com/RackHD/on-http","homepage":null,"size":1403,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":3,"forks":19,"open_issues":3,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RackHD/on-http/pulls/69"},"html":{"href":"https://github.com/RackHD/on-http/pull/69"},"issue":{"href":"https://api.github.com/repos/RackHD/on-http/issues/69"},"comments":{"href":"https://api.github.com/repos/RackHD/on-http/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/RackHD/on-http/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/RackHD/on-http/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RackHD/on-http/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/RackHD/on-http/statuses/2a4e0529a17ecd67da86cf78eea34ce3dc28117d"}}}}