HomePhorge

(#4914) Improved stubbing in mount/parsed_spec tests.
23a510a321e4Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#4914) Improved stubbing in mount/parsed_spec tests.

A few of the spec tests were attempting to stub
Puppet::Type::Mount#default_target so that it pointed to a temporary
file rather than /etc/fstab, but they were creating the stub after the
first call to default_target, so both /etc/fstab and the temporary
file were being read. This caused errors when running spec tests on
platforms where /etc/fstab is unreadable by non-privileged users.

Fixed the problem by moving the stub declaration earlier in the test.

Details

Provenance
Paul Berry <paul@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUc57c508e9380: (#4914) Improved parsed_spec for mount
Branches
Unknown
Tags
Unknown

Event Timeline

Paul Berry <paul@puppetlabs.com> committed rPU23a510a321e4: (#4914) Improved stubbing in mount/parsed_spec tests. (authored by Paul Berry <paul@puppetlabs.com>).Feb 25 2011, 11:56 PM