Restore xt_comment tests (#86393)

This commit is contained in:
Matt Clay 2026-01-07 16:00:30 -08:00 committed by GitHub
parent 3df8aeed80
commit e223fbd5f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 6 deletions

View file

@ -52,8 +52,7 @@
source: 0.0.0.0
destination: 0.0.0.0
jump: DROP
# FIXME: Enable when xt_comment is working on RHEL 10
#comment: "FOOBAR-CHAIN RULE"
comment: "FOOBAR-CHAIN RULE"
- name: get the state of the iptable rules after rule is added to foobar chain
become: true
@ -64,8 +63,7 @@
assert:
that:
- result is not failed
# FIXME: Enable when xt_comment is working on RHEL 10
# - '"FOOBAR-CHAIN RULE" in result.stdout'
- '"FOOBAR-CHAIN RULE" in result.stdout'
- name: flush the foobar chain
become: true

View file

@ -35,6 +35,5 @@
# prevent attempts to upgrade the kernel and install kernel modules for a non-running kernel version
exclude: "{{ 'kernel-core' if ansible_distribution == 'RedHat' else omit }}"
# FIXME: Disabling this test for now as it is not working on RHEL 10
# - import_tasks: xt_comment.yml
- import_tasks: xt_comment.yml
- import_tasks: chain_management.yml