|
156 | 156 | { is_hash: { state: 'NEW' }, should_hash: { state: ['NEW', 'INVALID'] }, result: nil }, |
157 | 157 | { is_hash: { state: ['INVALID', 'NEW'] }, should_hash: { state: ['NEW', 'INVALID'] }, result: true }, |
158 | 158 | { is_hash: { state: ['! INVALID', 'NEW'] }, should_hash: { state: ['! NEW', 'INVALID'] }, result: true }, |
| 159 | + { is_hash: { state: ['! INVALID', 'NEW'] }, should_hash: { state: ['! NEW', '! INVALID'] }, result: true }, |
159 | 160 | { is_hash: { state: ['! INVALID', 'NEW'] }, should_hash: { state: ['! NEW', 'INVALID', 'UNTRACKED'] }, result: false }, |
160 | 161 | ] }, |
161 | 162 | { testing: 'icmp', property_name: :icmp, comparisons: [ |
|
200 | 201 | { is_hash: { jump: 'accept' }, should_hash: { jump: 'drop' }, result: false }, |
201 | 202 | ] }, |
202 | 203 | { testing: 'dport/sport', property_name: :dport, comparisons: [ |
203 | | - { is_hash: { dport: '! 50' }, should_hash: { dport: '! 50' }, result: true }, |
204 | | - { is_hash: { dport: '50:60' }, should_hash: { dport: '50-60' }, result: true }, |
205 | | - { is_hash: { dport: ['50:60'] }, should_hash: { dport: '50-60' }, result: true }, |
| 204 | + { is_hash: { dport: '50' }, should_hash: { dport: '50' }, result: nil }, |
| 205 | + { is_hash: { dport: ['50:60'] }, should_hash: { dport: '50-60' }, result: nil }, |
206 | 206 | { is_hash: { dport: ['50:60'] }, should_hash: { dport: ['50-60'] }, result: true }, |
207 | | - { is_hash: { dport: ['! 50:60', '90'] }, should_hash: { dport: ['! 90', '50-60'] }, result: true }, |
208 | | - { is_hash: { dport: '50' }, should_hash: { dport: '90' }, result: false }, |
| 207 | + { is_hash: { dport: ['! 50:60', '90'] }, should_hash: { dport: ['! 90', '! 50-60'] }, result: true }, |
| 208 | + { is_hash: { dport: ['! 50:60', '90'] }, should_hash: { dport: ['! 100', '! 60-70'] }, result: false }, |
209 | 209 | ] }, |
210 | 210 | { testing: 'string_hex', property_name: :string_hex, comparisons: [ |
211 | 211 | { is_hash: { string_hex: '! |f4 6d 04 25 b2 02 00 0a|' }, should_hash: { string_hex: '! |f46d0425b202000a|' }, result: true }, |
|
0 commit comments