Projet

Général

Profil

Révision 61f03b47

ID61f03b478ce5657ec83272d1b3750cd7464a080a
Parent e53053ce
Enfant a5f5fb12

Ajouté par Steve Traylen il y a plus de 4 ans

Switch $order$fragmenta/b to $order-$fragment-a/b

Voir les différences:

spec/classes/ip_nat_spec.rb
96 96
          is_expected.to contain_concat__fragment('nftables-ip-nat-chain-PREROUTING-rule-type').with(
97 97
            target:  'nftables-ip-nat-chain-PREROUTING',
98 98
            content: %r{^  type nat hook prerouting priority -100$},
99
            order:   '01nftables-ip-nat-chain-PREROUTING-rule-typeb',
99
            order:   '01-nftables-ip-nat-chain-PREROUTING-rule-type-b',
100 100
          )
101 101
        }
102 102
        it {
103 103
          is_expected.to contain_concat__fragment('nftables-ip-nat-chain-PREROUTING-rule-policy').with(
104 104
            target:  'nftables-ip-nat-chain-PREROUTING',
105 105
            content: %r{^  policy accept$},
106
            order:   '02nftables-ip-nat-chain-PREROUTING-rule-policyb',
106
            order:   '02-nftables-ip-nat-chain-PREROUTING-rule-policy-b',
107 107
          )
108 108
        }
109 109
        it {
......
136 136
          is_expected.to contain_concat__fragment('nftables-ip-nat-chain-POSTROUTING-rule-type').with(
137 137
            target:  'nftables-ip-nat-chain-POSTROUTING',
138 138
            content: %r{^  type nat hook postrouting priority 100$},
139
            order:   '01nftables-ip-nat-chain-POSTROUTING-rule-typeb',
139
            order:   '01-nftables-ip-nat-chain-POSTROUTING-rule-type-b',
140 140
          )
141 141
        }
142 142
        it {
143 143
          is_expected.to contain_concat__fragment('nftables-ip-nat-chain-POSTROUTING-rule-policy').with(
144 144
            target:  'nftables-ip-nat-chain-POSTROUTING',
145 145
            content: %r{^  policy accept$},
146
            order:   '02nftables-ip-nat-chain-POSTROUTING-rule-policyb',
146
            order:   '02-nftables-ip-nat-chain-POSTROUTING-rule-policy-b',
147 147
          )
148 148
        }
149 149
        it {
......
176 176
          is_expected.to contain_concat__fragment('nftables-ip6-nat-chain-PREROUTING6-rule-type').with(
177 177
            target:  'nftables-ip6-nat-chain-PREROUTING6',
178 178
            content: %r{^  type nat hook prerouting priority -100$},
179
            order:   '01nftables-ip6-nat-chain-PREROUTING6-rule-typeb',
179
            order:   '01-nftables-ip6-nat-chain-PREROUTING6-rule-type-b',
180 180
          )
181 181
        }
182 182
        it {
183 183
          is_expected.to contain_concat__fragment('nftables-ip6-nat-chain-PREROUTING6-rule-policy').with(
184 184
            target:  'nftables-ip6-nat-chain-PREROUTING6',
185 185
            content: %r{^  policy accept$},
186
            order:   '02nftables-ip6-nat-chain-PREROUTING6-rule-policyb',
186
            order:   '02-nftables-ip6-nat-chain-PREROUTING6-rule-policy-b',
187 187
          )
188 188
        }
189 189
        it {
......
216 216
          is_expected.to contain_concat__fragment('nftables-ip6-nat-chain-POSTROUTING6-rule-type').with(
217 217
            target:  'nftables-ip6-nat-chain-POSTROUTING6',
218 218
            content: %r{^  type nat hook postrouting priority 100$},
219
            order:   '01nftables-ip6-nat-chain-POSTROUTING6-rule-typeb',
219
            order:   '01-nftables-ip6-nat-chain-POSTROUTING6-rule-type-b',
220 220
          )
221 221
        }
222 222
        it {
223 223
          is_expected.to contain_concat__fragment('nftables-ip6-nat-chain-POSTROUTING6-rule-policy').with(
224 224
            target:  'nftables-ip6-nat-chain-POSTROUTING6',
225 225
            content: %r{^  policy accept$},
226
            order:   '02nftables-ip6-nat-chain-POSTROUTING6-rule-policyb',
226
            order:   '02-nftables-ip6-nat-chain-POSTROUTING6-rule-policy-b',
227 227
          )
228 228
        }
229 229
        it {

Formats disponibles : Unified diff