Projet

Général

Profil

Révision 294a38ff

ID294a38ff8d17ef120be5e39c7db5381b652b3b53
Parent fcb1d356
Enfant 04f5c035

Ajouté par Nacho Barrientos il y a plus de 4 ans

Implement intended failure

Voir les différences:

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