Révision 7bb485c5
Allow dashes in set names
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