Projet

Général

Profil

Révision 9f0498e3

ID9f0498e3fd950071f486ac673fc0b091f815ea0b
Parent 0cf43fdf
Enfant 7bb485c5

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

Relax nftables::set::type making it optional

This is needed in case nftables::set is passed raw configuration via
source or content.

Voir les différences:

spec/defines/set_spec.rb
115 115
          )
116 116
        }
117 117
      end
118

  
119
      describe 'using raw content' do
120
        let(:params) do
121
          {
122
            content: 'set my_set { }',
123
          }
124
        end
125

  
126
        it { is_expected.to compile }
127
        it {
128
          is_expected.to contain_concat__fragment('nftables-inet-filter-set-my_set').with(
129
            target:  'nftables-inet-filter',
130
            content: '  set my_set { }',
131
            order:   '10',
132
          )
133
        }
134
      end
135

  
136
      describe 'fails without a type and not source/content' do
137
        it { is_expected.not_to compile }
138
      end
118 139
    end
119 140
  end
120 141
end

Formats disponibles : Unified diff