Title: Message Title
Ralph BOlton updated an issue
Puppet / PUP-2076
Unit Tests Fail if not run as root (continues http://projects.puppetlabs.com/issues/16248)
Change By:
Ralph BOlton
ThisfollowsonfromBug16248(http://projects.puppetlabs.com/issues/16248).Itseemsthatrunning--noopandrunningunittestswithrspec-puppetbothsufferthesameproblem-thatis,thatcorePuppettriestodothingsthatonlyrootcando.Inthecaseofrunning--noop,Ithinkthepreviousbugarrivesatareasonableconclusion-thatisthat--noopasanon-rootuserisn'tespeciallyappropriatebecauseanordinaryusermaynothaveaccesstothefilesandbinariesthatwouldbeneededtoevencalculatewhatworkneedstobedone.However,rspec-puppetunittestsabsolutelyshouldn'tneedtoberunasroot.Sincetheyreallyonlytestthecatalogue,thereshouldbeverylittleneedtodosomeofthethingsPuppetappearstodo.Itturnsoutthatrspec-puppet's'shouldcompile'testalwaysfailsifyouhaveauserspecificationinthemanifest(seebugexploringthisproblem:https://github.com/rodjek/rspec-puppet/issues/175).Thisappearstobebecausepuppetattemptstostat()(andmayberun)binariessuchas/usr/sbin/usermod,evenwhenjustbuildingupthecatalogueinthetestenvironmentClearly,thisisunnecessarywhencheckingagainstaunittestspec.Whatcanwedoaboutthis?Itseemsunlikelythatrspec-puppetcanresolvethisproblemwithoutsomemovementinPuppetitself.
Add Comment
This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)
--
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at