{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/xPendingReboot/issues/1","labels_url":"https://api.github.com/repos/PowerShell/xPendingReboot/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/xPendingReboot/issues/1/comments","events_url":"https://api.github.com/repos/PowerShell/xPendingReboot/issues/1/events","html_url":"https://github.com/PowerShell/xPendingReboot/pull/1","id":102651448,"number":1,"title":"Allow users to disable certain reboot checks","user":{"login":"qmfrederik","id":9918129,"avatar_url":"https://avatars.githubusercontent.com/u/9918129?v=3","gravatar_id":"","url":"https://api.github.com/users/qmfrederik","html_url":"https://github.com/qmfrederik","followers_url":"https://api.github.com/users/qmfrederik/followers","following_url":"https://api.github.com/users/qmfrederik/following{/other_user}","gists_url":"https://api.github.com/users/qmfrederik/gists{/gist_id}","starred_url":"https://api.github.com/users/qmfrederik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qmfrederik/subscriptions","organizations_url":"https://api.github.com/users/qmfrederik/orgs","repos_url":"https://api.github.com/users/qmfrederik/repos","events_url":"https://api.github.com/users/qmfrederik/events{/privacy}","received_events_url":"https://api.github.com/users/qmfrederik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PowerShell/xPendingReboot/labels/cla-signed","name":"cla-signed","color":"207de5"},{"url":"https://api.github.com/repos/PowerShell/xPendingReboot/labels/Waiting%20for%20the%20author","name":"Waiting for the author","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-08-23T19:46:52Z","updated_at":"2016-01-26T21:34:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/PowerShell/xPendingReboot/pulls/1","html_url":"https://github.com/PowerShell/xPendingReboot/pull/1","diff_url":"https://github.com/PowerShell/xPendingReboot/pull/1.diff","patch_url":"https://github.com/PowerShell/xPendingReboot/pull/1.patch"},"body":"I had an issue where my Azure VM went into a reboot loop after I applied a Powershell DSC script that included xPendingReboot.\r\n\r\nBasically, there was a stale file rename operating pending, so every time the DSC script ran, it would detect that, reboot the VM, and we got in a loop.\r\n\r\nThe case is, I did not want to check for pending file rename operations - I was only looking for a reboot that could have been triggered by a Windows Update package I installed.\r\n\r\nSo I've created this pull request that allows the user to specify for which 'reboot sources' (s)he wants to check. For example, if you want to bypass the pending file rename operations, you could just set `SkipPendingFileRename = $True`."},"comment":{"url":"https://api.github.com/repos/PowerShell/xPendingReboot/issues/comments/175241576","html_url":"https://github.com/PowerShell/xPendingReboot/pull/1#issuecomment-175241576","issue_url":"https://api.github.com/repos/PowerShell/xPendingReboot/issues/1","id":175241576,"user":{"login":"TravisEz13","id":10873629,"avatar_url":"https://avatars.githubusercontent.com/u/10873629?v=3","gravatar_id":"","url":"https://api.github.com/users/TravisEz13","html_url":"https://github.com/TravisEz13","followers_url":"https://api.github.com/users/TravisEz13/followers","following_url":"https://api.github.com/users/TravisEz13/following{/other_user}","gists_url":"https://api.github.com/users/TravisEz13/gists{/gist_id}","starred_url":"https://api.github.com/users/TravisEz13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TravisEz13/subscriptions","organizations_url":"https://api.github.com/users/TravisEz13/orgs","repos_url":"https://api.github.com/users/TravisEz13/repos","events_url":"https://api.github.com/users/TravisEz13/events{/privacy}","received_events_url":"https://api.github.com/users/TravisEz13/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T21:34:30Z","updated_at":"2016-01-26T21:34:30Z","body":"I sync'ed your latest code and fixed all the test issues (described bellow.)  I put the file in a [**Gist, here**,](https://gist.github.com/TravisEz13/56ee0baae24efcae90f9) as much of the file was changed.\r\n\r\nIssue 1 -  If you are calling the mocked function in a different module, you need to say what module you are calling the mock from when declaring it.\r\n\r\nIssue 2 - It was difficult to debug the test case, because you combined many 'should's into one it.  I separated them out so when something fails, you can tell what is failing.\r\n\r\nIssue 3 -  In you mocks for 'No Reboots Are Required' context.  You were not returning an object and the product code was failing.\r\n\r\nI believe this is all resolve in the GIST above.  \r\n\r\nI hope this helps.\r\n\r\nThanks,\r\nTravis"}}