Projet

Général

Profil

Révision 7bb485c5

ID7bb485c536afd31e6c24edc808e5240e05edccec
Parent 9f0498e3
Enfant ef3e9ad6

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

Allow dashes in set names

Voir les différences:

spec/defines/set_spec.rb
136 136
      describe 'fails without a type and not source/content' do
137 137
        it { is_expected.not_to compile }
138 138
      end
139

  
140
      describe 'set names with dashes are allowed' do
141
        let(:title) { 'my-set' }
142
        let(:params) do
143
          {
144
            type: 'ether_addr',
145
          }
146
        end
147

  
148
        it { is_expected.to compile }
149
        it {
150
          is_expected.to contain_concat__fragment('nftables-inet-filter-set-my-set').with(
151
            target:  'nftables-inet-filter',
152
            content: %r{^  set my-set \{\n    type ether_addr\n  \}$}m,
153
            order:   '10',
154
          )
155
        }
156
      end
139 157
    end
140 158
  end
141 159
end

Formats disponibles : Unified diff