-
Notifications
You must be signed in to change notification settings - Fork 69
T7260 Remove last firewall group member. #403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@RubenNL are you able to run integration tests against 1.4.x and 1.5.x (e.g. rolling), please? |
@omnom62 I'm preparing to run it against the newest 1.5: |
Just ran the tests against 1.5. With my modification, I get this error:
So i'll have some debugging to do :( I'll set this PR to draft. |
I will try to review and rerun the tests |
Found the difference, when deleting a firewall group, it now also adds a useless line Working on fixing this :) shouldn't be too hard. |
0894fec
to
8ed7235
Compare
The integration tests are now succeeding on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a unit test that fails with the previous code and succeeds with the new code.
changelogs/fragments/T7260-remove-last-firewall-group-member.yaml
Outdated
Show resolved
Hide resolved
3e8aa18
to
6d30f9f
Compare
Done. Results can be seen here: Failing tests, without changes from this PR: https://github.com/RubenNL/vyos.vyos/actions/runs/13950524465/job/39048553338 |
6d30f9f
to
1cf8e6c
Compare
just FYI - there seems to be a bug in 1.5 that fail the integration tests: |
I don't have this issue, using |
All is good, mate, I will retest with fresh image as suggested in Slack |
it'll probably also work with a manual |
Insofar as possible, we should be running all integration tests, especially as part of the intention of this revamp is that we get to the point that the integration tests can be made part of the automation for PR checks. At the very least, we need to insure that no integration tests either require more than a new VM/physical device with the config lines documented in the readme, nor do they leave anything in their wake. Any pre-conditions need to live defensively in the tests themselves. Thanks |
I think the changes look good. Please update the PR text to indicate which integration tests are succeeding with the current code. Since 6.x is still supporting 1.3, 1.4 (and current), please verify and indicate the specific version of each these were tested against. At that point, I’ll approve. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I have just updated the description with the versions I tested this MR with. I've also updated the branch to be up-to-date with the main. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Change Summary
Added the ability to delete the last address in a group.
Types of changes
Related Task(s)
Related PR(s)
Component(s) name
firewall(_global)
Proposed changes
VyOS groups can have 0 members, but this currently isn't possible with the current implementation.
How to test
To reproduce, on a testing VyOS:
I would expect the following ansible task to result in one of those 2 being run:
delete firewall group address-group test address 1.2.3.4
delete firewall group address-group test address
(both of those result in the same line remaining in the config:
set firewall group address-group test
)Currently, nothing happens.
Test results
Tests have ran on a PR in my repo: RubenNL#4
Tested against VyOS versions:
Integration tests of module
firewall_global
have run successfully on versions:When I receive a license(already requested, currently being processed), I'll also test it on 1.3, 1.4 and 1.5 stable.
Checklist:
changelogs/fragments
to describe the changes