-
Notifications
You must be signed in to change notification settings - Fork 72
Correct indentation in ACL comparator #564
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
base: main
Are you sure you want to change the base?
Conversation
Only check for missing wanted ACLs after processing all had ACLs, not just the first one. Addresses ansible-collections#512
@Ruchip16 is there anything needed from my side to move this PR forward? |
hey thank you for raising the PR, can you kindly add integration tests as well to validate the change on device? |
I will take a look at the integration test framework this week, thanks! |
After a few hours screwing around, I was able to generate a Containerlab cEOS image that I can run integration tests on. It appears that this change does affect one of the integration tests:
I'll have to check what the test is supposed to test, and if it was just written to pass incorrectly prior to this change, or if there is a breaking change included in this PR |
An idempotency check should ensure that there is NO change and NO commands.
After digging into the newly failing integration test, it appears that an idempotency check was incorrectly written to pass when it shouldn't -- if we re-run the same "replaced" operation with the same config as before, we should send no commands, and there should be no changes. Updated test to reflect. |
kudos that you spawned up an instance to run the integration tests on and yep generally integration tests might break if the changes in PR are not validated hence its a good way to add integration tests and test them on device such that we are sure that we aren't introducing any breaking changes or infact changes that could fail the CI, thanks again and awesome work 💯 |
Any more action required from me for this to be reviewed/merged? |
SUMMARY
Change indentation of ACL present check in _state_replaced to only try to add a missing wanted ACL after processing all have ACLs.
Possibly fixes #512
ISSUE TYPE
COMPONENT NAME
arista.eos.eos_acls
ADDITIONAL INFORMATION