{"action":"created","issue":{"url":"https://api.github.com/repos/NERC-CEH/puppet-fstab/issues/1","repository_url":"https://api.github.com/repos/NERC-CEH/puppet-fstab","labels_url":"https://api.github.com/repos/NERC-CEH/puppet-fstab/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/NERC-CEH/puppet-fstab/issues/1/comments","events_url":"https://api.github.com/repos/NERC-CEH/puppet-fstab/issues/1/events","html_url":"https://github.com/NERC-CEH/puppet-fstab/pull/1","id":59645111,"number":1,"title":"Added support for RHEL7 and created a fstab:params class","user":{"login":"bschonec","id":9570174,"avatar_url":"https://avatars.githubusercontent.com/u/9570174?v=3","gravatar_id":"","url":"https://api.github.com/users/bschonec","html_url":"https://github.com/bschonec","followers_url":"https://api.github.com/users/bschonec/followers","following_url":"https://api.github.com/users/bschonec/following{/other_user}","gists_url":"https://api.github.com/users/bschonec/gists{/gist_id}","starred_url":"https://api.github.com/users/bschonec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bschonec/subscriptions","organizations_url":"https://api.github.com/users/bschonec/orgs","repos_url":"https://api.github.com/users/bschonec/repos","events_url":"https://api.github.com/users/bschonec/events{/privacy}","received_events_url":"https://api.github.com/users/bschonec/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-03T14:01:30Z","updated_at":"2016-04-07T10:28:34Z","closed_at":"2016-04-06T15:06:44Z","pull_request":{"url":"https://api.github.com/repos/NERC-CEH/puppet-fstab/pulls/1","html_url":"https://github.com/NERC-CEH/puppet-fstab/pull/1","diff_url":"https://github.com/NERC-CEH/puppet-fstab/pull/1.diff","patch_url":"https://github.com/NERC-CEH/puppet-fstab/pull/1.patch"},"body":"Moved some code out into fstab::params class to consolidate pseudo-duplicate code."},"comment":{"url":"https://api.github.com/repos/NERC-CEH/puppet-fstab/issues/comments/206801765","html_url":"https://github.com/NERC-CEH/puppet-fstab/pull/1#issuecomment-206801765","issue_url":"https://api.github.com/repos/NERC-CEH/puppet-fstab/issues/1","id":206801765,"user":{"login":"chrisjohnson1988","id":1215415,"avatar_url":"https://avatars.githubusercontent.com/u/1215415?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisjohnson1988","html_url":"https://github.com/chrisjohnson1988","followers_url":"https://api.github.com/users/chrisjohnson1988/followers","following_url":"https://api.github.com/users/chrisjohnson1988/following{/other_user}","gists_url":"https://api.github.com/users/chrisjohnson1988/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisjohnson1988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisjohnson1988/subscriptions","organizations_url":"https://api.github.com/users/chrisjohnson1988/orgs","repos_url":"https://api.github.com/users/chrisjohnson1988/repos","events_url":"https://api.github.com/users/chrisjohnson1988/events{/privacy}","received_events_url":"https://api.github.com/users/chrisjohnson1988/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T10:28:33Z","updated_at":"2016-04-07T10:28:33Z","body":"The why part is simply to remove as many silly mistakes as possible. It also helps to verify that what you have written works as you intend, I think this is especially important when it comes to system management code as you generally run it over a large number of nodes.\r\n\r\nPersonally I want to have confidence that I can update a `puppet module` and not break the entire infrastructure.\r\n\r\nThe how this is done is language/framework specific. For puppet modules this is generally done with `rspec` and the `rspec-puppet` plugin. There of puppet modules out there which are [really](https://github.com/puppetlabs/puppetlabs-apache) [good](https://github.com/puppetlabs/puppetlabs-vcsrepo) [examples](https://github.com/puppetlabs/puppetlabs-stdlib) of this. The general principles apply to different code to. e.g. [websites rendering](https://github.com/NERC-CEH/puppet-selenium), [javascript](http://jasmine.github.io/2.0/introduction.html) and [java](http://junit.org/junit4/)"}}