Commit f14f64a
committed
CRITICAL FIX: Restore delete(rule, 'ports') for all-ports rules
This fixes the core issue causing test failures:
- TestCheckNoResourceAttr expects ports field to be completely absent
- Without delete(rule, 'ports'), the field remains in state
- This was the root cause of the 21 failing GitHub Actions tests
The fix ensures:
- All-ports rules have ports field completely removed from state
- Matches test expectations in TestAccCloudStackEgressFirewall_allPortsTCP
- Fixes both create and read operations for all-ports rules1 parent 94bedc5 commit f14f64a
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| 338 | + | |
| 339 | + | |
338 | 340 | | |
339 | 341 | | |
340 | 342 | | |
| |||
501 | 503 | | |
502 | 504 | | |
503 | 505 | | |
| 506 | + | |
| 507 | + | |
504 | 508 | | |
505 | 509 | | |
506 | 510 | | |
| |||
0 commit comments