Skip to content

Commit

Permalink
Firewalld Change from restart firewalld service to reload firewalld c…
Browse files Browse the repository at this point in the history
…onfig hard
  • Loading branch information
JeGoi committed Jul 8, 2024
1 parent d4ab9d4 commit 620b0dc
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 49 deletions.
6 changes: 6 additions & 0 deletions t/venom/lib/reload_firewalld_config_hard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Reload firewalld config hard
testcases:
- name: reload_firewalld_config_hard
steps:
- type: pfcmd_run_command
command: generatefirewalldconfig hard
6 changes: 6 additions & 0 deletions t/venom/lib/reload_firewalld_config_soft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Reload firewalld config soft
testcases:
- name: reload_firewalld_config_soft
steps:
- type: pfcmd_run_command
command: generatefirewalldconfig
8 changes: 0 additions & 8 deletions t/venom/test_suites/common/restart_iptables_service.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ testcases:
- result.statuscode ShouldEqual 200
- result.bodyjson.message ShouldEqual "Updated systemd for pf"

- name: restart_firewalld_service
- name: reload_firewalld_config_hard
steps:
- type: systemctl_service_restart
service: 'packetfence-firewalld.service'
- type: reload_firewalld_config_hard

- name: restart_haproxy_admin_service
steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ testcases:
assertions:
- result.statuscode ShouldEqual 200

- name: restart_firewalld
- name: reload_firewalld_config_hard
steps:
- type: systemctl_service_restart
service: packetfence-firewalld
time_to_sleep: 10
- type: reload_firewalld_config_hard

- name: ping_to_wan_should_work
steps:
Expand All @@ -37,7 +35,7 @@ testcases:
- result.code ShouldEqual 0

- name: restart_collector_and_clear_cache
steps:
steps:
- type: systemctl_service_restart
service: packetfence-fingerbank-collector
time_to_sleep: 5
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: Reload firewalld config hard
testcases:
- name: reload_firewalld_config_hard
steps:
- type: reload_firewalld_config_hard

This file was deleted.

6 changes: 2 additions & 4 deletions t/venom/test_suites/inline/l2/05_setup_packetfence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,9 @@ testcases:
assertions:
- result.statuscode ShouldEqual 200

- name: restart_firewalld
- name: Reload firewalld config hard
steps:
- type: systemctl_service_restart
service: packetfence-firewalld
time_to_sleep: 10
- type: reload_firewalld_config_hard

- name: restart_pfdns_service
steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@ testcases:
assertions:
- result.statuscode ShouldEqual 200

- name: restart_firewalld
- name: Reload firewalld config hard
steps:
- type: systemctl_service_restart
service: packetfence-firewalld
time_to_sleep: 10
- type: reload_firewalld_config_hard

- name: restart_pfdns_service
steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,9 @@ testcases:
assertions:
- result.statuscode ShouldEqual 200

- name: restart_firewalld
- name: Reload firewalld config hard
steps:
- type: systemctl_service_restart
service: packetfence-firewalld
time_to_sleep: 10
- type: reload_firewalld_config_hard

- name: restart_pfdns_service
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Restart services
testcases:
- name: restart_firewalld
- name: reload_firewalld_config_hard
steps:
- type: systemctl_service_restart
service: packetfence-firewalld
- type: reload_firewalld_config_hard

- name: restart_pfdns
steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,9 @@ testcases:
url: 'config/security_event/{{.security_event_random_mac.event.id}}'
body: '{"id":"{{.security_event_random_mac.event.id}}","enabled":"N","quiet":true}'

- name: restart_firewalld
- name: reload_config_firewalld_hard
steps:
- type: systemctl_service_restart
service: packetfence-firewalld
time_to_sleep: 10
- type: reload_firewalld_config_hard

- name: restart_pfdns_service
steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,9 @@ testcases:
assertions:
- result.statuscode ShouldEqual 200

- name: restart_firewalld
- name: Reload firewalld config hard
steps:
- type: systemctl_service_restart
service: packetfence-firewalld
time_to_sleep: 10
- type: reload_firewalld_config_hard

- name: restart_pfdns_service
steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@ testcases:
assertions:
- result.statuscode ShouldEqual 200

- name: restart_firewalld
- name: reload_firewalld_config_hard
steps:
- type: systemctl_service_restart
service: packetfence-firewalld
time_to_sleep: 10
- type: reload_firewalld_config_hard

- name: restart_pfdns_service
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Restart firewalld
name: Reload firewalld config hard
testcases:
# temp, as a workaround
- name: restart_firewalld
- name: reload_firewalld_config_hard
steps:
- type: systemctl_service_restart
service: packetfence-firewalld
time_to_sleep: 10
- type: reload_firewalld_config_hard

0 comments on commit 620b0dc

Please sign in to comment.