When a new puppet module is created in Geppetto, manifests, spec and tests folders are created as well. The init.pp which resides in the manifests folder looks as follows:
define X (
$version = "",
$installer = "",
$installer_extension = ""
) {
file { "${name}_installer_copied_to_temp_directory":
path => "c:/temp/${name}-${version}.${installer_extension}",
source => "puppet:///files/${installer}.${installer_extension}",
before => Exec["${name}_installed"],
require => File["c:/temp"];
}
}
The associated init.pp which resides in the tests folder looks as follows:
include X
If TDD in puppet makes sense, how to create a test for the define X
snippet and how to run the tests in Geppetto?