I am testing a perl package that contains common code for many procedures. I am at the point where I am testing procedures that make calls to external system commands (like pcs for pacemaker information). My jenkins server is not a complete copy of the production environment. Is there a way to replace the external commands with a stub that when called returns my expected results?
Jenkins setup: