Defined Type: httpbb::test_suite

Defined in:
modules/httpbb/manifests/test_suite.pp

Overview

Defined type httpbb::test_suite

Resource for httpbb test suite YAML files, which are installed into the directory passed as $tests_dir to the httpbb class. That class must be declared before any httpbb::test_suite resources.

Parameters:

  • source (Wmflib::Sourceurl)


6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/httpbb/manifests/test_suite.pp', line 6

define httpbb::test_suite(
    Wmflib::Sourceurl $source,
){
    if !defined(Class['httpbb']) {
        fail('Declare the httpbb class before using httpbb::test_suite.')
    }

    file {"${::httpbb::tests_dir}/${title}":
        ensure => file,
        source => $source,
    }
}