{"action":"closed","number":17,"pull_request":{"url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/pulls/17","id":35297958,"node_id":"MDExOlB1bGxSZXF1ZXN0MzUyOTc5NTg=","html_url":"https://github.com/domcleal/rspec-puppet-augeas/pull/17","diff_url":"https://github.com/domcleal/rspec-puppet-augeas/pull/17.diff","patch_url":"https://github.com/domcleal/rspec-puppet-augeas/pull/17.patch","issue_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/issues/17","number":17,"state":"closed","locked":false,"title":"Change Puppet[:user] and Puppet[:group] to those of the user running the test","user":{"login":"mmarod","id":1711224,"node_id":"MDQ6VXNlcjE3MTEyMjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1711224?v=4","gravatar_id":"","url":"https://api.github.com/users/mmarod","html_url":"https://github.com/mmarod","followers_url":"https://api.github.com/users/mmarod/followers","following_url":"https://api.github.com/users/mmarod/following{/other_user}","gists_url":"https://api.github.com/users/mmarod/gists{/gist_id}","starred_url":"https://api.github.com/users/mmarod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmarod/subscriptions","organizations_url":"https://api.github.com/users/mmarod/orgs","repos_url":"https://api.github.com/users/mmarod/repos","events_url":"https://api.github.com/users/mmarod/events{/privacy}","received_events_url":"https://api.github.com/users/mmarod/received_events","type":"User","site_admin":false},"body":"This is my fix for #15.\n\nThe problem seemed to boil down to the fact that Puppet[:user] and Puppet[:group] don't change to the running user during the apply. In this commit, I grab the user running the script and their primary group using Ruby's Etc module before the apply occurs.\n\nIt's a bit hacky but it gets me through the tests as non-root.\n","created_at":"2015-05-13T06:34:40Z","updated_at":"2018-10-26T11:48:10Z","closed_at":"2018-10-26T11:48:10Z","merged_at":null,"merge_commit_sha":"8733818c7ce5b2f36eaaa09c502acb5ebf373d4a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/pulls/17/commits","review_comments_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/pulls/17/comments","review_comment_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/issues/17/comments","statuses_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/statuses/9d904e88fc24617460c0977d8a5b103dec0f4dbe","head":{"label":"mmarod:change-puppet-user","ref":"change-puppet-user","sha":"9d904e88fc24617460c0977d8a5b103dec0f4dbe","user":{"login":"mmarod","id":1711224,"node_id":"MDQ6VXNlcjE3MTEyMjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1711224?v=4","gravatar_id":"","url":"https://api.github.com/users/mmarod","html_url":"https://github.com/mmarod","followers_url":"https://api.github.com/users/mmarod/followers","following_url":"https://api.github.com/users/mmarod/following{/other_user}","gists_url":"https://api.github.com/users/mmarod/gists{/gist_id}","starred_url":"https://api.github.com/users/mmarod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmarod/subscriptions","organizations_url":"https://api.github.com/users/mmarod/orgs","repos_url":"https://api.github.com/users/mmarod/repos","events_url":"https://api.github.com/users/mmarod/events{/privacy}","received_events_url":"https://api.github.com/users/mmarod/received_events","type":"User","site_admin":false},"repo":{"id":35532042,"node_id":"MDEwOlJlcG9zaXRvcnkzNTUzMjA0Mg==","name":"rspec-puppet-augeas","full_name":"mmarod/rspec-puppet-augeas","private":false,"owner":{"login":"mmarod","id":1711224,"node_id":"MDQ6VXNlcjE3MTEyMjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1711224?v=4","gravatar_id":"","url":"https://api.github.com/users/mmarod","html_url":"https://github.com/mmarod","followers_url":"https://api.github.com/users/mmarod/followers","following_url":"https://api.github.com/users/mmarod/following{/other_user}","gists_url":"https://api.github.com/users/mmarod/gists{/gist_id}","starred_url":"https://api.github.com/users/mmarod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmarod/subscriptions","organizations_url":"https://api.github.com/users/mmarod/orgs","repos_url":"https://api.github.com/users/mmarod/repos","events_url":"https://api.github.com/users/mmarod/events{/privacy}","received_events_url":"https://api.github.com/users/mmarod/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mmarod/rspec-puppet-augeas","description":"RSpec tests for Augeas resources inside Puppet manifests","fork":true,"url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas","forks_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/forks","keys_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/teams","hooks_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/hooks","issue_events_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/issues/events{/number}","events_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/events","assignees_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/assignees{/user}","branches_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/branches{/branch}","tags_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/tags","blobs_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/git/refs{/sha}","trees_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/statuses/{sha}","languages_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/languages","stargazers_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/stargazers","contributors_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/contributors","subscribers_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/subscribers","subscription_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/subscription","commits_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/commits{/sha}","git_commits_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/git/commits{/sha}","comments_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/comments{/number}","issue_comment_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/issues/comments{/number}","contents_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/contents/{+path}","compare_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/merges","archive_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/downloads","issues_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/issues{/number}","pulls_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/pulls{/number}","milestones_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/milestones{/number}","notifications_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/labels{/name}","releases_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/releases{/id}","deployments_url":"https://api.github.com/repos/mmarod/rspec-puppet-augeas/deployments","created_at":"2015-05-13T06:26:34Z","updated_at":"2015-05-13T06:26:35Z","pushed_at":"2015-05-13T18:45:09Z","git_url":"git://github.com/mmarod/rspec-puppet-augeas.git","ssh_url":"git@github.com:mmarod/rspec-puppet-augeas.git","clone_url":"https://github.com/mmarod/rspec-puppet-augeas.git","svn_url":"https://github.com/mmarod/rspec-puppet-augeas","homepage":null,"size":139,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"domcleal:master","ref":"master","sha":"7110a831a23e1b7716c525eef256454083cc9f72","user":{"login":"domcleal","id":482089,"node_id":"MDQ6VXNlcjQ4MjA4OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/482089?v=4","gravatar_id":"","url":"https://api.github.com/users/domcleal","html_url":"https://github.com/domcleal","followers_url":"https://api.github.com/users/domcleal/followers","following_url":"https://api.github.com/users/domcleal/following{/other_user}","gists_url":"https://api.github.com/users/domcleal/gists{/gist_id}","starred_url":"https://api.github.com/users/domcleal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domcleal/subscriptions","organizations_url":"https://api.github.com/users/domcleal/orgs","repos_url":"https://api.github.com/users/domcleal/repos","events_url":"https://api.github.com/users/domcleal/events{/privacy}","received_events_url":"https://api.github.com/users/domcleal/received_events","type":"User","site_admin":false},"repo":{"id":7856020,"node_id":"MDEwOlJlcG9zaXRvcnk3ODU2MDIw","name":"rspec-puppet-augeas","full_name":"domcleal/rspec-puppet-augeas","private":false,"owner":{"login":"domcleal","id":482089,"node_id":"MDQ6VXNlcjQ4MjA4OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/482089?v=4","gravatar_id":"","url":"https://api.github.com/users/domcleal","html_url":"https://github.com/domcleal","followers_url":"https://api.github.com/users/domcleal/followers","following_url":"https://api.github.com/users/domcleal/following{/other_user}","gists_url":"https://api.github.com/users/domcleal/gists{/gist_id}","starred_url":"https://api.github.com/users/domcleal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domcleal/subscriptions","organizations_url":"https://api.github.com/users/domcleal/orgs","repos_url":"https://api.github.com/users/domcleal/repos","events_url":"https://api.github.com/users/domcleal/events{/privacy}","received_events_url":"https://api.github.com/users/domcleal/received_events","type":"User","site_admin":false},"html_url":"https://github.com/domcleal/rspec-puppet-augeas","description":"RSpec tests for Augeas resources inside Puppet manifests","fork":false,"url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas","forks_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/forks","keys_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/teams","hooks_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/hooks","issue_events_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/issues/events{/number}","events_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/events","assignees_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/assignees{/user}","branches_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/branches{/branch}","tags_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/tags","blobs_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/git/refs{/sha}","trees_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/statuses/{sha}","languages_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/languages","stargazers_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/stargazers","contributors_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/contributors","subscribers_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/subscribers","subscription_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/subscription","commits_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/commits{/sha}","git_commits_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/git/commits{/sha}","comments_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/comments{/number}","issue_comment_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/issues/comments{/number}","contents_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/contents/{+path}","compare_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/merges","archive_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/downloads","issues_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/issues{/number}","pulls_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/pulls{/number}","milestones_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/milestones{/number}","notifications_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/labels{/name}","releases_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/releases{/id}","deployments_url":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/deployments","created_at":"2013-01-27T18:23:25Z","updated_at":"2016-05-10T14:21:57Z","pushed_at":"2016-12-20T11:07:15Z","git_url":"git://github.com/domcleal/rspec-puppet-augeas.git","ssh_url":"git@github.com:domcleal/rspec-puppet-augeas.git","clone_url":"https://github.com/domcleal/rspec-puppet-augeas.git","svn_url":"https://github.com/domcleal/rspec-puppet-augeas","homepage":null,"size":416,"stargazers_count":14,"watchers_count":14,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":9,"open_issues":7,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/pulls/17"},"html":{"href":"https://github.com/domcleal/rspec-puppet-augeas/pull/17"},"issue":{"href":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/issues/17"},"comments":{"href":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/domcleal/rspec-puppet-augeas/statuses/9d904e88fc24617460c0977d8a5b103dec0f4dbe"}},"author_association":"NONE","merged":false,"mergeable":true,"rebaseable":false,"mergeable_state":"unstable","merged_by":null,"comments":4,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":17,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"mmarod"}}