Révision 294a38ff
Implement intended failure
manifests/config.pp | ||
---|---|---|
3 | 3 |
Optional[String] $content = undef, |
4 | 4 |
Optional[Variant[String,Array[String,1]]] $source = undef, |
5 | 5 |
) { |
6 |
if $content and $source { |
|
7 |
fail('Please pass only $content or $source, not both.') |
|
8 |
} |
|
9 |
|
|
6 | 10 |
$concat_name = "nftables-${name}" |
7 | 11 |
|
8 | 12 |
Package['nftables'] -> concat { |
spec/defines/config_spec.rb | ||
---|---|---|
60 | 60 |
end |
61 | 61 |
|
62 | 62 |
it { |
63 |
pending('Setting source and content should be made to fail') |
|
64 | 63 |
is_expected.not_to compile |
65 | 64 |
} |
66 | 65 |
end |
Formats disponibles : Unified diff