HomePhorge

(#14615) Fix provider spec tests to work on non gentoo systems
f11dfd6b3021Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#14615) Fix provider spec tests to work on non gentoo systems

The gentoo service provider tests made the assumption that /etc/init.d
is always the directory where the service provider will look for init
scripts while in fact the path depends on the operatingsystem.

The service provider spec also made the assumption that the sshd init
script is present on the target machine.

Stub the operatingsystem fact to prevent failures.
Stub the stat-call so the sshd script is always considered present.

Details

Provenance
Stefan Schulte <stefan.schulte@taunusstein.net>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU060810e9affc: maint: Make it easier to test the service provider
Branches
Unknown
Tags
Unknown

Event Timeline

Stefan Schulte <stefan.schulte@taunusstein.net> committed rPUf11dfd6b3021: (#14615) Fix provider spec tests to work on non gentoo systems (authored by Stefan Schulte <stefan.schulte@taunusstein.net>).May 31 2012, 12:53 AM